// display header with just application name do_html_header("Jama© Mail "); } } } display_toolbar($buttons); //***************************************************************************** // Stage 3: body // Depending on action, show appropriate main body content //***************************************************************************** //display any text generated by functions called before header echo $status; if (!check_auth_user()) { echo '<p>You need to log in'; if ($_SERVER['REQUEST_METHOD'] == 'POST' && $action != 'log-out') { echo ' to go to ' . format_action($action); } echo '.</p><br /><br />'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { display_login_form($action); } else { $action = ''; display_login_form($action); } } else { if (isset($_REQUEST['action'])) { switch ($action) { // if we have chosen to setup a new account, or have just added or // deleted an account, show account setup page case 'store-settings': case 'account-setup':
function display_preview_button($list, $mail, $button) { if ($button == 'view-html' || $button == 'preview-html') { echo "<div align=\"center\">\n <a href=\"archive/" . $list . "/" . $mail . "/index.html\"\n target=\"new\"><img src=\"images/" . $button . ".gif\"\n width=\"149\" height=\"43\" border=\"0\"\n alt=\"" . format_action($button) . "\" /></a></div>\n"; } else { echo "<div align=\"center\">\n <a href=\"archive/" . $list . "/" . $mail . "/text.txt\"\n target=\"new\"><img src=\"images/" . $button . ".gif\"\n width=\"149\" height=\"43\" border=\"0\"\n alt=\"" . format_action($button) . "\" /></a></div>\n"; } }
$buttons[2] = 'create-mail'; $buttons[3] = 'view-mail'; $buttons[4] = 'log-out'; $buttons[5] = 'show-all-lists'; $buttons[6] = 'show-my-lists'; $buttons[7] = 'show-other-lists'; } else { // if not logged in at all $buttons[0] = 'new-account'; $buttons[1] = 'show-all-lists'; $buttons[4] = 'log-in'; } } if ($action) { // display header with application name and description of page or action do_html_header('Pyramid-MLM - ' . format_action($action)); } else { // display header with just application name do_html_header('Pyramid-MLM'); } display_toolbar($buttons); //display any text generated by functions called before header echo $status; /********************************************************************** * Section 3: perform action *********************************************************************/ // only these actions can be done if not logged in switch ($action) { case 'new-account': // get rid of session variables session_destroy();
function display_button($button, $extra_parameters = '') { //display one of our standard buttons as a href $url = "index.php?action={$button}"; if ($extra_parameters) { $url .= $extra_parameters; } echo "<a href=\"{$url}\"><img src=\"images/" . $button . ".gif\"\n border=\"0\" width=\"149\" height=\"43\"\n alt=\"" . format_action($button) . "\" /></a>"; }
function display_preview_button($list, $mail, $button) { if ($button == 'view-html' || $button == 'preview-html') { echo "<center><a href = 'archive/{$list}/{$mail}/index.html' \r\n target = '_new'><img src ='images/{$button}.gif' \r\n width = 149 height = 43 border=0 \r\n alt = '" . format_action($button) . "'></a></center>\n"; } else { echo "<center><a href = 'archive/{$list}/{$mail}/text.txt' \r\n target = '_new'><img src ='images/{$button}.gif' \r\n width = 149 height = 43 border=0 \r\n alt = 'format_action({$button})'></a></center>\n"; } }
function display_button($button, $extra_parameters = '') { //display one of our standard buttons as a href $url = "index.php?action={$button}"; if ($extra_parameters) { $url .= $extra_parameters; } echo "<a href = '{$url}'>"; echo "<img src = 'images/{$button}.gif' border = 0 "; echo 'width = 149 height = 43 '; echo 'alt = "' . format_action($button) . '"></a>'; }
do_html_header($_SESSION['auth_user'], "Warm Mail - " . format_action($action), $_SESSION['selected_account']); } else { // display header with just application name do_html_header($_SESSION['auth_user'], "Warm Mail", $_SESSION['selected_account']); } display_toolbar($buttons); //***************************************************************************** // Stage 3: body // Depending on action, show appropriate main body content //***************************************************************************** //display any text generated by functions called before header echo $status; if (!check_auth_user()) { echo "<p>You need to log in"; if ($action && $action != 'log-out') { echo " to go to " . format_action($action); } echo ".</p>"; display_login_form($action); } else { switch ($action) { // if we have chosen to setup a new account, or have just added or // deleted an account, show account setup page case 'store-settings': case 'account-setup': case 'delete-account': display_account_setup($_SESSION['auth_user']); break; case 'send-message': if (send_message($to, $cc, $subject, $message)) { echo "<p style=\"padding-bottom: 100px\">Message sent.</p>";
$buttons[1] = 'create-mail'; $buttons[2] = 'view-mail'; $buttons[3] = 'show-all-lists'; //$buttons[5] = 'show-my-lists'; //$buttons[6] = 'show-other-lists'; $buttons[4] = 'log-out'; } else { // if not logged in at all //$buttons[0] = 'new-account'; //$buttons[1] = 'show-all-lists'; //$buttons[4] = 'log-in'; } } if ($action) { // display header with application name and description of page or action do_html_header('Trimart Email Blasts - ' . format_action($action)); } else { // display header with just application name do_html_header('Trimart Email Blasts'); } display_toolbar($buttons); //display any text generated by functions called before header echo $status; /********************************************************************** * Section 3: perform action *********************************************************************/ // only these actions can be done if not logged in switch ($action) { case 'new-account': // get rid of session variables session_destroy();
function display_button($button, $extra_parameters = '') { //display one of our standard buttons as a href $url = base_url("index.php/webemail?action={$button}"); if ($extra_parameters) { $url .= $extra_parameters; } echo "<a href = '{$url}'>"; echo "<img src = '" . base_url('images/webemail') . '/' . $button . ".gif' border = 0 "; echo 'width = 149 height = 43 '; echo 'alt = "' . format_action($button) . '" /></a>'; }
function display_preview_button($list, $mail, $button) { if ($button == 'view-html' || $button == 'preview-html') { echo "<center><a href = '" . APPPATH . "archive\\{$list}\\{$mail}\\index.html' \n target = '_new'><img src ='" . base_url() . "images\\{$button}.gif' \n width = 149 height = 43 border=0 \n alt = '" . format_action($button) . "' /></a></center>\n"; } else { echo "<center><a href = '" . APPPATH . "archive\\{$list}\\{$mail}\\text.txt' \n target = '_new'><img src ='" . base_url() . "images\\{$button}.gif' \n width = 149 height = 43 border=0 \n alt = 'format_action({$button})' /></a></center>\n"; } }
if (check_auth_user()) { $buttons[4] = 'log-out'; } //2 if (@$action) { @do_html_header($_SESSION['auth_user'], "Warm mail - " . format_action($action), $_SESSION['selected_account']); } else { @do_html_header($_SESSION['auth_user'], "Warm mail", $_SESSION['selected_account']); } display_toolbar($buttons); //3 echo $status; if (!check_auth_user()) { echo "You must log in"; if (@$action && $action != 'log-out') { echo " and then go to " . format_action($action); } echo ".</p>"; display_login_form(@$action); } else { switch ($action) { case 'store-settings': case 'account-setup': case 'delete-account': display_account_setup($_SESSION['auth_user']); break; case 'send-message': if (send_message($to, $cc, $subject, $message)) { echo "<p style=\"padding-bottom: 100px\">Message sent.</p>"; } else { echo "<p style=\"padding-bottom: 100px\">\n Cannot send message.</p>";