/* +-------------------------------------------------------------------+ | S H O U T B O X (v3.15) | | | | Copyright Gerd Tentler www.gerd-tentler.de/tools | | Created: Jun4 1, 2004 Last modified: Oct. 9, 2011 | +-------------------------------------------------------------------+ | This program may be used and hosted free of charge by anyone for | | personal purpose as long as this copyright notice remains intact. | | | | Obtain permission before selling the code for this program or | | hosting this software on a commercial website or redistributing | | this software over the Internet or in any other medium. In all | | cases copyright must remain intact. | +-------------------------------------------------------------------+ */ error_reporting(E_WARNING); //======================================================================================================== // Set variables, if they are not registered globally; needs PHP 4.1.0 or higher //======================================================================================================== if(isset($_SERVER['HTTP_HOST'])) $HTTP_HOST = $_SERVER['HTTP_HOST']; //======================================================================================================== // Includes //======================================================================================================== if($HTTP_HOST == 'localhost' || $HTTP_HOST == '127.0.0.1' || ereg('^192\.168\.0\.[0-9]+$', $HTTP_HOST)) { include('config_local.inc.php'); } else { include('config_main.inc.php'); } if(!isset($language)) $language = 'en'; include("languages/lang_$language.inc"); include('smilies.inc'); //======================================================================================================== // Set session variables (message ID); needs PHP 4.1.0 or higher //======================================================================================================== if($enableIDs && !$_SESSION['msgID']) { srand((double) microtime() * 1000000); $_SESSION['msgID'] = md5(uniqid(rand())); } //======================================================================================================== // Main //======================================================================================================== if($boxFolder && !ereg('/$', $boxFolder)) $boxFolder .= '/'; ?>