From d20896f61bc87826cc3d57731cd86fcd65279583 Mon Sep 17 00:00:00 2001 From: nehresma Date: Sun, 2 Jul 2000 03:59:26 +0000 Subject: [PATCH] changed the header at the top of the csv import page to be our normal header and added some simple error checking/handling. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@581 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/addressbook_csvimport.php | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/addressbook_csvimport.php b/src/addressbook_csvimport.php index f9feb71c..2fa1af87 100644 --- a/src/addressbook_csvimport.php +++ b/src/addressbook_csvimport.php @@ -34,16 +34,30 @@ exit; } if (!isset($config_php)) - include("../config/config.php"); + include("../config/config.php"); if (!isset($i18n_php)) - include("../functions/i18n.php"); + include("../functions/i18n.php"); + if (!isset($page_header_php)) + include("../functions/page_header.php"); + if (!isset($addressbook_php)) + include("../functions/addressbook.php"); + if (!isset($strings_php)) + include("../functions/strings.php"); - include("../functions/page_header.php"); - include("../functions/addressbook.php"); - include("../src/load_prefs.php"); + include("../src/load_prefs.php"); - echo ""; - echo "\n"; + displayPageHeader($color, "None"); + + if (!isset($smusercsv) || $smusercsv == "none") { + echo "

\n"; + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
" . _("Please select a file for uploading. You can do this by clicking on the browse button on the ") . "" . _("Address Book") . " " . _("page.") . "
\n"; + echo "\n"; + exit; + } /** ** Script-wide vars. Used all over the place or something you might want to change later. -- 2.25.1