sInitLocation
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12532
7612ce4b-ef26-0410-bec9-
ea0150e637f0
case 'key':
case 'value':
break;
case 'key':
case 'value':
break;
- case 'sInitLocation':
- // FIXME: variable must be set only in src/login.php
- break;
default:
unset($GLOBALS[$key]);
}
default:
unset($GLOBALS[$key]);
}
$squirrelmail_language = '';
}
$squirrelmail_language = '';
}
- * @var $sInitlocation From where do we include.
+ * Do something special for some pages. This is based on the PAGE_NAME constand
+ * set at the top of every page.
-if (!isset($sInitLocation)) {
- $sInitLocation=NULL;
-}
-
-switch ($sInitLocation) {
+if ( !defined('PAGE_NAME') ) define('PAGE_NAME', NULL);
+switch (PAGE_NAME) {
case 'style':
// need to get the right template set up
case 'style':
// need to get the right template set up
// signout page will deal with users who aren't logged
// in on its own; don't show error here
//
// signout page will deal with users who aren't logged
// in on its own; don't show error here
//
- if ( defined('PAGE_NAME') && PAGE_NAME == 'signout' ) {
+ if ( PAGE_NAME == 'signout' ) {
/** This is the login page */
define('PAGE_NAME', 'login');
/** This is the login page */
define('PAGE_NAME', 'login');
-// reduces the files included in init.php
-$sInitLocation = 'login';
-
/**
* Include the SquirrelMail initialization file.
*/
require('../include/init.php');
/**
* Include the SquirrelMail initialization file.
*/
require('../include/init.php');
/* SquirrelMail required files. */
require_once(SM_PATH . 'functions/imap_general.php');
require_once(SM_PATH . 'functions/forms.php');
/* SquirrelMail required files. */
require_once(SM_PATH . 'functions/imap_general.php');
require_once(SM_PATH . 'functions/forms.php');
* @version $Id$
* @package squirrelmail
*/
* @version $Id$
* @package squirrelmail
*/
-$sInitLocation = 'redirect';
/** This is the redirect page */
define('PAGE_NAME', 'redirect');
/** This is the redirect page */
define('PAGE_NAME', 'redirect');
/** This is the style page */
define('PAGE_NAME', 'style');
/** This is the style page */
define('PAGE_NAME', 'style');
-/**
- * Set the location in order to skip unneeded validation and other includes
- * in the SquirrelMail initialisation file.
- */
-$sInitLocation = 'style';
-
/**
* Include the SquirrelMail initialization file.
*/
/**
* Include the SquirrelMail initialization file.
*/