}
// Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
if (isset($_POST['ok'])) {
// Save configuration
ADMIN_SAVE_SETTINGS($_POST);
} else {
// Prepare data
- switch ($_CONFIG['verbose_sql']) {
- case 'Y': define('__VERBOSE_Y', ' checked'); define('__VERBOSE_N', ""); break;
- case 'N': define('__VERBOSE_Y', ""); define('__VERBOSE_N', ' checked'); break;
+ switch (getConfig('verbose_sql')) {
+ case "Y":
+ define('__VERBOSE_Y', " checked=\"checked\"");
+ define('__VERBOSE_N', "");
+ break;
+
+ case "N":
+ define('__VERBOSE_Y', "");
+ define('__VERBOSE_N', " checked=\"checked\"");
+ break;
}
// Load template