function confirm() { global $db, $_GET, $owpFilename; $owpDBTable = owpDBGetTables(); $sql = "SELECT count(*) as total \n FROM " . $owpDBTable['administrators'] . " \n WHERE admin_newsletter = '1'"; $mail = $db->Execute($sql); $confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><b>' . sprintf(TEXT_COUNT_USER, $mail->fields['total']) . '</b></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . owpTransLine('1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><b>' . $this->title . '</b></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . owpTransLine('1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . nl2br($this->content) . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . owpTransLine('1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td align="right"><a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . owpImageButton('button_send.gif', IMAGE_SEND) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . ' </tr>' . "\n" . '</table>'; return $confirm_string; }
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page') { global $_SERVER; if ($parameters != '') { $parameters .= '&'; } // calculate number of pages needing links $num_pages = intval($query_numrows / $max_rows_per_page); // $num_pages now contains int of pages needed unless there is a remainder from division if ($query_numrows % $max_rows_per_page) { $num_pages++; } // has remainder so add one page $pages_array = array(); for ($i = 1; $i <= $num_pages; $i++) { $pages_array[] = array('id' => $i, 'text' => $i); } if ($num_pages > 1) { $display_links = owpDrawForm('pages', basename($_SERVER['PHP_SELF']), '', 'get'); if ($current_page_number > 1) { $display_links .= '<a href="' . owpLink(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> '; } else { $display_links .= PREVNEXT_BUTTON_PREV . ' '; } $display_links .= sprintf(TEXT_RESULT_PAGE, owpPullDownMenu($page_name, $pages_array, '', 'onChange="this.form.submit();"'), $num_pages); if ($current_page_number < $num_pages && $num_pages != 1) { $display_links .= ' <a href="' . owpLink(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>'; } else { $display_links .= ' ' . PREVNEXT_BUTTON_NEXT; } if ($parameters != '') { if (substr($parameters, -1) == '&') { $parameters = substr($parameters, 0, -1); } $pairs = explode('&', $parameters); while (list(, $pair) = each($pairs)) { list($key, $value) = explode('=', $pair); $display_links .= owpDrawHiddenField(rawurldecode($key), rawurldecode($value)); } } if (SID) { $display_links .= owpDrawHiddenField(owpSessionName(), owpSessionID()); } $display_links .= '</form>'; } else { $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages); } return $display_links; }
function owpDrawForm($name, $action, $parameters = '', $method = 'post', $params = '') { $form = '<form name="' . $name . '" action="'; if ($parameters) { $form .= owpLink($action, $parameters); } else { $form .= owpLink($action); } $form .= '" method="' . $method . '"'; if ($params) { $form .= ' ' . $params; } $form .= '>'; return $form; }
echo owpDrawHiddenField($key, htmlspecialchars(stripslashes($value))); } } ?> <table border="0" width="100%" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><?php echo owpImageSubmit('button_back.gif', IMAGE_BACK, 'name="back"'); ?> </td> <td><?php echo owpTransLine('20', '1'); ?> </td> <td align="right"><?php echo '<a href="' . owpLink($owpFilename['mail']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . owpImageSubmit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?> </td> </tr> </table></td> </tr> </table></td> </form></tr> <?php } else { $sql = "SELECT admin_firstname, admin_lastname, admin_email_address \n FROM " . $owpDBTable['administrators'] . " \n WHERE admin_id = '" . owpDBInput($_SESSION['user_id']) . "'"; $db->cacheSecs = 900; $admin_send_query = $db->CacheExecute($sql); $admin_send = $admin_send_query->fields; ?> <tr><?php
$account = $account_query->fields; require OWP_ACCOUNT_DIR . 'account_details.php'; ?> </td> </tr> <tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="right" class="main"><?php echo '<a href="' . owpLink($owpFilename['account_edit'], '', 'SSL') . '">' . owpImageButton('button_edit_account.gif', IMAGE_BUTTON_EDIT_ACCOUNT) . '</a>'; ?> </td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require OWP_INCLUDES_DIR . 'footer.php'; ?>
$account = $account_query->fields; $email_address = $account['admin_email_address']; require OWP_ACCOUNT_DIR . 'account_details.php'; ?> </td> </tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo '<a href="' . owpLink(FILENAME_ACCOUNT, '', 'SSL') . '">' . owpImageButton('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?> </td> <td class="main" align="right"><?php echo owpImageSubmit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?> </td> </tr> </table></td> </tr> </table></form></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //-->
<?php /* ---------------------------------------------------------------------- $Id: owp_userbox.php,v 1.1 2003/05/05 16:53:17 r23 Exp $ OSIS WebPrinter for your Homepage http://www.osisnet.de Ralf Zschemisch http://www.r23.de/ Copyright (c) 2003 r23 ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- userbox //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_ACCOUNT, 'link' => owpLink($owpFilename['account'])); $contents[] = array('text' => '<a href="' . owpLink($owpFilename['account']) . '" class="menuBoxContentLink">' . BOX_ACCOUNT_INFO . '</a><br>' . '<a href="' . owpLink($owpFilename['logoff']) . '" class="menuBoxContentLink">' . BOX_ACCOUNT_LOGOFF . '</a>'); $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- userbox_eof //-->
blake@intechra.net Updated Version 1.1.0 (03/01/2002) by Christopher Conkie chris@conkiec.freeserve.co.uk This is a new admin module for osCommerce pr2.2 that allows for login/logoff from the admin section of TEP. This way only valid administrators can access your site and in varying degrees. This module is built around osCommerce CVS pr2.2 snapshot 02/01/2002 ---------------------------------------------------------------------- The Exchange Project - Community Made Shopping! http://www.theexchangeproject.org Copyright (c) 2000,2001 The Exchange Project Login.php: Blake Schwendiman (blake@intechra.net) http://www.intechra.net/ ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ require 'includes/system.php'; session_destroy(); owpRedirect(owpLink($owpFilename['index'], '', 'NONSSL')); require OWP_INCLUDES_DIR . 'nice_exit.php';
This way only valid administrators can access your site and in varying degrees. This module is built around osCommerce CVS pr2.2 snapshot 02/01/2002 ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- administrators //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_ADMINISTRATORS, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=administrators')); # 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=administrators')); if ($selected_box == 'administrators') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['administrators']) . '" class="menuBoxContentLink">' . BOX_ADMINISTRATORS_SETUP . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- administrators_eof //-->
<td><input type="password" name="password"></td> </tr> <tr> <td colspan="2"><input type="submit" name="Submit" value="Login"></td> </tr> </table></form></td> </tr> <tr> <td colspan="3"><?php echo owpTransLine('1', '5'); ?> </td> </tr> <tr> <td colspan="2"><?php echo '<a href="' . owpLink($owpFilename['password_forgotten'], '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?> </td> </tr> </table></td> <tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //-->
File: server_info.php,v 1.3 2002/03/16 01:36:56 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ require 'includes/system.php'; if (!isset($_SESSION['user_id'])) { $_SESSION['navigation']->set_snapshot(); owpRedirect(owpLink($owpFilename['login'], '', 'SSL')); } require OWP_LANGUAGES_DIR . $language . '/' . $owpFilename['server_info']; $breadcrumb->add(NAVBAR_TITLE, owpLink($owpFilename['server_info'], '', 'NONSSL')); $system = owpGetSystemInformation(); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?> > <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<?php echo CHARSET; ?> "> <title><?php echo OWP_NAME . ' :: ' . TITLE; ?>
echo owpImage(OWP_IMAGES_DIR . 'table_background_man_on_board.gif', HEADING_TITLE); ?> </td> <td valign="top" class="main"><div align="center" class="owp-title"><?php echo HEADING_TITLE; ?> </div><br><?php echo TEXT_ACCOUNT_CREATED; ?> </td> </tr> </table></td> </tr> <tr> <td align="right"><br><?php echo '<a href="' . owpLink($owpFilename['index']) . '">' . owpImageButton('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?> </td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require OWP_INCLUDES_DIR . 'footer.php'; ?> <!-- footer_eof //--> <br>
$contents = array(); switch ($_GET['action']) { case 'delete': $heading[] = array('text' => '<b>' . $nInfo->title . '</b>'); $contents = array('form' => owpDrawForm('newsletters', $owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($nInfo)) { $heading[] = array('text' => '<b>' . $nInfo->title . '</b>'); if ($nInfo->locked > 0) { $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . owpImageButton('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . owpImageButton('button_send.gif', IMAGE_SEND) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=unlock') . '">' . owpImageButton('button_unlock.gif', IMAGE_UNLOCK) . '</a>'); } else { $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . owpImageButton('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=lock') . '">' . owpImageButton('button_lock.gif', IMAGE_LOCK) . '</a>'); } $contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . owpDateShort($nInfo->date_added)); if ($nInfo->status == '1') { $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . owpDateShort($nInfo->date_sent)); } } break; } if (owpNotNull($heading) && owpNotNull($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?>
<td width="<?php echo BOX_WIDTH; ?> " valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?> " cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require OWP_INCLUDES_DIR . 'column_left.php'; ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><form name="account_edit" method="post" <?php echo 'action="' . owpLink($owpFilename['create_account_process'], '', 'SSL') . '"'; ?> onSubmit="return check_form();"><input type="hidden" name="action" value="process"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="owp-title"><?php echo HEADING_TITLE; ?> </td> </tr> <tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr>
Copyright (c) 2003 r23 ---------------------------------------------------------------------- Based on: File: taxes.php,v 1.16 2002/03/16 00:20:11 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- countries //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_LOCALIZATION, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=countries')); if ($selected_box == 'countries') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['countries'], '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_COUNTRIES . '</a><br>' . '<a href="' . owpLink($owpFilename['zones'], '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_TAXES_ZONES . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- countries_eof //-->
$contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS); $contents[] = array('text' => '<br>' . owpFileField('sql_file')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE); $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_restore.gif', IMAGE_restore) . ' <a href="' . owpLink($owpFilename['backup']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . $buInfo->date . '</b>'); $contents = array('form' => owpDrawForm('delete', $owpFilename['backup'], 'file=' . $buInfo->file . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $buInfo->file . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($buInfo)) { $heading[] = array('text' => '<b>' . $buInfo->date . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=restore') . '">' . owpImageButton('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_INFO_DATE . ' ' . $buInfo->date); $contents[] = array('text' => TEXT_INFO_SIZE . ' ' . $buInfo->size); $contents[] = array('text' => '<br>' . TEXT_INFO_COMPRESSION . ' ' . $buInfo->compression); } break; } if (owpNotNull($heading) && owpNotNull($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td>
<br> </body> </html> <?php } else { include_once OWP_FUNCTIONS_DIR . $owpFilename['password_crypt']; $owp_pwd = owpCryptPassword($password); $login = DEFAULT_ADMIN_LOGIN; $db->Execute("UPDATE " . $owpDBTable['administrators'] . " \n\t SET admin_gender = " . $db->qstr($gender) . ",\n admin_firstname = " . $db->qstr($firstname) . ",\n admin_lastname = " . $db->qstr($lastname) . ",\n admin_email_address = " . $db->qstr($email_address) . ",\n admin_telephone = " . $db->qstr($telephone) . ",\n admin_fax = " . $db->qstr($fax) . ",\n admin_password = "******",\n admin_login = "******"\n WHERE admin_id = '" . $_SESSION['user_id'] . "'"); $today = date("Y-m-d H:i:s"); $db->Execute("UPDATE " . $owpDBTable['administrators_info'] . " \n\t SET admin_info_date_account_last_modified = " . $db->DBTimeStamp($today) . "\n WHERE admin_info_id = '" . $_SESSION['user_id'] . "'"); // build the message content $name = $firstname . " " . $lastname; if ($_POST['gender'] == 'm') { $email_text = EMAIL_GREET_MR . $_POST['lastname'] . ',' . "\n\n"; } else { $email_text = EMAIL_GREET_MS . $_POST['lastname'] . ',' . "\n\n"; } $email_text .= EMAIL_UPDATE . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_FOOT; owpMail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), OWP_OWNER, OWP_OWNER_EMAIL_ADDRESS); $email_owner = OWNER_EMAIL_SUBJECT . "\n" . EMAIL_SEPARATOR . "\n" . OWNER_EMAIL_NUMBER . ' ' . $admin_id . "\n" . OWNER_EMAIL_URL . "\n" . OWP_HTTP_SERVER . '/' . $owpFilename['administrators'] . '?selected_box=administrators&page=1&aID=' . $admin_id . '&action=edit' . "\n" . OWNER_EMAIL_DATE . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n" . EMAIL_SEPARATOR . "\n"; $email_owner .= OWNER_EMAIL_FIRST_NAME . ' ' . $firstname . "\n" . OWNER_EMAIL_LAST_NAME . ' ' . $lastname . "\n\n" . OWNER_EMAIL_CONTACT . "\n" . OWNER_EMAIL_TELEPHONE_NUMBER . ' ' . $telephone . "\n" . OWNER_EMAIL_FAX_NUMBER . ' ' . $fax . "\n" . OWNER_EMAIL_ADDRESS . ' ' . $email_address . "\n" . EMAIL_SEPARATOR . "\n\n" . OWNER_EMAIL_OPTIONS . "\n"; if ($newsletter == '1') { $email_owner .= OWNER_EMAIL_NEWSLETTER . ENTRY_NEWSLETTER_YES . "\n"; } else { $email_owner .= OWNER_EMAIL_NEWSLETTER . ENTRY_NEWSLETTER_NO . "\n"; } owpMail(OWP_OWNER, OWP_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, nl2br($email_owner), $name, $email_address); owpRedirect(owpLink($owpFilename['logoff'], '', 'SSL')); } require OWP_INCLUDES_DIR . 'nice_exit.php';
Copyright (c) 2003 r23 ---------------------------------------------------------------------- Based on: File: localization.php,v 1.15 2002/03/16 00:20:11 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- localization //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_LANGUAGES, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=localization')); if ($selected_box == 'localization') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['define_language']) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' . '<a href="' . owpLink($owpFilename['languages'], '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_LOCALIZATION_LANGUAGES . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- localization_eof //-->
require_once OWP_FUNCTIONS_DIR . 'general.php'; require_once OWP_CLASSES_DIR . 'owp_object_info.php'; require_once OWP_CLASSES_DIR . 'owp_split_page_results.php'; require_once OWP_CLASSES_DIR . 'owp_table_block.php'; require_once OWP_CLASSES_DIR . 'owp_text_tool.php'; require_once OWP_CLASSES_DIR . 'owp_box.php'; require_once OWP_CLASSES_DIR . 'owp_message_stack.php'; $messageStack = new messageStack(); if (EMAIL_TRANSPORT == 'sendmail') { include OWP_MAILER_DIR . 'class.phpmailer.php'; } if (EMAIL_TRANSPORT == 'smtp') { include OWP_MAILER_DIR . 'class.smtp.php'; } // user input if (isset($_POST)) { foreach ($_POST as $k => $v) { ${$k} = owpPrepareInput($v); } } // include the who's online functions require_once OWP_FUNCTIONS_DIR . 'owp_whos_online.php'; opwUpdateWhosOnline(); require_once OWP_CLASSES_DIR . 'owp_breadcrumb.php'; $breadcrumb = new breadcrumb(); $breadcrumb->add(HEADER_TITLE_TOP, owpLink($owpFilename['index'])); // set which precautions should be checked define('WARN_INSTALL_EXISTENCE', 'true'); define('WARN_CONFIG_WRITEABLE', 'true'); define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true'); define('WARN_SESSION_AUTO_START', 'true');
File: whos_online.php,v 1.28 2002/08/13 20:37:48 dgw_ ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ require 'includes/system.php'; if (!isset($_SESSION['user_id'])) { $_SESSION['navigation']->set_snapshot(); owpRedirect(owpLink($owpFilename['login'], '', 'SSL')); } require OWP_LANGUAGES_DIR . $language . '/' . $owpFilename['whos_online']; $breadcrumb->add(NAVBAR_TITLE, owpLink($owpFilename['whos_online'], '', 'NONSSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?> > <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<?php echo CHARSET; ?> "> <title><?php echo OWP_NAME . ' :: ' . TITLE; ?> </title>
?> </td> <td><?php echo owpInputField('email_address'); ?> </td> </tr> <tr> <td colspan="2"><?php echo owpTransLine('1', '5'); ?> </td> </tr> <tr> <td valign="top"><a href="<?php echo owpLink($owpFilename['login'], '', 'SSL') . '">' . owpImageButton('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?> </td> <td align="right" valign="top"><?php echo owpImageSubmit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?> </td> </tr> </table></form></td> </tr> <tr> <td colspan="3"><?php echo owpTransLine('1', '5'); ?> </td> </tr>
Copyright (c) 2003 r23 ---------------------------------------------------------------------- Based on: File: tools.php,v 1.20 2002/03/16 00:20:11 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- tools //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_TOOLS, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=tools')); if ($selected_box == 'tools') { $contents[] = array('text' => '<a href="' . owpLink($owpFilename['backup']) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' . '<a href="' . owpLink($owpFilename['file_manager']) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' . '<a href="' . owpLink($owpFilename['mail']) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' . '<a href="' . owpLink($owpFilename['newsletters']) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' . '<a href="' . owpLink($owpFilename['server_info']) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' . '<a href="' . owpLink($owpFilename['whos_online']) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>'); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- tools_eof //-->
$contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . owpInputField('sort_order', $lInfo->sort_order)); if (DEFAULT_LANGUAGE != $lInfo->iso_639_2) { $contents[] = array('text' => '<br>' . owpCheckboxField('default') . ' ' . TEXT_SET_DEFAULT); } $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</b>'); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $lInfo->name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_language ? '<a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($lInfo)) { $heading[] = array('text' => '<b>' . $lInfo->name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . owpLink($owpFilename['define_language'], 'lngdir=' . $lInfo->iso_639_2) . '">' . owpImageButton('button_define.gif', IMAGE_DEFINE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . ' ' . $lInfo->name); $contents[] = array('text' => TEXT_INFO_LANGUAGE_ISO_639_2 . ' ' . $lInfo->iso_639_2); $contents[] = array('text' => '<br>' . owpImage(OWP_FLAGS . $lInfo->iso_639_2 . '.gif', $lInfo->name)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . OWP_LANGUAGES_DIR . '<b>' . $lInfo->iso_639_2 . '</b>'); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . ' ' . $lInfo->sort_order); } break; } if (owpNotNull($heading) && owpNotNull($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?>
<?php /* ---------------------------------------------------------------------- $Id: owp_loginbox.php,v 1.2 2003/05/05 16:47:38 r23 Exp $ OSIS WebPrinter for your Homepage http://www.osisnet.de Ralf Zschemisch http://www.r23.de/ Copyright (c) 2003 r23 ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- loginbox //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_LOGIN, 'link' => owpLink($owpFilename['login'])); $contents[] = array('text' => '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . owpDrawForm('login', $owpFilename['login'], 'action=process') . "\n" . ' <tr>' . "\n" . ' <td class="main">' . TEXT_INFO_USER_EMAIL . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . owpInputField('email_address') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main">' . TEXT_INFO_PASSWORD . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td><input type="password" name="password"></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td><input type="submit" name="Submit" value="Login"></td>' . "\n" . ' </tr>' . "\n" . '</form></table><br />' . "\n" . '<a href="' . owpLink($owpFilename['password_forgotten']) . '" class="menuBoxContentLink">' . BOX_PASSWORD_FORGOTTEN . '</a><br>' . '<a href="' . owpLink($owpFilename['create_account']) . '" class="menuBoxContentLink">' . BOX_CREATE_ACCOUNT . '</a>'); $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- loginbox_eof //-->
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . '<br>' . owpInputField('countries_iso_code_2', $cInfo->countries_iso_code_2)); $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . '<br>' . owpInputField('countries_iso_code_3', $cInfo->countries_iso_code_3)); $contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . '<br>' . owpInputField('address_format_id', $cInfo->address_format_id)); $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_COUNTRY . '</b>'); $contents = array('form' => owpDrawForm('countries', $owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $cInfo->countries_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_UPDATE) . ' <a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($cInfo)) { $heading[] = array('text' => '<b>' . $cInfo->countries_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_NAME . '<br>' . $cInfo->countries_name); $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . $cInfo->countries_iso_code_2); $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . ' ' . $cInfo->countries_iso_code_3); $contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . ' ' . $cInfo->address_format_id); } break; } if (owpNotNull($heading) && owpNotNull($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr>
Copyright (c) 2003 r23 ---------------------------------------------------------------------- Based on: File: index.php,v 1.15 2002/10/29 22:31:25 hpdl ---------------------------------------------------------------------- osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ require 'includes/system.php'; require OWP_LANGUAGES_DIR . $language . '/' . $owpFilename['index']; $cat = array(array('title' => BOX_HEADING_CONFIGURATION, 'image' => 'configuration.gif', 'href' => owpLink(FILENAME_CONFIGURATION, 'SELECTed_box=configuration&gID=1'), 'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => owpLink(FILENAME_CONFIGURATION, 'SELECTed_box=configuration&gID=1')), array('title' => BOX_CONFIGURATION_LOGGING, 'link' => owpLink(FILENAME_CONFIGURATION, 'SELECTed_box=configuration&gID=10')), array('title' => BOX_CONFIGURATION_CACHE, 'link' => owpLink(FILENAME_CONFIGURATION, 'SELECTed_box=configuration&gID=11')))), array('title' => BOX_HEADING_LOCALIZATION, 'image' => 'localization.gif', 'href' => owpLink(FILENAME_CURRENCIES, 'SELECTed_box=localization'), 'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => owpLink(FILENAME_CURRENCIES, 'SELECTed_box=localization')), array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => owpLink($owpFilename['languages'], 'SELECTed_box=localization')))), array('title' => BOX_HEADING_REPORTS, 'image' => 'reports.gif', 'href' => owpLink(FILENAME_STATS_PRODUCTS_PURCHASED, 'SELECTed_box=reports'), 'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => owpLink(FILENAME_STATS_PRODUCTS_PURCHASED, 'SELECTed_box=reports')), array('title' => REPORTS_ORDERS, 'link' => owpLink(FILENAME_STATS_CUSTOMERS, 'SELECTed_box=reports')))), array('title' => BOX_HEADING_TOOLS, 'image' => 'tools.gif', 'href' => owpLink($owpFilename['backup'], 'SELECTed_box=tools'), 'children' => array(array('title' => TOOLS_BACKUP, 'link' => owpLink($owpFilename['backup'], 'SELECTed_box=tools')), array('title' => TOOLS_BANNERS, 'link' => owpLink(FILENAME_BANNER_MANAGER, 'SELECTed_box=tools')), array('title' => TOOLS_FILES, 'link' => owpLink($owpFilename['file_manager'], 'SELECTed_box=tools'))))); $languages = owpGetLanguages(); $languages_array = array(); for ($i = 0; $i < sizeof($languages); $i++) { $languages_array[] = array('id' => $languages[$i]['code'], 'text' => $languages[$i]['name']); } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?> > <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<?php echo CHARSET; ?>
case 'edit': $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>'); if ($cInfo->set_function) { eval('$value_field = ' . $cInfo->set_function . "'" . $cInfo->configuration_value . "');"); } else { $value_field = owpInputField('configuration_value', $cInfo->configuration_value); } $contents = array('form' => owpDrawForm('configuration', $owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => '<br><b>' . $cInfo->configuration_title . '</b><br>' . $cInfo->configuration_description . '<br>' . $value_field); $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . owpLink($owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($cInfo)) { $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a>'); $contents[] = array('text' => '<br>' . $cInfo->configuration_description); $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . owpDateShort($cInfo->date_added)); if (owpNotNull($cInfo->last_modified)) { $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . owpDateShort($cInfo->last_modified)); } } break; } if (owpNotNull($heading) && owpNotNull($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?>
Copyright (c) 2002 osCommerce ---------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------- */ ?> <!-- configuration //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_CONFIGURATION, 'link' => owpLink(basename($_SERVER['PHP_SELF']), owpGetAllGetParameters(array('selected_box')) . 'selected_box=configuration')); if ($selected_box == 'configuration') { $cfg_groups = ''; $sql = "SELECT configuration_group_id as cgID, configuration_group_title as cgTitle \n FROM " . $owpDBTable['configuration_group'] . " \n WHERE visible = '1' \n ORDER BY sort_order"; $db->cacheSecs = 3600 * 24; # cache 24 hours $configuration_groups_query = $db->CacheExecute($sql); while ($configuration_groups = $configuration_groups_query->fields) { $cfg_groups .= '<a href="' . owpLink($owpFilename['configuration'], 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . $configuration_groups['cgTitle'] . '</a><br>'; $configuration_groups_query->MoveNext(); } $contents[] = array('text' => $cfg_groups); } $box = new box(); echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- configuration_eof //-->
} $dir->close(); } ?> </tr> </table></td> </tr> <tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr> <td align="right"><?php echo '<a href="' . owpLink($owpFilename['file_manager'], 'current_path=' . OWP_LANG_PATH . $_GET['lngdir']) . '">' . owpImageButton('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>'; ?> </td> </tr> <?php } ?> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //-->
break; case 'upload': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>'); $contents = array('form' => owpDrawForm('file', $owpFilename['file_manager'], 'action=processuploads', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_UPLOAD_INTRO); for ($i = 1; $i < 6; $i++) { $file_upload .= owpFileField('file_' . $i) . '<br>'; } $contents[] = array('text' => '<br>' . $file_upload); $contents[] = array('align' => 'center', 'text' => '<br>' . ($directory_writeable ? owpImageSubmit('button_upload.gif', IMAGE_UPLOAD) : '') . ' <a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($fInfo)) { $heading[] = array('text' => '<b>' . $fInfo->name . '</b>'); if (!$fInfo->is_dir) { $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($fInfo->name) . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a>'); } $contents[] = array('text' => '<br>' . TEXT_FILE_NAME . ' <b>' . $fInfo->name . '</b>'); if (!$fInfo->is_dir) { $contents[] = array('text' => '<br>' . TEXT_FILE_SIZE . ' <b>' . $fInfo->size . '</b>'); } $contents[] = array('text' => '<br>' . TEXT_LAST_MODIFIED . ' ' . $fInfo->last_modified); } } if (owpNotNull($heading) && owpNotNull($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?>