From 86e5bfbd0962245703903107a5726f95b8594886 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Thu, 24 Feb 2011 22:05:56 +0000 Subject: [PATCH] Removed reliance on sessions as unecessary --- admin/import.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/admin/import.php b/admin/import.php index 728af951..953d6a2a 100644 --- a/admin/import.php +++ b/admin/import.php @@ -45,26 +45,24 @@ include ("../functions/functions.xhtml.php"); include("../functions/functions.import.php"); -session_start(); - -if (isset($_GET['import_form'])) +if (isset($_POST['import_form'])) { //form has been submitted xhtml_head(T_("Import: Validating and uploading")); //verify each GET field is unique (except import_form) $sfields = array(); - foreach($_GET as $getv => $val) + foreach($_POST as $getv => $val) //clean up? $sfields[$getv] = $val; $error = verify_fields($sfields); - $description = $_GET['description']; + $description = $_POST['description']; if ($error == "") { //verified so upload - if (import_file($_SESSION['filename'],$description,$sfields)) + if (import_file($_POST['filename'],$description,$sfields)) { print "

" . T_("Successfully imported file") . "

"; } @@ -88,12 +86,11 @@ else if (isset($_POST['import_file'])) xhtml_head(T_("Import: Select columns to import")); ?> -
+

+