Copyright (C) 2005 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> << ".i18n("Back to Configuration")."
"; 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 "
"; echo "\n"; echo ""; echo ""; while($r=mysql_fetch_object($q)) { echo ""; } echo ""; $q=mysql_query("SELECT * FROM config WHERE year='".$config['FAIRYEAR']."' ORDER BY var"); while($r=mysql_fetch_object($q)) { echo ""; } echo "

".i18n("Global configuration settings")."

$r->var".i18n($r->description)."var]\" value=\"$r->val\" />


".i18n("Configuration settings for fair year %1",array($config['FAIRYEAR']))."

$r->var".i18n($r->description)."var]\" value=\"$r->val\" />
"; echo "\n"; echo "
"; send_footer(); ?>