function init_sessions()
 {
     extract(tep_load('defs', 'database', 'sessions', 'http_headers'));
     if ($cDefs->action != 'direct_management') {
         return false;
     }
     if (!isset($_POST['dm_select']) || $_POST['dm_select'] != 'confirm') {
         return false;
     }
     $db->query("delete from " . TABLE_SESSIONS . " where sesskey = '" . $db->filter($cSessions->id) . "'");
     $sql_data_array = array('sesskey' => $cSessions->id, 'ip_long' => $http->ip_string, 'value' => base64_encode(serialize(array())), 'expiry' => $cSessions->get_life());
     $db->perform(TABLE_SESSIONS, $sql_data_array);
     tep_redirect(tep_catalog_href_link('', $this->options['admin_key'] . '=' . $cSessions->id, 'SSL'));
     return true;
 }
Exemplo n.º 2
0
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php 
    echo JQUERY_DATEPICKER_I18N_CODE;
    ?>
']);
</script>
<?php 
}
?>

<script type="text/javascript" src="<?php 
echo tep_catalog_href_link('ext/flot/jquery.flot.min.js', '', 'SSL');
?>
"></script>
<script type="text/javascript" src="<?php 
echo tep_catalog_href_link('ext/flot/jquery.flot.time.min.js', '', 'SSL');
?>
"></script>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script type="text/javascript" src="includes/general.js"></script>
<?php 
// TinyMCE  <script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
?>
<script  src="./ext/tinymce/tinymce.min.js"></script>

  <?php 
// TinyMCE
/* (strpos($_SERVER['PHP_SELF'],'categories.php')) || (strpos($_SERVER['PHP_SELF'],'banner_manager.php')) ) { ?>
    <script>
    tinymce.init({
      selector:'.htmleditor',
Exemplo n.º 3
0
 * Copyright (c) 2005 FlinkUX Michael Hammelmann <*****@*****.**>
 
 * @package xosC
 * @subpackage admin
**/
if ($messageStack->size > 0) {
    echo $messageStack->output();
}
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php 
echo tep_image(DIR_WS_IMAGES . 'xosc-logo-wide.gif', 'xosC', '150', '42');
?>
</td>
    <td align="right"><?php 
echo '<a href="http://www.flinkux.de" target="_blank">' . tep_image(DIR_WS_IMAGES . 'header_support.gif', HEADER_TITLE_SUPPORT_SITE, '50', '50') . '</a>&nbsp;&nbsp;<a href="' . tep_catalog_href_link() . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_ONLINE_CATALOG, '53', '50') . '</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_administration.gif', HEADER_TITLE_ADMINISTRATION, '50', '50') . '</a>';
?>
&nbsp;&nbsp;</td>
  </tr>
  <tr class="headerBar">
    <td class="headerBarContent">&nbsp;&nbsp;<?php 
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>';
?>
</td>
    <td class="headerBarContent" align="right"><?php 
echo '<a href="http://www.flinkux.de" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a> &nbsp;|&nbsp; <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> &nbsp;|&nbsp; <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>';
?>
&nbsp;&nbsp;</td>
  </tr>
</table>
Exemplo n.º 4
0
 function install()
 {
     if (!isset($_GET['active']) || $_GET['active'] != 'true') {
         tep_redirect(tep_href_link('ext/modules/payment/moneybookers/activation.php', 'selected_box=modules&set=payment'));
     }
     // Preparing order status
     $check_query = tep_db_query("select orders_status_id from " . TABLE_ORDERS_STATUS . " where orders_status_name = 'Preparing [Moneybookers]' limit 1");
     if (tep_db_num_rows($check_query) < 1) {
         $status_query = tep_db_query("select max(orders_status_id) as status_id from " . TABLE_ORDERS_STATUS);
         $status = tep_db_fetch_array($status_query);
         $preparing_status_id = $status['status_id'] + 1;
         $languages = tep_get_languages();
         foreach ($languages as $lang) {
             tep_db_query("insert into " . TABLE_ORDERS_STATUS . " (orders_status_id, language_id, orders_status_name) values ('" . $preparing_status_id . "', '" . $lang['id'] . "', 'Preparing [Moneybookers]')");
         }
         $flags_query = tep_db_query("describe " . TABLE_ORDERS_STATUS . " public_flag");
         if (tep_db_num_rows($flags_query) == 1) {
             tep_db_query("update " . TABLE_ORDERS_STATUS . " set public_flag = 0 and downloads_flag = 0 where orders_status_id = '" . $preparing_status_id . "'");
         }
     } else {
         $check = tep_db_fetch_array($check_query);
         $preparing_status_id = $check['orders_status_id'];
     }
     // Transactions order status
     $check_query = tep_db_query("select orders_status_id from " . TABLE_ORDERS_STATUS . " where orders_status_name = 'Transaction [Moneybookers]' limit 1");
     if (tep_db_num_rows($check_query) < 1) {
         $status_query = tep_db_query("select max(orders_status_id) as status_id from " . TABLE_ORDERS_STATUS);
         $status = tep_db_fetch_array($status_query);
         $transactions_status_id = $status['status_id'] + 1;
         $languages = tep_get_languages();
         foreach ($languages as $lang) {
             tep_db_query("insert into " . TABLE_ORDERS_STATUS . " (orders_status_id, language_id, orders_status_name) values ('" . $transactions_status_id . "', '" . $lang['id'] . "', 'Transaction [Moneybookers]')");
         }
         $flags_query = tep_db_query("describe " . TABLE_ORDERS_STATUS . " public_flag");
         if (tep_db_num_rows($flags_query) == 1) {
             tep_db_query("update " . TABLE_ORDERS_STATUS . " set public_flag = 0 and downloads_flag = 0 where orders_status_id = '" . $transactions_status_id . "'");
         }
     } else {
         $check = tep_db_fetch_array($check_query);
         $transactions_status_id = $check['orders_status_id'];
     }
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Moneybookers eWallet', 'MODULE_PAYMENT_MONEYBOOKERS_STATUS', 'False', 'Do you want to accept Moneybookers eWallet payments?', '6', '3', 'tep_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('E-Mail Address', 'MODULE_PAYMENT_MONEYBOOKERS_PAY_TO', '" . (isset($_GET['email']) ? $_GET['email'] : '') . "', 'The Moneybookers seller e-mail address to accept payments for', '6', '4', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_MONEYBOOKERS_MERCHANT_ID', '" . (isset($_GET['custid']) ? $_GET['custid'] : '') . "', 'The Moneybookers merchant ID assigned to the seller e-mail address', '6', '4', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Secret Word', 'MODULE_PAYMENT_MONEYBOOKERS_SECRET_WORD', '', 'The secret word to verify transactions with', '6', '4', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Store Logo Image', 'MODULE_PAYMENT_MONEYBOOKERS_STORE_IMAGE', '" . tep_catalog_href_link('images/store_logo.png', '', 'SSL') . "', 'The URL of the store logo image to display on the gateway transaction page. This must be served through HTTPS otherwise it will not be shown.', '6', '4', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('iFrame Presentation', 'MODULE_PAYMENT_MONEYBOOKERS_IFRAME', 'True', 'Show the Moneybookers payment pages through an iFrame?', '6', '3', 'tep_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Debug E-Mail Address', 'MODULE_PAYMENT_MONEYBOOKERS_DEBUG_EMAIL', '', 'All parameters of an invalid transaction will be sent to this email address.', '6', '0', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_MONEYBOOKERS_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_MONEYBOOKERS_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Preparing Order Status', 'MODULE_PAYMENT_MONEYBOOKERS_PREPARE_ORDER_STATUS_ID', '" . $preparing_status_id . "', 'Set the status of prepared orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Transactions Order Status', 'MODULE_PAYMENT_MONEYBOOKERS_TRANSACTIONS_ORDER_STATUS_ID', '" . $transactions_status_id . "', 'Set the status of callback transactions to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_MONEYBOOKERS_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('cURL Program Location', 'MODULE_PAYMENT_MONEYBOOKERS_CURL', '/usr/bin/curl', 'The location to the cURL program application.', '6', '0' , now())");
 }
Exemplo n.º 5
0
  <tr>
	<td valign="top"><div id="logo"><img src="<?php 
echo DIR_WS_CATALOG . 'includes/templates/images/logo.gif';
?>
" border="0" /></div></td>
	<td valign="top" width="100%">
	  <div id="headername"><?php 
echo STORE_FULL_NAME;
?>
</div>
	  <div id="headerdesc1"><?php 
echo ENTRY_REFFERAL_SERVICE;
?>
</div>
	  <div id="headerdesc2"><b><?php 
echo tep_catalog_href_link(FILENAME_DEFAULT);
?>
</b>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;E-mail: <b><?php 
echo STORE_OWNER_EMAIL_ADDRESS;
?>
</b></b></div>
	</td>
  </tr>
  <tr>
	<td colspan="2"><?php 
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
  </tr>	
  <tr>
	<td colspan="2"><div id="title"><?php 
Exemplo n.º 6
0
 case 'update_order':
     $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
     $status = tep_db_prepare_input($HTTP_POST_VARS['status']);
     $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
     $order_updated = false;
     $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $oID . "'");
     $check_status = tep_db_fetch_array($check_status_query);
     if ($check_status['orders_status'] != $status || tep_not_null($comments)) {
         tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int) $oID . "'");
         $customer_notified = '0';
         if (isset($HTTP_POST_VARS['notify']) && $HTTP_POST_VARS['notify'] == 'on') {
             $notify_comments = '';
             if (isset($HTTP_POST_VARS['notify_comments']) && $HTTP_POST_VARS['notify_comments'] == 'on') {
                 $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n";
             }
             $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
             tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
             $customer_notified = '1';
         }
         tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int) $oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");
         $order_updated = true;
     }
     if ($order_updated == true) {
         $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
     } else {
         $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
     }
     tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit'));
     break;
 case 'deleteconfirm':
     $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
Exemplo n.º 7
0
function status_email($oID, $payCC)
{
    global $languages_id;
    $payCC == 1 ? $status = QBI_CC_STATUS_SELECT : ($status = QBI_MO_STATUS_SELECT);
    $comments = tep_db_prepare_input('');
    $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $oID . "'");
    $check_status = tep_db_fetch_array($check_status_query);
    if ($check_status['orders_status'] != $status) {
        tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int) $oID . "'");
        $customer_notified = '0';
        if (QBI_EMAIL_SEND == 1) {
            $result = tep_db_query("SELECT orders_status_name FROM " . TABLE_ORDERS_STATUS . " WHERE orders_status_id={$status} AND language_id={$languages_id}");
            if ($myrow = tep_db_fetch_array($result)) {
                $status_name = $myrow['orders_status_name'];
            }
            $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $status_name);
            tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
            $customer_notified = '1';
        }
        tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int) $oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");
    }
    return;
}
Exemplo n.º 8
0
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td width="250" class="main"><?php 
    echo TEXT_AUTHORS_PATH;
    ?>
</td>
            <td class="main"><?php 
    echo tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . tep_catalog_href_link(FILENAME_AUTHORS, '', 'NONSSL', false) . tep_draw_input_field('authors_path', $aInfo->authors_path, 'size="' . (tep_not_null($aInfo->authors_path) ? strlen($aInfo->authors_path) - 1 : '7') . '"') . '/';
    ?>
</td>
          </tr>
		</table></td>
      </tr>
      <tr>
        <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr>
        <td class="main" align="right"><?php 
    echo tep_draw_hidden_field('date_added', tep_not_null($aInfo->date_added) ? $aInfo->date_added : date('Y-m-d'));
    if (tep_not_null($HTTP_GET_VARS['aID'])) {
Exemplo n.º 9
0
//end if ($action == 'insert_shipping') {
//13. new order email
if ($action == 'new_order_email') {
    $order = new manualOrder($_GET['oID']);
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
        //loop all the products in the order
        $products_ordered_attributes = '';
        if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
            for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
                $products_ordered_attributes .= "\n\t" . $order->products[$i]['attributes'][$j]['option'] . ' ' . $order->products[$i]['attributes'][$j]['value'];
            }
        }
        $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . $products_model . ' = ' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . $products_ordered_attributes . "\n";
    }
    //Build the email
    $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . (int) $_GET['oID'] . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . (int) $_GET['oID'], 'SSL') . "\n" . EMAIL_TEXT_DATE_MODIFIED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
    $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n";
    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
        $email_order .= strip_tags($order->totals[$i]['title']) . ' ' . strip_tags($order->totals[$i]['text']) . "\n";
    }
    if ($order->content_type != 'virtual') {
        $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . $order->delivery['name'] . "\n";
        if ($order->delivery['company']) {
            $email_order .= $order->delivery['company'] . "\n";
        }
        $email_order .= $order->delivery['street_address'] . "\n";
        if ($order->delivery['suburb']) {
            $email_order .= $order->delivery['suburb'] . "\n";
        }
        $email_order .= $order->delivery['city'] . "\n";
        if ($order->delivery['state']) {
Exemplo n.º 10
0
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $category_inputs_string .= '<br />' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']');
     }
     $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_NAME . $category_inputs_string);
     $contents[] = array('text' => '<br />' . TEXT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image'));
     $contents[] = array('text' => '<br />' . TEXT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', '', 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath)));
     break;
 case 'edit_category':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</strong>');
     $contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $category_inputs_string = '';
     $languages = tep_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $category_inputs_string .= '<br />' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', tep_get_category_name($cInfo->categories_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
     $contents[] = array('text' => '<br />' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br />' . DIR_WS_CATALOG_IMAGES . '<br /><strong>' . $cInfo->categories_image . '</strong>');
     $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image'));
     $contents[] = array('text' => '<br />' . TEXT_EDIT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id)));
     break;
 case 'delete_category':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_CATEGORY . '</strong>');
     $contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=delete_category_confirm&cPath=' . $cPath) . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
     $contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO);
     $contents[] = array('text' => '<br /><strong>' . $cInfo->categories_name . '</strong>');
     if ($cInfo->childs_count > 0) {
         $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_CHILDS, $cInfo->childs_count));
     }
Exemplo n.º 11
0
<link rel="stylesheet" type="text/css" href="includes/javascript/jquery-ui-1.8.9.custom.css">
</head>
<body style="background-image: url(images/icons/background.png)">

<div id="login_container">
  <div id="login_panel">
    <div id="login_header"><?php 
echo STORE_NAME;
?>
      <span id="login_logo"><?php 
echo '<a href="http://www.oscmax.com">' . tep_image(DIR_WS_ADMIN . DIR_WS_ICONS . 'logo.png', PROJECT_VERSION, '187', '54') . '</a>';
?>
</span>
    </div>
    <div id="login_links"><?php 
echo '&nbsp;&nbsp;<a href="http://www.oscmax.com/" target="_blank">' . HEADER_TITLE_AABOX . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://shop.oscmax.com">' . HEADER_TITLE_OSCDOX . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://wiki.oscdox.com">Wiki</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>';
?>
</div>
    <div id="login_body">
      <div id="login_input_container">
        <div class="messageAlert"><?php 
echo TEXT_MAIN;
?>
</div>
        <?php 
echo '<center><a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"><button type="button" class="login_button" style="display:inline-block;">Back</button></a></center>';
?>
        </div>
      </div>
    </div>
    <div id="login_powered_by"><?php 
Exemplo n.º 12
0
</head>
<body>
<table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">
  <tr>
    <td>
    	<table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
      	<tr class="mainback">
        	<td>
          	<table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
          		<tr class="logo-head" height="50">
            		<td height="50"><?php 
echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50');
?>
</td>
            		<td align="right" class="nav-head" nowrap><?php 
echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a>&nbsp;|&nbsp;<a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>&nbsp;|&nbsp;<a href="http://www.oscommerce.com" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>';
?>
&nbsp;&nbsp;</td>
          		</tr>
          		<tr class="main">
            		<td colspan="2" align="center" valign="middle">
                <?php 
echo tep_draw_form('login', FILENAME_PASSWORD_FORGOTTEN, 'action=process');
?>
                	<table width="280" border="0" cellspacing="0" cellpadding="2">
                  	<tr>
                    	<td class="login_heading" valign="top">&nbsp;<b><?php 
echo HEADING_PASSWORD_FORGOTTEN;
?>
</b></td>
                    </tr>
Exemplo n.º 13
0
}
</script>

<div class="pp-container">
  <div class="pp-header">
    <div id="ppAppInfo" style="float: right;">
      <?php 
echo $OSCOM_PayPal->getTitle() . ' v' . $OSCOM_PayPal->getVersion() . ' <a href="' . tep_href_link('paypal.php', 'action=info') . '">' . $OSCOM_PayPal->getDef('app_link_info') . '</a> <a href="' . tep_href_link('paypal.php', 'action=privacy') . '">' . $OSCOM_PayPal->getDef('app_link_privacy') . '</a>';
?>
    </div>

    <a href="<?php 
echo tep_href_link('paypal.php', 'action=' . $action);
?>
"><img src="<?php 
echo tep_catalog_href_link('images/apps/paypal/paypal.png', '', 'SSL');
?>
" /></a>
  </div>

  <div id="ppAppUpdateNotice" style="padding: 0 12px 0 12px; display: none;">
    <div class="pp-panel pp-panel-success">
      <?php 
echo $OSCOM_PayPal->getDef('update_available_body', array('button_view_update' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_view_update'), tep_href_link('paypal.php', 'action=update'), 'success')));
?>
    </div>
  </div>

<?php 
if ($OSCOM_PayPal->hasAlert()) {
    echo $OSCOM_PayPal->getAlerts();
Exemplo n.º 14
0
    $index = 0;
    $order->products = array();
    $orders_products_query = tep_db_query("select * from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int) $oID . "'");
    while ($orders_products = tep_db_fetch_array($orders_products_query)) {
        $manufacturer_string = $orders_products['manufacturers_name'];
        if ($orders_products['products_year'] > 0) {
            $manufacturer_string .= (tep_not_null($manufacturer_string) ? ', ' : '') . $orders_products['products_year'];
        }
        $order->products[$index] = array('id' => $orders_products['products_id'], 'qty' => $orders_products['products_quantity'], 'name' => str_replace("'", "&#039;", stripslashes($orders_products['products_name'])), 'manufacturer' => $manufacturer_string, 'model' => $orders_products['products_model'], 'code' => $orders_products['products_code'], 'weight' => $orders_products['products_weight'], 'tax' => $orders_products['products_tax'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'orders_products_id' => $orders_products['orders_products_id']);
        $index++;
    }
    for ($i = 0, $total_weight = 0, $subtotal_sum = 0; $i < sizeof($order->products); $i++) {
        $RowStyle = "dataTableContent";
        $products_price = tep_round($order->products[$i]['price'] * $order->info['currency_value'], $currencies->currencies[$order->info['currency']]['decimal_places']);
        $final_price = $order->products[$i]['final_price'] * $order->products[$i]['qty'];
        echo '		  <tr class="dataTableRow" align="center">' . "\n" . '			<td class="dataTableContent" align="left">' . ($i + 1) . '.&nbsp;<a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '" target="_blank"><u>' . $order->products[$i]['name'] . '</u></a></td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['manufacturer'] . '</td>' . "\n" . '			<td class="dataTableContent" nowrap="nowrap">' . $order->products[$i]['model'] . '</td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['code'] . '</td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['weight'] . '</td>' . "\n" . '			<td class="dataTableContent" align="center">' . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][qty]', $order->products[$i]['qty'], 'size="2" style="text-align: center;"') . '</td>' . "\n" . '			<td class="dataTableContent" align="right">' . $currencies->currencies[$order->info['currency']]['symbol_left'] . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][price]', (string) $products_price, 'size="6" style="text-align: right;"') . $currencies->currencies[$order->info['currency']]['symbol_right'] . '</td>' . "\n" . '			<td class="dataTableContent" align="center">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '			<td class="dataTableContent" align="right">' . $currencies->format($final_price, true, $order->info['currency'], $order->info['currency_value']) . ($order->info['currency'] != DEFAULT_CURRENCY ? ' (' . $currencies->format($final_price) . ')' : '') . '</td>' . "\n" . '		  </tr>' . "\n";
        $total_weight += $order->products[$i]['weight'] * $order->products[$i]['qty'];
        $subtotal_sum += round($final_price, $currencies->get_decimal_places(DEFAULT_CURRENCY));
    }
    ?>
		</table>
<!-- End Products Listings Block -->
<!-- Begin Order Total Block -->
		<table border="0" cellspacing="0" cellpadding="2" width="100%">
		  <tr>
			<td valign="bottom"><a href="<?php 
    echo tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . '&action=add_products');
    ?>
"><u><strong><font size="3"><?php 
    echo TEXT_DATE_ORDER_ADDNEW;
    ?>
Exemplo n.º 15
0
            <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_TOTAL;
    ?>
</td>
          </tr>
<?php 
    for ($i = 0, $total_weight = 0, $n = sizeof($order->products); $i < $n; $i++) {
        $product_info_query = tep_db_query("select products_year, manufacturers_id from " . TABLE_PRODUCTS . " where products_id = '" . (int) $order->products[$i]['id'] . "'");
        $product_info = tep_db_fetch_array($product_info_query);
        $manufacturer_info_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int) $product_info['manufacturers_id'] . "' and languages_id = '" . (int) $languages_id . "'");
        $manufacturer_info = tep_db_fetch_array($manufacturer_info_query);
        $manufacturer_string = $manufacturer_info['manufacturers_name'];
        if ($product_info['products_year'] > 0) {
            $manufacturer_string .= (tep_not_null($manufacturer_string) ? ', ' : '') . $product_info['products_year'];
        }
        echo '          <tr class="dataTableRow" align="center">' . "\n" . '            <td class="dataTableContent" align="left">' . ($i + 1) . '.&nbsp;<a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '" target="_blank"><u>' . $order->products[$i]['name'] . '</u></a></td>' . "\n" . '            <td class="dataTableContent">' . $manufacturer_string . '</td>' . "\n" . '            <td class="dataTableContent"><nobr>' . $order->products[$i]['model'] . '</nobr></td>' . "\n" . '            <td class="dataTableContent">' . $order->products[$i]['code'] . '</td>' . "\n" . '            <td class="dataTableContent">' . $order->products[$i]['weight'] . '</td>' . "\n" . '            <td class="dataTableContent">' . $order->products[$i]['qty'] . '</td>' . "\n" . '            <td class="dataTableContent" align="right"><nobr>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</nobr></td>' . "\n" . '            <td class="dataTableContent">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '            <td class="dataTableContent" align="right"><nobr><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></nobr></td>' . "\n" . '          </tr>' . "\n";
        $total_weight += $order->products[$i]['weight'] * $order->products[$i]['qty'];
    }
    ?>
          <tr>
            <td align="right" colspan="9"><table border="0" cellspacing="0" cellpadding="2">
			  <tr>
				<td class="smallText" align="right"><?php 
    echo ENTRY_TOTAL_WEIGHT;
    ?>
</td>
				<td class="smallText" align="center"><?php 
    echo $total_weight . ENTRY_TOTAL_WEIGHT_UNITS;
    ?>
</td>
			  </tr>
<?php

/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2013 osCommerce

  Released under the GNU General Public License
*/
define('MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_TITLE', 'ext/ Directory Listing');
define('MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200', 'The <a href="' . tep_catalog_href_link('ext/') . '" target="_blank">' . DIR_WS_CATALOG . 'ext/</a> directory is publicly accessible and/or browsable - please disable directory listing for this directory in your web server configuration.');
Exemplo n.º 17
0
     $type_inputs_string = '';
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $type_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_IMAGES . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('boards_types_short_name[' . $languages[$i]['id'] . ']', tep_get_boards_type_info($tInfo->boards_types_id, $languages[$i]['id'], 'boards_types_short_name'), 'size="30"');
     }
     $contents[] = array('text' => '<br>' . TEXT_EDIT_TYPES_SHORT_NAME . $type_inputs_string);
     $type_inputs_string = '';
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $type_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_IMAGES . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_textarea_field('boards_types_short_description[' . $languages[$i]['id'] . ']', 'soft', '30', '3', tep_get_boards_type_info($tInfo->boards_types_id, $languages[$i]['id'], 'boards_types_short_description'));
     }
     $contents[] = array('text' => '<br>' . TEXT_EDIT_TYPES_SHORT_DESCRIPTION . $type_inputs_string);
     $type_inputs_string = '';
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $type_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_IMAGES . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_textarea_field('boards_types_description[' . $languages[$i]['id'] . ']', 'soft', '30', '7', tep_get_boards_type_info($tInfo->boards_types_id, $languages[$i]['id'], 'boards_types_description'));
     }
     $contents[] = array('text' => '<br>' . TEXT_EDIT_TYPES_DESCRIPTION . $type_inputs_string);
     $contents[] = array('text' => '<br>' . TEXT_REWRITE_NAME . '<br>' . tep_catalog_href_link(FILENAME_BOARDS) . tep_draw_input_field('boards_types_path', $tInfo->boards_types_path, 'size="' . (tep_not_null($tInfo->boards_types_path) ? strlen($tInfo->boards_types_path) - 1 : '7') . '"') . '/');
     $contents[] = array('text' => '<br>' . TEXT_EDIT_TYPES_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', $tInfo->sort_order, 'size="3"'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($action == 'edit_type' ? tep_image_submit('button_update.gif', IMAGE_UPDATE) : tep_image_submit('button_insert.gif', IMAGE_INSERT)) . ' <a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('action', 'tID')) . (tep_not_null($tInfo->boards_types_id) ? 'tID=' . $tInfo->boards_types_id : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'move':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_MOVE_BOARD . '</strong>');
     $contents = array('form' => tep_draw_form('boards', FILENAME_BOARDS, tep_get_all_get_params(array('action')) . 'action=move_confirm') . tep_draw_hidden_field('boards_id', $bInfo->boards_id));
     $contents[] = array('text' => '<br>' . sprintf(TEXT_MOVE, $bInfo->customers_name) . '<br>' . tep_draw_pull_down_menu('move_to_board_type_id', $board_types, $tPath));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('action', 'bID')) . '&bID=' . $bInfo->boards_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_type':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_TYPE . '</strong>');
     $contents = array('form' => tep_draw_form('boards', FILENAME_BOARDS, tep_get_all_get_params(array('action', 'tID', 'page')) . 'tID=' . $sInfo->boards_types_id . '&action=delete_type_confirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_TYPE_INTRO);
     $contents[] = array('text' => '<br><strong>' . $tInfo->boards_types_name . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('tID', 'action', 'page')) . 'tID=' . $tInfo->boards_types_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
Exemplo n.º 18
0
        $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_ORDERS_STATUS . '</strong>');
        $contents = array('form' => tep_draw_form('status', FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br /><strong>' . $oInfo->orders_status_name . '</strong>');
        if ($remove_status) {
            $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id)));
        }
        break;
    default:
        if (isset($oInfo) && is_object($oInfo)) {
            $heading[] = array('text' => '<strong>' . $oInfo->orders_status_name . '</strong>');
            $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=delete')));
            $orders_status_inputs_string = '';
            $languages = tep_get_languages();
            for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
                $orders_status_inputs_string .= '<br />' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . '&nbsp;' . tep_get_orders_status_name($oInfo->orders_status_id, $languages[$i]['id']);
            }
            $contents[] = array('text' => $orders_status_inputs_string);
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
Exemplo n.º 19
0
            echo '                  <tr class="productListing-even">';
        } else {
            echo '                  <tr class="productListing-odd">';
        }
        ?>
                <td class="dataTableContent"><?php 
        echo $affiliate_clickthroughs['affiliate_firstname'] . " " . $affiliate_clickthroughs['affiliate_lastname'];
        ?>
</td>
                <td class="dataTableContent" align="center"><?php 
        echo tep_date_short($affiliate_clickthroughs['affiliate_clientdate']);
        ?>
</td>
<?php 
        if ($affiliate_clickthroughs['affiliate_products_id'] > 0) {
            $link_to = '<a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $affiliate_clickthroughs['affiliate_products_id']) . '" target="_blank">' . $affiliate_clickthroughs['products_name'] . '</a>';
        } else {
            $link_to = "Startpage";
        }
        ?>
                <td class="dataTableContent"><?php 
        echo $link_to;
        ?>
</td>
                <td class="dataTableContent" align="center"><?php 
        echo $affiliate_clickthroughs['affiliate_clientbrowser'];
        ?>
</td>
              </tr>
              <tr>
                <td class="dataTableContent"><?php 
Exemplo n.º 20
0
<?php

if ($messageStack->size > 0) {
    echo $messageStack->output();
}
?>

<div id="menubar"><?php 
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'SSL') . '">' . HEADER_TITLE_TOP . '</a> ' . '<a href="' . tep_catalog_href_link(FILENAME_DEFAULT) . '" target="_blank">' . HEADER_TITLE_ONLINE_CATALOG . '</a> ';
?>
</div>
  Released under the GNU General Public License
*/
chdir('../../../../');
require 'includes/application_top.php';
require '../includes/languages/' . $language . '/modules/payment/moneybookers.php';
require '../includes/modules/payment/moneybookers.php';
$action = isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '';
$pass = false;
switch ($action) {
    case 'verifyEmail':
        $mb = new moneybookers();
        $result = $mb->sendTransactionToGateway('https://www.moneybookers.com/app/email_check.pl', 'email=' . $HTTP_POST_VARS['mb_email'] . '&cust_id=2167348&password=281f2d9f44066eab75db5afb063952b1');
        $result = explode(',', $result, 2);
        if (sizeof($result) == 2 && $result[0] == 'OK') {
            $pass = true;
            $email_body = 'Store Name: ' . STORE_NAME . ' (powered by osCommerce Online Merchant (' . $mb->signature . '))' . "\n" . 'Merchant Name: ' . STORE_OWNER . "\n" . 'Moneybookers E-Mail Address: ' . $HTTP_POST_VARS['mb_email'] . "\n" . 'Moneybookers Customer ID: ' . $result[1] . "\n" . 'Store URL: ' . tep_catalog_href_link() . "\n" . 'Language: ' . $language . "\n";
            tep_mail('', '*****@*****.**', 'Quick Checkout Account Activation', $email_body, '', $HTTP_POST_VARS['mb_email']);
        }
        break;
    case 'testSecretWord':
        $mb = new moneybookers();
        $result = $mb->sendTransactionToGateway('https://www.moneybookers.com/app/secret_word_check.pl', 'email=' . MODULE_PAYMENT_MONEYBOOKERS_PAY_TO . '&secret=' . md5('281f2d9f44066eab75db5afb063952b1' . md5(MODULE_PAYMENT_MONEYBOOKERS_SECRET_WORD)) . '&cust_id=2167348');
        if ($result == 'OK') {
            $pass = true;
        }
        break;
    case 'coreRequired':
        break;
    default:
        $action = 'verifyEmail';
        break;
Exemplo n.º 22
0
 function generate_collection_link($abstract_zone_id)
 {
     extract(tep_load('database'));
     $result = false;
     $check_query = $db->query("select seo_name from " . TABLE_SEO_TO_ABSTRACT . " where abstract_zone_id = '" . (int) $abstract_zone_id . "'");
     if (!$db->num_rows($check_query)) {
         return $result;
     }
     $check_array = $db->fetch_array($check_query);
     $db->query("delete from " . TABLE_SEO_URL . " where seo_url_get like '%" . $db->input($check_array['seo_name']) . "%'");
     $cAbstract = new abstract_zones();
     $class_name = $cAbstract->get_zone_class($abstract_zone_id . false);
     $script = 'FILENAME_COLLECTIONS';
     $files_array = tep_get_file_array(tep_front_physical_path(DIR_WS_CATALOG_INCLUDES) . 'filenames.php');
     if (!isset($files_array[$script])) {
         return $result;
     }
     $script = $files_array[$script];
     $osc_link = tep_catalog_href_link($script, 'abz_id=' . (int) $abstract_zone_id);
     $link = $this->get_naked_link($osc_link);
     $osc_md5 = md5($link);
     $db->query("delete from " . TABLE_SEO_URL . " where osc_url_key = '" . $db->input($osc_md5) . "'");
     $seo_link = $check_array['seo_name'] . $this->default_extension;
     $seo_md5 = md5($seo_link);
     $check_query = $db->query("select seo_url_key from " . TABLE_SEO_URL . " where seo_url_key = '" . $db->input($seo_md5) . "'");
     if (!$db->num_rows($check_query)) {
         $sql_data_array = array('seo_url_key' => $db->prepare_input($seo_md5), 'seo_url_get' => $db->prepare_input($seo_link), 'osc_url_key' => $db->prepare_input($osc_md5), 'seo_url_org' => $db->prepare_input($link), 'date_added' => 'now()', 'last_modified' => 'now()');
         $db->perform(TABLE_SEO_URL, $sql_data_array);
         $db->query("truncate table " . TABLE_SEO_CACHE);
         $result = true;
     }
     return $result;
 }
Exemplo n.º 23
0
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br />' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']');
     }
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $HTTP_GET_VARS['mID'])));
     break;
 case 'edit':
     $heading[] = array('text' => '<strong>' . TEXT_HEADING_EDIT_MANUFACTURER . '</strong>');
     $contents = array('form' => tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_NAME . '<br />' . tep_draw_input_field('manufacturers_name', $mInfo->manufacturers_name));
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE . '<br />' . tep_draw_file_field('manufacturers_image') . '<br />' . $mInfo->manufacturers_image);
     $manufacturer_inputs_string = '';
     $languages = tep_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br />' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', tep_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id)));
     break;
 case 'delete':
     $heading[] = array('text' => '<strong>' . TEXT_HEADING_DELETE_MANUFACTURER . '</strong>');
     $contents = array('form' => tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br /><strong>' . $mInfo->manufacturers_name . '</strong>');
     $contents[] = array('text' => '<br />' . tep_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
     if ($mInfo->products_count > 0) {
         $contents[] = array('text' => '<br />' . tep_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
         $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id)));
Exemplo n.º 24
0
    $update_status = array('orders_status' => 3);
    tep_db_perform(TABLE_ORDERS, $update_status, 'update', "orders_id = '" . $order . "'");
    if ($send_email_on_shipping) {
        $customer_notified = '1';
    } else {
        $customer_notified = '0';
    }
    tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . $order . "', '3', now(), '" . $customer_notified . "', '" . $fedex_comments . "')");
    // send email automatically on shipping
    if ($send_email_on_shipping) {
        $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $order . "'");
        $check_status = tep_db_fetch_array($check_status_query);
        if (tep_not_null($trackNum)) {
            $email_notify_tracking = sprintf(EMAIL_TEXT_TRACKING_NUMBER) . "\n" . URL_TO_TRACK1 . nl2br(tep_output_string_protected($trackNum)) . "\n\n";
        }
        $email_txt = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $order, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $email_notify_tracking . sprintf(EMAIL_TEXT_STATUS_UPDATE, 'Shipped');
        tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_txt, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    }
    // ... and display the new label without manifest entry for express shipments
    $ship_type_query = tep_db_query("select shipping_type from " . TABLE_SHIPPING_MANIFEST . " where orders_id = '" . $order . "'");
    $ship_type = tep_db_fetch_array($ship_type_query);
    if ($service_type < 89) {
        $delete_manifest_query = tep_db_query("delete from " . TABLE_SHIPPING_MANIFEST . " where orders_id = '" . $order . "'");
    }
    tep_redirect('fedex_popup.php?num=' . $trackNum . '&oID=' . $order . '&multiple=' . $shipData[1117]);
} else {
    ////
    // cancel a scheduled shipment
    if ($action == 'cancel') {
        if (!$order) {
            echo ERROR_NO_ORDER_SPECIFIED;
Exemplo n.º 25
0
 $email .= "\n" . EMAIL_SEPARATOR . "\n\n";
 if (RCS_EMAIL_FRIENDLY == 'true') {
     $email .= EMAIL_TEXT_SALUTATION . $inrec['fname'] . ",";
 } else {
     $email .= STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n";
 }
 if (mysql_num_rows($cquery) < 1) {
     $email .= sprintf(EMAIL_TEXT_NEWCUST_INTRO, $mline);
 } else {
     $email .= sprintf(EMAIL_TEXT_CURCUST_INTRO, $mline);
 }
 $email .= EMAIL_TEXT_BODY_HEADER . $mline . EMAIL_TEXT_BODY_FOOTER;
 if (EMAIL_USE_HTML == 'true') {
     $email .= '<a HREF="' . tep_catalog_href_link('', '') . '">' . STORE_OWNER . "\n" . tep_catalog_href_link('', '') . '</a>';
 } else {
     $email .= STORE_OWNER . "\n" . tep_catalog_href_link('', '');
 }
 $email .= "\n\n" . $_POST['message'];
 $custname = $inrec['fname'] . " " . $inrec['lname'];
 $outEmailAddr = '"' . $custname . '" <' . $inrec['email'] . '>';
 if (tep_not_null(RCS_EMAIL_COPIES_TO)) {
     $outEmailAddr .= ', ' . RCS_EMAIL_COPIES_TO;
 }
 tep_mail('', $outEmailAddr, EMAIL_TEXT_SUBJECT, $email, '', EMAIL_FROM);
 $mline = "";
 // See if a record for this customer already exists; if not create one and if so update it
 $donequery = tep_db_query("select * from " . TABLE_SCART . " where customers_id = '" . $cid . "'");
 if (mysql_num_rows($donequery) == 0) {
     tep_db_query("insert into " . TABLE_SCART . " (customers_id, dateadded, datemodified ) values ('" . $cid . "', '" . seadate('0') . "', '" . seadate('0') . "')");
 } else {
     tep_db_query("update " . TABLE_SCART . " set datemodified = '" . seadate('0') . "' where customers_id = " . $cid);
Exemplo n.º 26
0
     $ot_label_text[] = str_repeat(' ', $ot_title_wd + 2 - strlen($ot['strip_title'])) . $ot['strip_title'] . str_repeat(' ', $ot_text_wd + 2 - strlen($ot['strip_text'])) . $ot['strip_text'];
     $ot_label_html[] = '<tr><td style="font-size: 12px; padding:0 10px 0 0;">' . $ot['title'] . '</td><td style="font-size: 12px">' . $ot['text'] . '</td></tr>';
 }
 $ship_info = array();
 $ship_info['usps'] = array('name' => 'USPS', 'track_url' => 'http://www.usps.com/shipping/trackandconfirm.htm', 'track_name' => 'Delivery Confirmation Number');
 $ship_info['ups'] = array('name' => 'UPS', 'track_url' => 'http://www.ups.com/WebTracking/track?loc=en_US', 'track_name' => 'Tracking Label Number');
 $ship_info['fedex1'] = array('name' => 'FedEx', 'track_url' => 'http://www.fedex.com/Tracking', 'track_name' => 'Tracking Number');
 $ship_info['dhlairborne'] = array('name' => 'DHL', 'track_url' => 'http://www.dhl-usa.com/TrackByNbr.asp', 'track_name' => 'Tracking Number');
 $ship_info['dhl'] = $ship_info['dhlairborne'];
 $ship_method = preg_replace('/_.*/', '', $order->info['shipping_method']);
 if (!isset($ship_info[$ship_method])) {
     $ship_method = MODULE_SHIPPING_AIRBORNE_STATUS == 'True' ? 'dhl' : (MODULE_SHIPPING_USPS_STATUS == 'True' ? 'usps' : 'ups');
 }
 $tpl = array();
 $tpl['config'] = array(store_name => STORE_NAME, store_owner_email_address => STORE_OWNER_EMAIL_ADDRESS, http_server => HTTP_CATALOG_SERVER);
 $tpl['link'] = array(account_history => tep_catalog_href_link('account_history_info.php', 'order_id=' . $oID, 'SSL', false), account => tep_catalog_href_link('account.php'), tell_a_friend => tep_catalog_href_link('tell_a_friend.php'));
 $tpl['order_id'] = $oID;
 $tpl['info'] = $order->info;
 $tpl['customer'] = $order->customer;
 $tpl['customer']['password'] = '******';
 list($tpl['customer']['firstname'], $tpl['customer']['lastname']) = explode(' ', $tpl['customer']['name']);
 $tpl['date'] = strftime(DATE_FORMAT_LONG);
 $tpl['address'] = array(shipping => array(text => tep_address_format($order->delivery['format_id'], $order->delivery, 0, '', "\n"), html => tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', "\n")), billing => array(text => tep_address_format($order->billing['format_id'], $order->billing, 0, '', "\n"), html => tep_address_format($order->billing['format_id'], $order->billing, 1, '', "\n")));
 $tpl['products_ordered'] = array('text' => $products_ordered, 'html' => $products_ordered_html);
 $tpl['payment'] = array(title => $order->info['payment_method'], subtotal => '$' . number_format($order->info['subtotal'], 2), total => '$' . number_format($order->info['total'], 2), order_total_label => array(text => join("\n", $ot_label_text), html => "<table width=100%>\n" . join("\n", $ot_label_html) . "</table>"), cc_type => isset($order->info['cc_type']) ? $order->info['cc_type'] : '', cc_number => isset($order->info['cc_number']) ? str_repeat('*', max(strlen($order->info['cc_number']) - 4, 0)) . substr($order->info['cc_number'], -4, 4) : '');
 $tpl['ship_info'] = $ship_info[$ship_method];
 $tpl['ship_info']['service_eta'] = 3;
 $tpl['ship_info']['method'] = preg_replace('/^.*?_/', '', $order->info['shipping_method']);
 $tpl['comments'] = !empty($order->info['comments']) ? $order->info['comments'] : '';
 if (!empty($tpl['order_id'])) {
     require_once DIR_WS_FUNCTIONS . 'email_now.php';
Exemplo n.º 27
0
 if ($action == 'edit_header') {
     $return .= tep_draw_hidden_field('headers_id', $hInfo->headers_id);
 }
 $return .= '      <input type="hidden" name="headers_type" id="headers_type" value="' . $headersType . '">';
 $return .= '    </div>';
 $return .= '  </div>';
 if (in_array($headersType, $header_type_check_dynamic, true)) {
     $languages = tep_get_languages();
     $return .= '<div class="alert alert-info thumbnail">';
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         //return TITLE input [DYNAMIC]
         $return .= '  <div class="form-group">';
         $return .= '    <label for="headers_name" class="col-sm-4 control-label">Title : </label>';
         $return .= '    <div class="col-sm-7 inputGroupContainer">';
         $return .= '      <div class="input-group">';
         $return .= '<span class="input-group-addon">' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . '</span>';
         if ($action == 'edit_header') {
             $return .= tep_draw_input_field('headers_name[' . $languages[$i]['id'] . ']', tep_get_header_name($hInfo->headers_id, $languages[$i]['id']), 'class="form-control" placeholder="e.g: link/text/button name" required');
         }
         if ($action == 'create_header') {
             $return .= tep_draw_input_field('headers_name[' . $languages[$i]['id'] . ']', '', 'class="form-control" placeholder="e.g: link/text/button name" required');
         }
         $return .= '      </div>';
         $return .= '    </div>';
         $return .= '  </div>';
     }
     $return .= '  </div>';
 }
 //return ID input [STATIC]
 $return .= '  <div class="form-group">';
 $return .= '    <label for="headers_css_id" class="col-sm-4 control-label">Css #iD : </label>';
Exemplo n.º 28
0
  <tr><td>Name</td><td><input type="text" name="project[name]" value="<?php 
echo STORE_OWNER;
?>
"></td><td>*</td></tr>
  <tr><td>Strasse</td><td><input type="text" name="project[strasse]" value=""></td><td>*</td></tr>
  <tr><td>Plz</td><td><input type="text" name="project[plz]" value=""></td><td>*</td></tr>
  <tr><td>Ort</td><td><input type="text" name="project[ort]" value=""></td><td>*</td></tr>
  <tr><td>Land</td><td><input type="text" name="project[land]" value=""></td><td>*</td></tr>
  <tr><td>Telefon</td><td><input type="text" name="project[telefon]" value=""></td><td>*</td></tr>
  <tr><td>Telefax</td><td><input type="text" name="project[telefax]" value=""></td><td>*</td></tr>
  <tr><td>Email</td><td><input type="text" name="project[email]" value="<?php 
echo STORE_OWNER_EMAIL_ADDRESS;
?>
"></td><td>*</td></tr>
  <tr><td>Homepage</td><td><input type="text" name="project[homepage]" value="<?php 
echo tep_catalog_href_link();
?>
"></td><td>*</td></tr>
</table>

<table border="1" id="table7" style="display:none">
  <tr><td>Email</td><td><input type="text" name="alert[alert_email_adresse]" value="<?php 
echo STORE_OWNER_EMAIL_ADDRESS;
?>
"></td><td>&nbsp;</td></tr>
  <tr><td>Email Benachrichtigung bei Zahlungseingang aktivieren</td><td><input type="text" name="alert[alert_email_status]" value="1"></td><td>&nbsp;</td></tr>
</table>

<input type="hidden" name="user[backlink]" value="<?php 
echo $backlink;
?>
Exemplo n.º 29
0
  Copyright (c) 2008 osCommerce

  Released under the GNU General Public License
*/
if ($messageStack->size > 0) {
    echo $messageStack->output();
}
$query = "SELECT COUNT(1) as pending_order FROM " . TABLE_ORDERS . " WHERE orders_status='1'";
$query_result = tep_db_query($query);
$pending_count = tep_db_fetch_array($query_result);
$pending_count = (int) $pending_count['pending_order'];
$blink = $pending_count > 0 ? ' blink' : '';
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2"><?php 
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.png', PROJECT_VERSION) . '</a>';
?>
</td>
  </tr>
  <tr class="headerBar">
    <td class="headerBarContent">&nbsp;&nbsp;<?php 
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a> &nbsp;|&nbsp; <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> &nbsp;|&nbsp; <a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="headerLink' . $blink . '">' . HEADER_TITLE_ORDER . '</a>';
?>
</td>
    <td class="headerBarContent" align="right"><?php 
echo tep_session_is_registered('admin') ? 'Logged in as: ' . $admin['username'] . ' (<a href="' . tep_href_link(FILENAME_LOGIN, 'action=logoff') . '" class="headerLink">Logoff</a>)' : '';
?>
&nbsp;&nbsp;</td>
  </tr>
</table>
Exemplo n.º 30
0
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250"><?php 
    echo TEXT_MANUFACTURERS_PATH;
    ?>
</td>
            <td class="main"><?php 
    echo tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . tep_catalog_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL', false) . tep_draw_input_field('manufacturers_path', $mInfo->manufacturers_path, 'size="' . (tep_not_null($mInfo->manufacturers_path) ? strlen($mInfo->manufacturers_path) - 1 : '7') . '"') . '/';
    ?>
</td>
          </tr>
		</table></td>
      </tr>
      <tr>
        <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr>
        <td class="main" align="right"><?php 
    echo tep_draw_hidden_field('date_added', tep_not_null($mInfo->date_added) ? $mInfo->date_added : date('Y-m-d'));
    if (tep_not_null($HTTP_GET_VARS['mID'])) {