X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fright_main.php;h=88841c6a576a2090c04f0166acc43e47ca94e888;hb=151562a780a0919b32e04d204ba7f33fb215bd84;hp=19d6674f8db8d9f59a109ff3bb1029528263f63e;hpb=3a1de9f183d077483f2d89162a24b572cffba7a5;p=squirrelmail.git diff --git a/src/right_main.php b/src/right_main.php index 19d6674f..88841c6a 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -6,7 +6,7 @@ * This is where the mailboxes are listed. This controls most of what * goes on in SquirrelMail. * - * @copyright © 1999-2005 The SquirrelMail Project Team + * @copyright © 1999-2006 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -19,47 +19,19 @@ define('SM_PATH','../'); /* SquirrelMail required files. */ -require_once(SM_PATH . 'include/validate.php'); -require_once(SM_PATH . 'functions/global.php'); +include_once(SM_PATH . 'include/validate.php'); +//include_once(SM_PATH . 'functions/global.php'); require_once(SM_PATH . 'functions/imap.php'); require_once(SM_PATH . 'functions/date.php'); require_once(SM_PATH . 'functions/mime.php'); require_once(SM_PATH . 'functions/mailbox_display.php'); require_once(SM_PATH . 'functions/display_messages.php'); require_once(SM_PATH . 'functions/html.php'); -require_once(SM_PATH . 'functions/plugin.php'); -include_once(SM_PATH . 'class/error.class.php'); +//require_once(SM_PATH . 'functions/plugin.php'); -//include_once(SM_PATH . 'templates/default/message_list.tpl'); -include_once(SM_PATH . 'class/template/template.class.php'); - -/** - * Which templatedir are we using. TODO, add make a config var of this and make it possible to switch templates - */ -$sTplDir = SM_PATH . 'templates/default/'; - -/* - * Initialize the template object - */ -$oTemplate = new Template($sTplDir); - -/* - * Initialize our custom error handler object - */ -$oErrorHandler = new ErrorHandler($oTemplate,'error_message.tpl'); - -/* - * Activate custom error handling - */ -if (version_compare(PHP_VERSION, "4.3.0", ">=")) { - $oldErrorHandler = set_error_handler(array($oErrorHandler, 'SquirrelMailErrorhandler')); -} else { - $oldErrorHandler = set_error_handler('SquirrelMailErrorhandler'); -} - // Trigger Developers to look at CSS ;) -trigger_error("This layout sucks. Adapt squirrelmail.css!!!",E_USER_WARNING); +// trigger_error("This layout sucks. Adapt squirrelmail.css!!!",E_USER_WARNING); //sqm_trigger_imap_error('SQM_IMAP_NO_THREAD',"BLA1",'BAD', 'BLA2', array('test1'=>'test1')); /* lets get the global vars we may need */