@@ -16,6 +16,9 @@
* @package squirrelmail
*/
+/** This is the about page */
+define('PAGE_NAME', 'about');
+
/**
* Include the SquirrelMail initialization file.
@@ -12,6 +12,9 @@
* @subpackage addressbook
+/** This is the addrbook_popup page */
+define('PAGE_NAME', 'addrbook_popup');
@@ -15,6 +15,9 @@
+/** This is the addrbook_search page */
+define('PAGE_NAME', 'addrbook_search');
@@ -20,6 +20,9 @@
* init.php.
if (!isset($bInit)) {
+ /** This is the addrbook_search_html page */
+ define('PAGE_NAME', 'addrbook_search_html');
include('../include/init.php');
}
+/** This is the addressbook page */
+define('PAGE_NAME', 'addressbook');
@@ -279,4 +282,3 @@ echo "</form>\n";
do_hook('addressbook_bottom', $null);
$oTemplate->display('footer.tpl');
-?>
+/** This is the compose page */
+define('PAGE_NAME', 'compose');
* If it throws errors you need to adjust your config. *
************************************************************/
+/** This is the configtest page */
+define('PAGE_NAME', 'configtest');
// This script could really use some restructuring as it has grown quite rapidly
// but is not very 'clean'. Feel free to get some structure into this thing.
@@ -920,4 +923,3 @@ if ($warnings) {
EOF;
echo $footer;
@@ -11,10 +11,11 @@
+define('PAGE_NAME', 'delete_message');
error_box('delete_message.php script is obsolete since 1.5.1.');
+/** This is the download page */
+define('PAGE_NAME', 'download');
+/** This is the empty_trash page */
+define('PAGE_NAME', 'empty_trash');
@@ -71,4 +74,3 @@ session_write_close();
$location = get_location();
header ("Location: $location/left_main.php");
+/** This is the folders page */
+define('PAGE_NAME', 'folders');
@@ -193,4 +196,3 @@ $oTemplate->assign('subbox_option_list', $subbox_option_list);
$oTemplate->display('folder_manip.tpl');
@@ -11,6 +11,9 @@
+/** This is the help page */
+define('PAGE_NAME', 'help');
@@ -237,4 +240,3 @@ if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) {
do_hook('help_bottom', $null);
+/** This is the image page */
+define('PAGE_NAME', 'image');
+/** This is the left_main page */
+define('PAGE_NAME', 'left_main');
+/** This is the login page */
+define('PAGE_NAME', 'login');
// reduces the files included in init.php
$sInitLocation = 'login';
@@ -17,6 +17,9 @@
+/** This is the mailto page */
+define('PAGE_NAME', 'mailto');
// reduce the included files in int.php
$bLogin = true;
@@ -78,4 +81,3 @@ if($force_login == false && sqsession_is_registered('user_is_logged_in')) {
session_write_close();
header('Location: ' . get_location() . '/' . $redirect);
@@ -13,6 +13,9 @@
* @subpackage prefs
+/** This is the options page */
+define('PAGE_NAME', 'options');
+/** This is the options_highlight page */
+define('PAGE_NAME', 'options_highlight');
@@ -346,4 +349,3 @@ if ($action == 'edit' || $action == 'add') {
do_hook('options_highlight_bottom', $null);
* @since 1.1.3
+/** This is the options_identities page */
+define('PAGE_NAME', 'options_identities');
@@ -226,4 +229,3 @@ function sti_textarea( $title, $name, $data, $bgcolor ) {
+/** This is the options_order page */
+define('PAGE_NAME', 'options_order');
@@ -161,4 +164,3 @@ $oTemplate->assign('addField_action', $PHP_SELF);
$oTemplate->display('options_order.tpl');
@@ -14,6 +14,9 @@
+/** This is the printer_friendly_bottom page */
+define('PAGE_NAME', 'printer_friendly_bottom');
@@ -9,6 +9,9 @@
+/** This is the printer_friendly_main page */
+define('PAGE_NAME', 'printer_friendly_main');
+/** This is the printer_friendly_top page */
+define('PAGE_NAME', 'printer_friendly_top');
@@ -23,4 +26,3 @@ $oErrorHandler->setDelayedErrors(true);
$oTemplate->display('printer_friendly_top.tpl');
+/** This is the read_body page */
+define('PAGE_NAME', 'read_body');
@@ -978,4 +981,3 @@ formatMenuBar($aMailbox, $passed_id, $passed_ent_id, $message, false, FALSE);
do_hook('read_body_bottom', $null);
sqimap_logout($imapConnection);
$sInitLocation = 'redirect';
+/** This is the redirect page */
+define('PAGE_NAME', 'redirect');
+/** This is the right_main page */
+define('PAGE_NAME', 'right_main');
//xdebug_start_profiling("/var/spool/xdebug/right_main.txt");
* @todo explain why references are used in function calls
+/** This is the search page */
+define('PAGE_NAME', 'search');
@@ -1634,4 +1637,3 @@ sqimap_logout($imapConnection);
sqsession_register($mailbox_cache,'mailbox_cache');
@@ -13,6 +13,10 @@
* @since 1.5.2
*
+/** This is the squirrelmail_rpc page */
+define('PAGE_NAME', 'squirrelmail_rpc');
//FIXME: If we decide to route ALL requests, even normal page
// requests through this file, need to change page requests
// to something like this
+/** 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.
+/** This is the vcard page */
+define('PAGE_NAME', 'vcard');
@@ -185,4 +188,3 @@ $oTemplate->assign('info', $opts);
$oTemplate->display('vcard.tpl');
+/** This is the view_header page */
+define('PAGE_NAME', 'view_header');
@@ -115,4 +118,3 @@ $oTemplate->assign('headers', $aTemplateHeaders);
$oTemplate->display('view_header.tpl');
@@ -1,7 +1,7 @@
<?php
- * $Source$
+ * view_html
* Displays html message parts
* File is used to display html message parts. Usually inside iframe.
+/** This is the view_html page */
+define('PAGE_NAME', 'view_html');
@@ -74,4 +77,3 @@ $body = MagicHTML( $body, $passed_id, $message, $mailbox);
/** TODO: charset might be part of html code. */
header('Content-Type: text/html; charset=' . $charset);
echo $body;
+/** This is the view_text page */
+define('PAGE_NAME', 'view_text');
/** SquirrelMail required files. */
include(SM_PATH . 'functions/imap_general.php');
@@ -85,4 +88,3 @@ $oTemplate->assign('body', $body);
$oTemplate->display('view_text.tpl');
+/** This is the webmail page */
+define('PAGE_NAME', 'webmail');