diff --git a/config/variables.php b/config/variables.php index 3347244..e521ce5 100644 --- a/config/variables.php +++ b/config/variables.php @@ -28,8 +28,7 @@ user_auth_required('committee', 'config'); $q=mysql_query("SELECT * FROM config WHERE year='-1'"); - while($r=mysql_fetch_object($q)) - { + while($r=mysql_fetch_object($q)) { mysql_query("INSERT INTO config (var,val,category,type,type_values,ord,description,year) VALUES ( '".mysql_escape_string($r->var)."', '".mysql_escape_string($r->val)."', @@ -42,12 +41,9 @@ } //for the Special category - if($_POST['action']=="save") - { - if($_POST['specialconfig']) - { - foreach($_POST['specialconfig'] as $key=>$val) - { + 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'"); } } @@ -78,8 +74,7 @@ echo "
"; @@ -94,10 +89,8 @@ echo " | ";
- if($category)
- {
- if($category=="Special")
- {
+ if($category) {
+ if($category=="Special") {
echo "".i18n("Special Configuration Settings").""; echo ""; } - else - { + else { // echo "".i18n("Configuration settings for fair year %1",array($config['FAIRYEAR']),array("fair year")).""; echo "".i18n($category)." ({$config['FAIRYEAR']})"; config_editor($category, $config['FAIRYEAR'], "var", $_SERVER['PHP_SELF']); } } -else -{ +else { echo i18n("Please choose a configuration category"); } |