diff --git a/admin/updatesample.php b/admin/updatesample.php new file mode 100644 index 00000000..cbc5341d --- /dev/null +++ b/admin/updatesample.php @@ -0,0 +1,140 @@ + " . T_("Go back") . ""; + + $import_id = intval($_POST['import_id']); + + $tmpfname = tempnam(TEMPORARY_DIRECTORY, "FOO"); + move_uploaded_file($_FILES['file']['tmp_name'],$tmpfname); + + $valid = verify_file($tmpfname,$import_id); + + if ($valid) + { //verified so upload + if (update_file($tmpfname,$import_id)) + { + print "
" . T_("Successfully updated sample") . "
" . T_("Error importing file. Please try again") . "
" . T_("Error:") . " $error
" . T_("Please check imported file matches column count and names from original sample file, go back in your browser and fix the problem") . "