From 9d2f6ad537462d99ad8f39176c24ee193ec147ac Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Wed, 15 Oct 2003 00:02:48 +0000 Subject: [PATCH] Corrected labels, moved headers to before sql queries so that headers precede any errors. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@720 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/importgroup.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/importgroup.php b/admin/importgroup.php index f94cf526937..f9921945e79 100644 --- a/admin/importgroup.php +++ b/admin/importgroup.php @@ -37,7 +37,7 @@ echo "
\n"; echo "\n"; -echo "\t\n"; +echo "\t\n"; echo "\t
"._IMPORTSURVEY."
"._IMPORTGROUP."
$setfont\n"; $the_full_file_path = $homedir . "/" . $_FILES['the_file']['name']; @@ -69,7 +69,7 @@ if (substr($bigarray[1], 0, 21) != "# SURVEYOR GROUP DUMP") { echo ""._ERROR."
\n"; - echo _IS_WRONGFILE."

\n"; + echo _IG_WRONGFILE."

\n"; echo "\n"; echo "
\n"; echo "\n\n"; @@ -208,7 +208,7 @@ //DO ANY LABELSETS FIRST, SO WE CAN KNOW WHAT THEY'RE NEW LID IS FOR THE QUESTIONS if ($labelsetsarray) { - echo "DOING LABELSETS
"; + //echo "DOING LABELSETS
"; foreach ($labelsetsarray as $lsa) { $fieldorders=convertToArray($lsa, "`, `", "(`", "`)"); $fieldcontents=convertToArray($lsa, "', '", "('", "')"); @@ -347,7 +347,7 @@ $fieldnames[]=array($oldsid."X".$oldgid."X".$oldqid, $newsid."X".$newgid."X".$newqid); $substitutions[]=array($oldsid, $oldgid, $oldqid, $newsid, $newgid, $newqid); } - echo $oldsid."X".$oldgid."X".$oldqid ."--". $newsid."X".$newgid."X".$newqid."
"; + //echo $oldsid."X".$oldgid."X".$oldqid ."--". $newsid."X".$newgid."X".$newqid."
"; } } } @@ -379,20 +379,20 @@ $newvalues="('".implode("', '", $newfieldcontents)."')"; $insert=str_replace("('".implode("', '", $fieldcontents)."')", $newvalues, $car); $insert=str_replace("INTO conditions", "INTO {$dbprefix}conditions", $insert); - echo "-- CONDITIONS --
$insert
\n"; + //echo "-- CONDITIONS --
$insert
\n"; $result=mysql_query($insert) or die ("Couldn't insert condition
$insert
".mysql_error()); } } echo "
\n"._SUCCESS."
\n"; -echo ""._IS_IMPORTSUMMARY."
\n"; +echo ""._IG_IMPORTSUMMARY."
\n"; echo "\n"; -echo ""._IS_SUCCESS."
\n"; +echo ""._IG_SUCCESS."
\n"; echo "\n"; echo "\n";