From 40fe6cb88c08ca6b2ce5cb345254e6624b1587fb Mon Sep 17 00:00:00 2001 From: james Date: Fri, 16 Nov 2007 17:58:59 +0000 Subject: [PATCH] Do some checks for system() and error out where applicable --- admin/communication.php | 6 ++++++ db/db_update.php | 5 +++++ install2.php | 7 +++++++ 3 files changed, 18 insertions(+) diff --git a/admin/communication.php b/admin/communication.php index 3461f1b..d76fefd 100644 --- a/admin/communication.php +++ b/admin/communication.php @@ -128,6 +128,11 @@ echo ""; + if(!function_exists("system")) { + echo "
Sending requires php's system() function to be available
\n"; + } + else + { echo ""; echo ""; echo "
"; echo ""; @@ -140,6 +145,7 @@ echo ""; echo "
"; + } } else if($_GET['action']=="reallysend" && $_GET['reallysend'] && $_GET['to']) { diff --git a/db/db_update.php b/db/db_update.php index 6b51147..3a6deb6 100644 --- a/db/db_update.php +++ b/db/db_update.php @@ -1,4 +1,9 @@ \n";

SFIAB Installation - Step 2

Installation requires php's system() function to be available\n"; + echo ""; + exit; +} + if(!file_exists("data/config.inc.php")) { echo "
SFIAB Installation Step 1 is not yet complete.
";