diff --git a/customerrorpage.php b/customerrorpage.php index 2f4cdc4..bf64e6d 100644 --- a/customerrorpage.php +++ b/customerrorpage.php @@ -1,4 +1,39 @@ . + * + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, + * California 94120-7775, or email info@knowledgetree.com. + * + * The interactive user interfaces in modified source and object code versions + * of this program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU General Public License version 3. + * + * In accordance with Section 7(b) of the GNU General Public License version 3, + * these Appropriate Legal Notices must retain the display of the "Powered by + * KnowledgeTree" logo and retain the original copyright notice. If the display of the + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices + * must display the words "Powered by KnowledgeTree" and retain the original + * copyright notice. + * Contributor( s): ______________________________________ + */ if (array_key_exists('fatal', $_POST)) { @@ -13,32 +48,41 @@ if (array_key_exists('Error_MessageOne', $_POST) && array_key_exists('Error_Mess } session_start(); -require_once("config/dmsDefaults.php"); + if (array_key_exists('sErrorMessage', $_SESSION)) { -$phperror = $_SESSION['sErrorMessage']; + $phperror = $_SESSION['sErrorMessage']; } -global $default; - -$sUrl = $default->rootUrl; +//Finding root Url +$sHost = $_SERVER['HTTP_HOST']; +$sScriptName = dirname($_SERVER['SCRIPT_NAME']); +$sRoot = $sHost.$sScriptName; +$sLastChar = substr($sScriptName, -1, 1); +$sScriptName = ($sLastChar == '\\' || $sLastChar == '/') ? substr($sScriptName, 0, -1) : $sScriptName; +$bSSLEnabled = false; +if ($_SERVER['HTTPS'] === 'on') +{ + $bSSLEnabled = true; +} +$sRootUrl = ($bSSLEnabled ? 'https://' : 'http://').$sRoot; ?> Knowledgetree - Desklet - + @@ -51,12 +95,13 @@ border.style.height = '250px';
-

Error!! - You have encountered a problem starting your document management system.

-

Please contact your systems administrator

-

For more details, click here

+

An Has Error Occurred

+

You have encountered a problem with your document management system.

+

Please contact your systems administrator.

+

For more information on the error click here:

- \ No newline at end of file +