Organized Config Vars, fixed missing vars in alerts, switch from int to tinyint in settings table as this is much more efficient to parse

This commit is contained in:
johnny@pittpc.com
2021-02-04 12:42:39 -05:00
parent 83cf223cb5
commit ca8405f39d
4 changed files with 44 additions and 38 deletions

View File

@@ -15,11 +15,11 @@
</div>
<div class="custom-control custom-switch mb-2">
<input type="checkbox" class="custom-control-input" name="config_alerts_domains" <?php if($config_alerts_low_balance == 1){ echo "checked"; } ?> value="1" id="customSwitch2">
<input type="checkbox" class="custom-control-input" name="config_enable_alert_low_balance" <?php if($config_enable_alert_low_balance == 1){ echo "checked"; } ?> value="1" id="customSwitch2">
<label class="custom-control-label" for="customSwitch2">Enable Low Balance Alerts</label>
</div>
<?php if($config_alert_low_balance == 1){ ?>
<?php if($config_enable_alert_low_balance == 1){ ?>
<div class="form-group">
<label>Threshold</label>
@@ -34,7 +34,7 @@
<?php } ?>
<div class="custom-control custom-switch mb-2">
<input type="checkbox" class="custom-control-input" name="config_alerts_domains" <?php if($config_alert_domain_expire == 1){ echo "checked"; } ?> value="1" id="customSwitch3">
<input type="checkbox" class="custom-control-input" name="config_enable_alert_domain_expire" <?php if($config_enable_alert_domain_expire == 1){ echo "checked"; } ?> value="1" id="customSwitch3">
<label class="custom-control-label" for="customSwitch3">Enable Domain Expiration Alerts</label>
</div>