X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=include%2Finit.php;h=e7f0f1d921da041c7f90a0f8fb06eeee27d2475e;hb=f0d28f448867777aafe13b1106204765c229c17a;hp=d677942d77d4e95127f5e8cee9d2f04b6c94fd01;hpb=bc3acc5a08b71cd6c73daff3e3a524f76223be4e;p=squirrelmail.git diff --git a/include/init.php b/include/init.php index d677942d..e7f0f1d9 100644 --- a/include/init.php +++ b/include/init.php @@ -394,7 +394,7 @@ if (! sqgetGlobalVar('squirrelmail_language',$squirrelmail_language,SQ_COOKIE)) /** - * Do something special for some pages. This is based on the PAGE_NAME constand + * Do something special for some pages. This is based on the PAGE_NAME constant * set at the top of every page. */ switch (PAGE_NAME) { @@ -430,6 +430,10 @@ switch (PAGE_NAME) { session_write_close(); break; + case 'mailto': + // nothing to do + break; + case 'redirect': require(SM_PATH . 'functions/auth.php'); //nobreak; @@ -531,8 +535,6 @@ switch (PAGE_NAME) { exit; } -//FIXME: remove next line if the placement of the copy of this line above does not prove to be problematic - sqgetGlobalVar('username',$username,SQ_SESSION); sqgetGlobalVar('authz',$authz,SQ_SESSION); /** @@ -673,6 +675,12 @@ if (version_compare(PHP_VERSION, "4.3.0", ">=")) { $oldErrorHandler = set_error_handler('SquirrelMailErrorhandler'); } + +// ============================================================================ +// ================= End of Live Code, Beginning of Functions ================= +// ============================================================================ + + /** * Javascript support detection function * @param boolean $reset recheck javascript support if set to true.