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 ""; echo ""; $trclass = 'odd'; - while($r=mysql_fetch_object($q)) - { + while($r=mysql_fetch_object($q)) { $trclass = ($trclass == 'odd') ? 'even' : 'odd'; echo ""; echo ""; - while($r=mysql_fetch_object($q)) - { - if($r->var=="FAIRYEAR" || $r->var=="DBVERSION") - { + while($r=mysql_fetch_object($q)) { + if($r->var=="FAIRYEAR" || $r->var=="DBVERSION" || $r->var=="FISCALYEAR") { echo ""; } - else - { + else { echo ""; } } @@ -122,16 +112,14 @@ echo "\n"; 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"); }
"; @@ -94,10 +89,8 @@ echo ""; - if($category) - { - if($category=="Special") - { + if($category) { + if($category=="Special") { echo "

".i18n("Special Configuration Settings")."

"; echo "
"; echo "\n"; @@ -107,14 +100,11 @@ echo "
"; echo i18n("Warning, modifying values on this configuration variables page could cause your SFIAB to stop working. Only change anything on this page if you really know what you are doing"); echo "
$r->var - ".i18n($r->description)."$r->val
$r->var - ".i18n($r->description)."var]\" value=\"$r->val\" />