From 7df9e6e444bb57e00ad96a07dbda95c561d64ca4 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 7 Jun 2005 20:12:27 +0000 Subject: [PATCH] ask for and save the 'fairname' configuration variable --- install3.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install3.php b/install3.php index fba6233..86f96c1 100644 --- a/install3.php +++ b/install3.php @@ -120,7 +120,11 @@ if($_POST['action']=="save") $q=mysql_query("SELECT * FROM config WHERE year='-1'"); while($r=mysql_fetch_object($q)) { - mysql_query("INSERT INTO config (var,val,description,year) VALUES ('$r->var','$r->val','$r->description','".$_POST['fairyear']."'"); + //add the actual fair name, and just insert the defaults of everything else + if($r->var=="fairname") + mysql_query("INSERT INTO config (var,val,description,year) VALUES ('$r->var','".mysql_escape_string(stripslashes($_POST['fairname']))."','$r->description','".$_POST['fairyear']."'"); + else + mysql_query("INSERT INTO config (var,val,description,year) VALUES ('$r->var','$r->val','$r->description','".$_POST['fairyear']."'"); } //copy over the dates defautls $q=mysql_query("SELECT * FROM dates WHERE year='-1'"); @@ -156,6 +160,7 @@ echo "
"; echo ""; echo ""; +echo ""; echo ""; echo "";
Fair NameThe name of the fair you are installing SFIAB to run
Fair YearThe year of the fair you are installing SFIAB to run
DirectoryThe directory of this SFIAB installation as seen by the web browser