/** * This function is the GUI wrapper for the options page. SquirrelSpell * uses it for creating all Options pages. * * @param string $title The title of the page to display * @param string $scriptsrc This is used to link a file.js into the * <script src="file.js"></script> format. This * allows to separate javascript from the rest of the * plugin and place it into the js/ directory. * @param string $body The body of the message to display. * @return void */ function sqspell_makePage($title, $scriptsrc, $body) { global $color, $SQSPELL_VERSION; if (!sqgetGlobalVar('MOD', $MOD, SQ_GET)) { $MOD = 'options_main'; } displayPageHeader($color, 'None'); echo " <br />\n"; /** * Check if we need to link in a script. */ if ($scriptsrc) { echo "<script type=\"text/javascript\" src=\"js/{$scriptsrc}\"></script>\n"; } echo html_tag('table', '', 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"') . "\n" . html_tag('tr', "\n" . html_tag('td', '<strong>' . $title . '</strong>', 'center', $color[9])) . "\n" . html_tag('tr', "\n" . html_tag('td', '<hr />', 'left')) . "\n" . html_tag('tr', "\n" . html_tag('td', $body, 'left')) . "\n"; /** * Generate a nice "Return to Options" link, unless this is the * starting page. */ if ($MOD != "options_main") { echo html_tag('tr', "\n" . html_tag('td', '<hr />', 'left')) . "\n" . html_tag('tr', "\n" . html_tag('td', '<a href="sqspell_options.php">' . _("Back to "SpellChecker Options" page") . '</a>', 'center')) . "\n"; } /** * Close the table and display the version. */ echo html_tag('tr', "\n" . html_tag('td', '<hr />', 'left')) . "\n" . html_tag('tr', html_tag('td', 'SquirrelSpell ' . $SQSPELL_VERSION, 'center', $color[9])) . "\n</table>\n"; echo '</body></html>'; }
function displayLoginForm($message = "") { displayPageHeader(); ?> <?php if ($message) { echo '<p class="error">' . $message . '</p>'; } ?> <form action="login.php" method="post"> <div style="width: 30em;"> <label for="username">Username</label> <input type="text" name="username" id="username" value="" /> <label for="password">Password</label> <input type="password" name="password" id="password" value="" /> <div style="clear: both;"> <input type="submit" name="login" value="Login" /> </div> </div> </form> </body> </html> <?php }
/** * displayHeader * * @return void */ function displayHeader() { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Members'), 'pageId' => 'members', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y')); displayPageHeader($params); $order = isset($_GET['order']) ? $_GET['order'] : 'alphabetical'; $alpha = $age = $part = $act = $join = ''; if ($order == 'alphabetical') { $alpha = 'class="selected"'; } elseif ($order == 'age') { $age = 'class="selected"'; } elseif ($order == 'participation') { $part = 'class="selected"'; } elseif ($order == 'activity') { $act = 'class="selected"'; } elseif ($order == 'joined') { $join = 'class="selected"'; } echo ' <div id="leftcolumn"> <h3>' . T_('Views') . '</h3> <ul> <li ' . $alpha . '><a href="?order=alphabetical">' . T_('Alphabetical') . '</a></li> <li ' . $age . '><a href="?order=age">' . T_('Age') . '</a></li> <li ' . $part . '><a href="?order=participation">' . T_('Participation') . '</a></li> <li ' . $act . '><a href="?order=activity">' . T_('Last Seen') . '</a></li> <li ' . $join . '><a href="?order=joined">' . T_('Joined') . '</a></li> </ul> </div> <div id="maincolumn">'; }
/** * Get the MIME structure * * This function gets the structure of a message and stores it in the "message" class. * It will return this object for use with all relevant header information and * fully parsed into the standard "message" object format. */ function mime_structure($bodystructure, $flags = array()) { /* Isolate the body structure and remove beginning and end parenthesis. */ $read = trim(substr($bodystructure, strpos(strtolower($bodystructure), 'bodystructure') + 13)); $read = trim(substr($read, 0, -1)); $i = 0; $msg = Message::parseStructure($read, $i); if (!is_object($msg)) { global $color, $mailbox; displayPageHeader($color, $mailbox); $errormessage = _("SquirrelMail could not decode the bodystructure of the message"); $errormessage .= '<br />' . _("The bodystructure provided by your IMAP server:") . '<br /><br />'; $errormessage .= '<pre>' . sm_encode_html_special_chars($read) . '</pre>'; plain_error_message($errormessage); echo '</body></html>'; exit; } if (count($flags)) { foreach ($flags as $flag) { //FIXME: please document why it is we have to check the first char of the flag but we then go ahead and do a full string comparison anyway. Is this a speed enhancement? If not, let's keep it simple and just compare the full string and forget the switch block. $char = strtoupper($flag[1]); switch ($char) { case 'S': if (strtolower($flag) == '\\seen') { $msg->is_seen = true; } break; case 'A': if (strtolower($flag) == '\\answered') { $msg->is_answered = true; } break; case 'D': if (strtolower($flag) == '\\deleted') { $msg->is_deleted = true; } break; case 'F': if (strtolower($flag) == '\\flagged') { $msg->is_flagged = true; } else { if (strtolower($flag) == '$forwarded') { $msg->is_forwarded = true; } } break; case 'M': if (strtolower($flag) == '$mdnsent') { $msg->is_mdnsent = true; } break; default: break; } } } // listEntities($msg); return $msg; }
function displayThanks() { displayPageHeader("Thanks for logging in!"); ?> <p>Thank you for logging in. Please proceed to the <a href="send_index.php">members' area</a>.</p> <?php displayPageFooter(); }
/** * Get the MIME structure * * This function gets the structure of a message and stores it in the "message" class. * It will return this object for use with all relevant header information and * fully parsed into the standard "message" object format. */ function mime_structure($bodystructure, $flags = array()) { /* Isolate the body structure and remove beginning and end parenthesis. */ $read = trim(substr($bodystructure, strpos(strtolower($bodystructure), 'bodystructure') + 13)); $read = trim(substr($read, 0, -1)); $i = 0; $msg = Message::parseStructure($read, $i); if (!is_object($msg)) { include_once SM_PATH . 'functions/display_messages.php'; global $color, $mailbox; /* removed urldecode because $_GET is auto urldecoded ??? */ displayPageHeader($color, $mailbox); echo "<body text=\"{$color['8']}\" bgcolor=\"{$color['4']}\" link=\"{$color['7']}\" vlink=\"{$color['7']}\" alink=\"{$color['7']}\">\n\n" . '<center>'; $errormessage = _("SquirrelMail could not decode the bodystructure of the message"); $errormessage .= '<br />' . _("The bodystructure provided by your IMAP server:") . '<br /><br />'; $errormessage .= '<table><tr><td>' . htmlspecialchars($read) . '</td></tr></table>'; plain_error_message($errormessage, $color); echo '</body></html>'; exit; } if (count($flags)) { foreach ($flags as $flag) { $char = strtoupper($flag[1]); switch ($char) { case 'S': if (strtolower($flag) == '\\seen') { $msg->is_seen = true; } break; case 'A': if (strtolower($flag) == '\\answered') { $msg->is_answered = true; } break; case 'D': if (strtolower($flag) == '\\deleted') { $msg->is_deleted = true; } break; case 'F': if (strtolower($flag) == '\\flagged') { $msg->is_flagged = true; } break; case 'M': if (strtolower($flag) == '$mdnsent') { $msg->is_mdnsent = true; } break; default: break; } } } // listEntities($msg); return $msg; }
/** * displayHeader * * Displays the header of the page, including the leftcolumn navigation. * * @return void */ function displayHeader() { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => cleanOutput(getSiteName()), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Polls'), 'pageId' => 'poll', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y')); displayPageHeader($params); $navParams = array('navigation' => array(array('url' => 'polls.php', 'textLink' => T_('Latest')), array('url' => 'polls.php?action=pastpolls', 'textLink' => T_('Past Polls')))); if ($this->fcmsUser->access < 2) { $navParams['actions'] = array(array('url' => 'admin/polls.php', 'textLink' => T_('Administrate'))); } loadTemplate('global', 'page-navigation', $navParams); }
function view_header($header, $mailbox, $color) { sqgetGlobalVar('QUERY_STRING', $queryStr, SQ_SERVER); $ret_addr = SM_PATH . 'src/read_body.php?' . $queryStr; displayPageHeader($color, $mailbox); echo '<br />' . '<table width="100%" cellpadding="2" cellspacing="0" border="0" ' . 'align="center">' . "\n" . '<tr><td bgcolor="' . $color[9] . '" width="100%" align="center"><b>' . _("Viewing Full Header") . '</b> - ' . '<a href="'; echo_template_var($ret_addr); echo '">' . _("View message") . "</a></b></td></tr></table>\n"; echo_template_var($header, array('<table width="99%" cellpadding="2" cellspacing="0" border="0" ' . "align=center>\n" . '<tr><td>', '<nobr><tt><b>', '</b>', '</tt></nobr>', '</td></tr></table>' . "\n")); echo '</body></html>'; }
/** Moved to a separate function to allow for setting a cookie **/ function doMyHeader() { global $color; displayPageHeader($color, "None"); ?> <br> <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php echo $color[0]; ?> "> <center><b><?php echo _("Changing Password"); ?> </b></center> </td></tr></table> <?php }
/** * displayHeader * * @return void */ function displayHeader() { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Help'), 'pageId' => 'help', 'path' => URL_PREFIX, 'displayname' => getUserDisplayName($this->fcmsUser->id), 'version' => getCurrentVersion()); displayPageHeader($params); echo ' <div id="leftcolumn"> <h3>' . T_('Topics') . '</h3> <ul class="menu"> <li><a href="?topic=photo">' . T_('Photo Gallery') . '</a></li> <li><a href="?topic=video">' . T_('Video Gallery') . '</a></li> <li><a href="?topic=settings">' . T_('Personal Settings') . '</a></li> <li><a href="?topic=address">' . T_('Address Book') . '</a></li> <li><a href="?topic=admin">' . T_('Administration') . '</a></li> </ul> </div> <div id="maincolumn">'; }
/** * displayHeader * * @return void */ function displayHeader($options = null) { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Private Messages'), 'pageId' => 'privatemsg', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion()); displayPageHeader($params, $options); $link = T_('Inbox'); if (isset($_SESSION['private_messages']) && $_SESSION['private_messages'] > 0) { $link = sprintf(T_('Inbox (%d)'), $_SESSION['private_messages']); } echo ' <div id="actions_menu"> <ul><li><a href="?compose=new">' . T_('New Message') . '</a></li></ul> </div> <div id="leftcolumn"> <ul class="menu"> <li><a href="privatemsg.php">' . $link . '</a></li> <li><a href="privatemsg.php?folder=sent">' . T_('Sent') . '</a></li> </ul> </div> <div id="maincolumn">'; }
function displayEditForm($filename = "") { if (!$filename) { $filename = basename($_GET["filename"]); } if (!$filename) { die("Invalid filename"); } $filepath = PATH_TO_FILES . "/{$filename}"; if (!file_exists($filepath)) { die("File not found"); } displayPageHeader(); ?> <h2>Editing <?php echo $filename; ?> </h2> <form action="text_editor.php" method="post"> <div style="width: 40em;"> <input type="hidden" name="filename" value="<?php echo htmlspecialchars($filename); ?> " /> <textarea name="fileContents" id="fileContents" rows="20" cols="80" style="width: 100%;"><?php echo htmlspecialchars(file_get_contents($filepath)); ?> </textarea> <div style="clear: both;"> <input type="submit" name="saveFile" value="Save File" /> <input type="submit" name="cancel" value="Cancel" style="margin-right: 20px;" /> </div> </div> </form> </body> </html> <?php }
<?php /** * SquirrelMail Test Plugin * @copyright 2006-2016 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage test */ include_once '../../include/init.php'; global $oTemplate, $color; displayPageHeader($color, ''); $oTemplate->display('plugins/test/test_menu.tpl'); $oTemplate->display('footer.tpl');
function displayThanks() { displayPageHeader("Thanks for registering!"); ?> <p>Thank you, you are now a registered member of the book club.</p> <p>Register another user <a href="register.php">members' area</a>.</p> <p>Proceed to the <a href="send_index.php">members' area</a>.</p> <?php displayPageFooter(); }
function displayThanks() { displayPageHeader("Thanks for registering!"); ?> <p>Thank you, you are now a registered member of the book club.</p> <?php displayPageFooter(); }
} echo "</tr>\n"; $line++; } if ($includesource) { $td_colspan = '5'; } else { $td_colspan = '4'; } echo html_tag('tr', html_tag('td', '<input type="submit" name="addr_search_done" value="' . _("Use Addresses") . '" />', 'center', '', 'colspan="' . $td_colspan . '"')) . '</table>' . addHidden('html_addr_search_done', '1') . '</form>'; } /* --- End functions --- */ if ($compose_new_win == '1') { compose_Header($color, $mailbox); } else { displayPageHeader($color, $mailbox); } /* Initialize addressbook */ $abook = addressbook_init(); echo '<br />' . html_tag('table', html_tag('tr', html_tag('td', '<b>' . _("Address Book Search") . '</b>', 'center', $color[0])), 'center', '', 'width="95%" cellpadding="2" cellspacing="2" border="0"'); /* Search form */ echo '<center>' . html_tag('table', '', 'center', '', 'border="0"') . html_tag('tr') . html_tag('td', '', 'left', '', 'nowrap valign="middle"') . "\n" . addForm($PHP_SELF . '?html_addr_search=true', 'post', 'f') . "\n<center>\n" . ' <nobr><strong>' . _("Search for") . "</strong>\n"; addr_insert_hidden(); if (!isset($addrquery)) { $addrquery = ''; } echo addInput('addrquery', $addrquery, 26); /* List all backends to allow the user to choose where to search */ if (!isset($backend)) { $backend = ''; }
<?php session_start(); require_once "../siteCommon.php"; require_once "../projectSQL.php"; displayPageHeader("Search for a recipe by ingredients Results"); // $_POST is an associative array of the values passed via the HTTP POST method $recipename = $_POST['recipename']; $categoryID = $_POST['category']; $ingredients = $_POST['ingredients']; $instructions = $_POST['instructions']; $prepTime = $_POST['preptime']; $cookTime = $_POST['cooktime']; $allergieID = $_POST['allergieid']; $timeOfYear = $_POST['timeOfYear']; if ($categoryID != '') { $category = getACategory($categoryID); if (count($category) == 1) { extract($category[0]); } // print_r($category); } if ($allergieID != '') { $allergie = getAAllergie($allergieID); if (count($allergie) == 1) { extract($allergie[0]); } // print_r($category); } // call the displayPageHeader method in siteCommon.php $heading = <<<ABC
<?php require_once "../common.inc.php"; session_start(); $_SESSION["member"] = ""; displayPageHeader("Logged out", true); ?> <p>Thank you, you are now logged out. <a href="login.php">Login again</a>.</p> <?php displayPageFooter();
/* Run the options save hook. */ do_hook($save_hook_name); } /***************************************************************/ /* Apply logic to decide what optpage we want to display next. */ /***************************************************************/ /* If this is the result of an option page being submitted, then */ /* show the main page. Otherwise, show whatever page was called. */ if ($optmode == SMOPT_MODE_SUBMIT) { $optpage = SMOPT_PAGE_MAIN; $optpage_title = _("Options"); } /***************************************************************/ /* Finally, display whatever page we are supposed to show now. */ /***************************************************************/ displayPageHeader($color, 'None', isset($optpage_data['xtra']) ? $optpage_data['xtra'] : ''); echo html_tag('table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"') . "\n" . html_tag('tr') . "\n" . html_tag('td', '', 'center') . "<b>{$optpage_title}</b><br />\n" . html_tag('table', '', '', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"') . "\n" . html_tag('tr') . "\n" . html_tag('td', '', 'center', $color[4]) . "\n"; /* * The main option page has a different layout then the rest of the option * pages. Therefore, we create it here first, then the others below. */ if ($optpage == SMOPT_PAGE_MAIN) { /**********************************************************/ /* First, display the results of a submission, if needed. */ /**********************************************************/ if ($optmode == SMOPT_MODE_SUBMIT) { if (!isset($frame_top)) { $frame_top = '_top'; } if (isset($optpage_save_error) && $optpage_save_error != array()) { echo "<font color=\"{$color['2']}\"><b>" . _("Error(s) occurred while saving your options") . "</b></font><br />\n";
if (sqGetGlobalVar('deletelist', $deletelist, SQ_FORM) && is_array($deletelist) && !empty($deletelist)) { // interface currently does not support multiple deletions at once // but we'll support it here anyway -- the index values of this // array are the only thing we care about and need to be the // index number of the list to be deleted // foreach (array_keys($deletelist) as $index) { unset($lists[$index]); } sort($lists); $temp_lists = array(); foreach ($lists as $index => $list_addr) { $temp_lists[] = $index . '_' . $list_addr; } setPref($data_dir, $username, 'non_rfc_lists', implode(':', $temp_lists)); } // add list? // if (sqGetGlobalVar('addlist', $ignore, SQ_FORM) && sqGetGlobalVar('newlist', $newlist, SQ_FORM)) { $lists[] = $newlist; sort($lists); $temp_lists = array(); foreach ($lists as $index => $list_addr) { $temp_lists[] = $index . '_' . $list_addr; } setPref($data_dir, $username, 'non_rfc_lists', implode(':', $temp_lists)); } displayPageHeader($color); $oTemplate->assign('lists', $lists); $oTemplate->display('plugins/listcommands/non_rfc_lists.tpl'); $oTemplate->display('footer.tpl');
/** * displayHeader * * @return void */ function displayHeader($options = null) { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Family News'), 'pageId' => 'familynews', 'path' => URL_PREFIX, 'displayname' => getUserDisplayName($this->fcmsUser->id), 'version' => getCurrentVersion(), 'year' => date('Y')); displayPageHeader($params, $options); if ($this->fcmsUser->access < 6 || $this->fcmsUser->access == 9) { echo ' <div id="sections_menu"> <ul> <li><a href="familynews.php">' . T_('Latest News') . '</a></li>'; if ($this->fcmsFamilyNews->hasNews($this->fcmsUser->id)) { echo ' <li><a href="?getnews=' . $this->fcmsUser->id . '">' . T_('My News') . '</a></li>'; } echo ' </ul> </div> <div id="actions_menu"> <ul> <li><a href="?addnews=yes">' . T_('Add News') . '</a></li> </ul> </div>'; } if (!isset($_GET['addnews']) && !isset($_POST['editnews'])) { $this->fcmsFamilyNews->displayNewsList(); } }
* * Copyright (c) 1999-2006 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * $Id: mailout.php 12279 2007-02-27 17:27:12Z kink $ * @package plugins * @subpackage listcommands */ define('SM_PATH', '../../'); /* SquirrelMail required files. */ require_once SM_PATH . 'include/validate.php'; include_once SM_PATH . 'functions/page_header.php'; include_once SM_PATH . 'include/load_prefs.php'; include_once SM_PATH . 'functions/html.php'; require_once SM_PATH . 'functions/identity.php'; displayPageHeader($color, null); /* get globals */ sqgetGlobalVar('mailbox', $mailbox, SQ_GET); sqgetGlobalVar('send_to', $send_to, SQ_GET); sqgetGlobalVar('subject', $subject, SQ_GET); sqgetGlobalVar('body', $body, SQ_GET); sqgetGlobalVar('action', $action, SQ_GET); switch ($action) { case 'help': $out_string = _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below."); break; case 'subscribe': $out_string = _("This will send a message to %s requesting that you will be subscribed to this list. You will be subscribed with the address below."); break; case 'unsubscribe': $out_string = _("This will send a message to %s requesting that you will be unsubscribed from this list. It will try to unsubscribe the adress below.");
<?php session_start(); include_once '../siteCommon.php'; displayPageHeader('Edit A Recipe'); ?> <html> <link href="../stylesCommon.css" rel="stylesheet" type="text/css"/> <form id="editRecipe"> <label for="dishtitle">Dish Title</label> <input type="text" name="recipename" id="recipename" maxlength="100" autofocus="autofocus" required="required" pattern="^[a-zA-Z0-9][\w\s\&,]*[a-zA-Z0-9\!\?\.]$" title="Movie title has invalid characters"/> <label for="name">Your Name</label> <input type="text" name="name" id="name" maxlength="100" required="required" pattern="^[a-zA-Z0-9][\w\s\&,]*[a-zA-Z0-9\!\?\.]$" title="Tag line has invalid characters" /> <label for="category">Type of Cuisine</label> <select name="category" id="rating"/> <body> <input type="button" id="edit" value="Submit"/> </body> </html> <?php displayPageFooter();
<?php require_once "common.inc.php"; checkLogin(); displayPageHeader("Welcome to the Members' Area"); // var_dump($_SESSION["member"]); ?> <p>Welcome, <?php echo $_SESSION["member"]->getValue("first_name"); ?> ! Please choose an option below:</p> <ul> <li><a href="send_tweets.php">Send Tweets</a></li> <li><a href="logout.php">Logout</a></li> </ul> <?php displayPageFooter();
include "../config/config.php"; } if (!isset($strings_php)) { include "../functions/strings.php"; } if (!isset($date_php)) { include "../functions/date.php"; } if (!isset($page_header_php)) { include "../functions/page_header.php"; } if (!isset($i18n_php)) { include "../functions/i18n.php"; } include "../src/load_prefs.php"; displayPageHeader($color, "None"); echo "<BR><TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>\n"; echo "<TR><TD BGCOLOR=\"{$color['0']}\">"; echo "<B><CENTER>"; echo _("Viewing an image attachment") . " - "; if ($where && $what) { // from a search echo "<a href=\"../../src/read_body.php?mailbox=" . urlencode($mailbox) . "&passed_id={$passed_id}&where=" . urlencode($where) . "&what=" . urlencode($what) . "\">" . _("View message") . "</a>"; } else { echo "<a href=\"../../src/read_body.php?mailbox=" . urlencode($mailbox) . "&passed_id={$passed_id}&startMessage={$startMessage}&show_more=0\">" . _("View message") . "</a>"; } $DownloadLink = "../../src/download.php?absolute_dl=true&passed_id=" . "{$passed_id}&mailbox=" . urlencode($mailbox) . "&passed_ent_id={$passed_ent_id}"; echo "</b></td></tr>\n"; echo "<tr><td align=center><A HREF=\"{$DownloadLink}\">"; echo _("Download this as a file"); echo "</A></B><BR> \n";
/** * displayHeader * * @param array $options * * @return void */ function displayHeader($options = null) { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Address Book'), 'pageId' => 'addressbook', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion()); displayPageHeader($params, $options); }
/** * displayHeader * * @return void */ function displayHeader() { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Contact'), 'pageId' => 'contact', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion()); displayPageHeader($params); }
/** * displayHeader * * @return void */ function displayHeader($options = null) { $params = array('currentUserId' => $this->fcmsUser->id, 'sitename' => cleanOutput(getSiteName()), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Photo Gallery'), 'pageId' => 'gallery', 'path' => URL_PREFIX, 'displayname' => $this->fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y')); if ($options === null) { $options = array('jsOnload' => 'deleteConfirmationLink("deletephoto", "' . T_('Are you sure you want to DELETE this Photo?') . '");' . 'deleteConfirmationLinks("gal_delcombtn", "' . T_('Are you sure you want to DELETE this Comment?') . '");' . 'deleteConfirmationLinks("delcategory", "' . T_('Are you sure you want to DELETE this Category?') . '");' . 'initNewWindow();'); } displayPageHeader($params, $options); }
* * @version $Id: folders.php,v 1.130 2004/09/22 21:11:15 pdontthink Exp $ * @package squirrelmail */ /** * Path for SquirrelMail required files. * @ignore */ define('SM_PATH', '../'); /* SquirrelMail required files. */ require_once SM_PATH . 'include/validate.php'; require_once SM_PATH . 'functions/imap.php'; require_once SM_PATH . 'functions/plugin.php'; require_once SM_PATH . 'functions/html.php'; require_once SM_PATH . 'functions/forms.php'; displayPageHeader($color, 'None'); /* get globals we may need */ sqgetGlobalVar('username', $username, SQ_SESSION); sqgetGlobalVar('key', $key, SQ_COOKIE); sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); sqgetGlobalVar('success', $success, SQ_GET); /* end of get globals */ echo '<br />' . html_tag('table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"') . html_tag('tr') . html_tag('td', '', 'center') . '<b>' . _("Folders") . '</b>' . html_tag('table', '', 'center', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"') . html_tag('tr') . html_tag('td', '', 'center', $color[4]); if (isset($success) && $success) { $td_str = '<b>'; switch ($success) { case 'subscribe': $td_str .= _("Subscribed successfully!"); break; case 'unsubscribe':
function displayThanks() { displayPageHeader("¡Gracias por iniciar sesión!", true); ?> <p>Gracias por loguearte. <a href="index.php">Indice</a>.</p> <?php displayPageFooter(); }