require("../common.inc.php"); send_header("Configuration - Variables"); echo error(i18n("Note: this section will normally be password protected. It is left open for now for debugging and testing purposes")); if($_POST['action']=="save") { if($_POST['specialconfig']) { foreach($_POST['specialconfig'] as $key=>$val) { mysql_query("UPDATE config SET val='".mysql_escape_string(stripslashes($val))."' WHERE year='0' AND var='$key'"); } } if($_POST['saveconfig']) { foreach($_POST['saveconfig'] as $key=>$val) { mysql_query("UPDATE config SET val='".mysql_escape_string(stripslashes($val))."' WHERE year='".$config['FAIRYEAR']."' AND var='$key'"); } } echo happy(i18n("Configuration successfully saved")); } $q=mysql_query("SELECT * FROM config WHERE year=0 ORDER BY var"); echo "
"; send_footer(); ?>