diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index e23a361..40453e7 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -609,6 +609,18 @@ require_once(KT_LIB_DIR . '/ktentity.inc'); $KTInit->catchFatalErrors(); +if (phpversion()<5){ + + $sErrorPage = 'http://'.$_SERVER['HTTP_HOST'].'/'.'customerrorpage.php'; + + session_start(); + + $_SESSION['sErrorMessage'] = 'KnowledgeTree now requires that PHP version 5 is installed. PHP version 4 is no longer supported.'; + + + header('location:'. $sErrorPage ) ; + +} require_once(KT_LIB_DIR . '/config/config.inc.php'); require_once(KT_DIR . '/search2/indexing/indexerCore.inc.php'); diff --git a/customerrorpage.php b/customerrorpage.php index e28a938..7c5c525 100644 --- a/customerrorpage.php +++ b/customerrorpage.php @@ -12,6 +12,14 @@ if (array_key_exists('Error_MessageOne', $_POST) && array_key_exists('Error_Mess } +session_start(); +if (array_key_exists('sErrorMessage', $_SESSION)) +{ +$phperror = $_SESSION['sErrorMessage']; +} + + + ?> @@ -39,7 +47,7 @@ open.style.display = 'block';
For more details, click here 
For more details, click here 