$cfgValue = xtc_call_function($use_function, $configuration['configuration_value']); } } else { $cfgValue = $configuration['configuration_value']; } if ((!isset($_GET['cID']) || isset($_GET['cID']) && $_GET['cID'] == $configuration['configuration_id']) && !isset($cInfo) && substr($action, 0, 3) != 'new') { $cfg_extra_query = xtc_db_query("select configuration_key,configuration_value, date_added, last_modified, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_id = '" . $configuration['configuration_id'] . "'"); $cfg_extra = xtc_db_fetch_array($cfg_extra_query); $cInfo_array = xtc_array_merge($configuration, $cfg_extra); $cInfo = new objectInfo($cInfo_array); } if ($configuration['set_function']) { eval('$value_field = ' . $configuration['set_function'] . '"' . encode_htmlspecialchars($configuration['configuration_value']) . '");'); } else { if ($configuration['configuration_key'] == 'SMTP_PASSWORD') { $value_field = xtc_draw_password_field($configuration['configuration_key'], $configuration['configuration_value']); } else { $value_field = xtc_draw_input_field($configuration['configuration_key'], $configuration['configuration_value'], 'style="width:380px;"'); } } if (strstr($value_field, 'configuration_value')) { $value_field = str_replace('configuration_value', $configuration['configuration_key'], $value_field); } // catch up warnings if no language-text defined for configuration-key $configuration_key_title = strtoupper($configuration['configuration_key'] . '_TITLE'); $configuration_key_desc = strtoupper($configuration['configuration_key'] . '_DESC'); if (defined($configuration_key_title)) { // if language definition $configuration_key_title = constant($configuration_key_title); $configuration_key_desc = constant($configuration_key_desc); } else {
----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com (c) 2003 nextcommerce (loginbox.php,v 1.10 2003/08/17); www.nextcommerce.org (c) 2006 XT-Commerce Released under the GNU General Public License ----------------------------------------------------------------------------------------- Third Party contributions: Loginbox V1.0 Aubrey Kilian <*****@*****.**> Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ if (!isset($_SESSION['customer_id'])) { require_once DIR_FS_INC . 'xtc_image_submit.inc.php'; require_once DIR_FS_INC . 'xtc_draw_password_field.inc.php'; $box_smarty = new smarty(); $box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); $box_smarty->assign('FORM_ACTION', '<form id="loginbox" method="post" action="' . xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . '">'); $box_smarty->assign('FIELD_EMAIL', xtc_draw_input_field('email_address', '', 'maxlength="50" style="width: 100%!important;""')); $box_smarty->assign('FIELD_PWD', xtc_draw_password_field('password', '', 'maxlength="30" style="width: 100%!important;""')); $box_smarty->assign('BUTTON', xtc_image_submit('button_login_small.gif', IMAGE_BUTTON_LOGIN)); $box_smarty->assign('LINK_LOST_PASSWORD', xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT, '', 'SSL')); $box_smarty->assign('FORM_END', '</form>'); $box_smarty->assign('BOX_CONTENT', ''); $box_smarty->caching = 0; $box_smarty->assign('language', $_SESSION['language']); $box_loginbox = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_login.html'); $smarty->assign('box_LOGIN', $box_loginbox); }
} $smarty->assign('info_message', $info_message); $smarty->assign('account_option', ACCOUNT_OPTIONS); $smarty->assign('BUTTON_NEW_ACCOUNT', '<a href="' . xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'); $smarty->assign('BUTTON_LOGIN', xtc_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN)); $smarty->assign('BUTTON_GUEST', '<a href="' . xtc_href_link(FILENAME_CREATE_GUEST_ACCOUNT, '', 'SSL') . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'); // BOC added review_prod_id to be able to redirect to product_reviews_write when coming from reviews button, and order_id to redirect to account_history_info when coming from Link in change_order_mail, noRiddle //$smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL'))); if (isset($_GET['review_prod_id'])) { $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process&review_prod_id=' . (int) $_GET['review_prod_id'], 'SSL'))); } elseif (isset($_GET['order_id'])) { $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process&order_id=' . (int) $_GET['order_id'], 'SSL'))); } else { $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL'))); } // EOC added review_prod_id and order_id, noRiddle $smarty->assign('INPUT_MAIL', xtc_draw_input_field('email_address')); $smarty->assign('INPUT_PASSWORD', xtc_draw_password_field('password')); $smarty->assign('LINK_LOST_PASSWORD', xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT, '', 'SSL')); $smarty->assign('FORM_END', '</form>'); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/login.html'); $smarty->assign('main_content', $main_content); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; if (!defined('RM')) { $smarty->load_filter('output', 'note'); } $smarty->display(CURRENT_TEMPLATE . '/index.html'); include 'includes/application_bottom.php';
$_GET['login'] = '******'; } else { $_SESSION['affiliate_id'] = $check_affiliate['affiliate_id']; $date_now = date('Ymd'); xtc_db_query("update " . TABLE_AFFILIATE . " set affiliate_date_of_last_logon = now(), affiliate_number_of_logons = affiliate_number_of_logons + 1 where affiliate_id = '" . $_SESSION['affiliate_id'] . "'"); xtc_redirect(xtc_href_link(FILENAME_AFFILIATE_SUMMARY, '', 'SSL')); } } } $breadcrumb->add(NAVBAR_TITLE, xtc_href_link(FILENAME_AFFILIATE, '', 'SSL')); require DIR_WS_INCLUDES . 'header.php'; if (isset($_GET['login']) && $_GET['login'] == 'fail') { $info_message = 'true'; } else { $info_message = 'false'; } $smarty->assign('info_message', $info_message); $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_AFFILIATE, 'action=process', 'SSL'))); $smarty->assign('LINK_TERMS', '<a href="' . xtc_href_link(FILENAME_CONTENT, 'coID=900', 'SSL') . '">'); $smarty->assign('INPUT_AFFILIATE_USERNAME', xtc_draw_input_field('affiliate_username')); $smarty->assign('INPUT_AFFILIATE_PASSWORD', xtc_draw_password_field('affiliate_password')); $smarty->assign('LINK_PASSWORD_FORGOTTEN', '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, '', 'SSL') . '">'); $smarty->assign('LINK_SIGNUP', '<a href="' . xtc_href_link(FILENAME_AFFILIATE_SIGNUP, '', 'SSL') . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'); $smarty->assign('BUTTON_LOGIN', xtc_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN)); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/affiliate_affiliate.html'); $smarty->assign('main_content', $main_content); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $smarty->display(CURRENT_TEMPLATE . '/index.html');
public function display() { $tools = new tools(); $missing_config_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_MISSING_CONFIG' LIMIT 1"); $missing_config_db = xtc_db_fetch_array($missing_config_query); $missing_config_db = $missing_config_db['configuration_value']; $missing_config_user = ''; $missing_config_url_input = ''; $missing_config_shop_id_input = ''; $missing_config_password_input = ''; $missing_config_pagesize_input = ''; $missing_config_shipping = ''; $missing_config_payment = ''; $missing_config_costs_idealo_DE_active = ''; $missing_config_costs_idealo_DE_active = ''; if ($missing_config_db != '') { if (strpos($missing_config_db, "user") !== false) { $missing_config_user = IDEALO_TEXT_MISSING_CONFIG; } if (strpos($missing_config_db, "url_input") !== false) { $missing_config_url_input = IDEALO_TEXT_MISSING_CONFIG; } if (strpos($missing_config_db, "shop_id_input") !== false) { $missing_config_shop_id_input = IDEALO_TEXT_MISSING_CONFIG; } if (strpos($missing_config_db, "password_input") !== false) { $missing_config_password_input = IDEALO_TEXT_MISSING_CONFIG; } if (strpos($missing_config_db, "pagesize_input") !== false) { $missing_config_page_size_input = IDEALO_TEXT_MISSING_CONFIG; } if (strpos($missing_config_db, "shipping") !== false && strpos($missing_config_db, "shippingDE") === false) { $missing_config_shipping = IDEALO_TEXT_MISSING_SHIPPING; } if (strpos($missing_config_db, "payment") !== false) { $missing_config_payment = IDEALO_TEXT_MISSING_PAYMENT; } if (strpos($missing_config_db, "idealo_DE_active") !== false) { $missing_config_costs_idealo_DE_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE; } if (strpos($missing_config_db, "idealo_AT_active") !== false) { $missing_config_costs_idealo_AT_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE; } if (strpos($missing_config_db, "shippingDElenght") !== false || strpos($missing_config_db, "shippingDEone") !== false) { $missing_config_format_idealo_DE_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_DE . '</b></font>'; } if (strpos($missing_config_db, "shippingATlenght") !== false || strpos($missing_config_db, "shippingATone") !== false) { $missing_config_format_idealo_AT_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_AT . '</b></font>'; } } $realtime_link = $path = HTTP_CATALOG_SERVER . DIR_WS_CATALOG . IDEALO_REALTIME_LINK; $shipping_input_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_SHIPPINGCOMMENT' LIMIT 1"); $shipping_comment_db = xtc_db_fetch_array($shipping_input_query); $shipping_comment_text = $shipping_comment_db !== false ? $shipping_comment_db['configuration_value'] : ''; $shop_id_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_SHOP_ID' LIMIT 1"); $shop_id_db = xtc_db_fetch_array($shop_id_query); $shop_id = $shop_id_db['configuration_value']; $password_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_PASSWORD' LIMIT 1"); $password_db = xtc_db_fetch_array($password_query); $password = $password_db['configuration_value']; $pagesize_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_PAGESIZE' LIMIT 1"); $pagesize_db = xtc_db_fetch_array($pagesize_query); $pagesize = $pagesize_db['configuration_value']; $customers_statuses_array = xtc_get_customers_statuses(); $campaign_array[] = array('id' => '0', 'text' => 'no'); $campaign_array[] = array('id' => 'refID=' . CAMPAIGN . '&', 'text' => '94511215 (idealo)'); $campaign_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_CAMPAIGN' LIMIT 1"); $campaign_db = xtc_db_fetch_array($campaign_query); $campaign = $campaign_db['configuration_value']; $ship_text = ''; $tools->getShipping(); $this->shipping = $tools->shipping; foreach ($this->shipping as $ship) { if ($ship['country'] == 'DE') { $ship_text .= $this->getDisplayShip($ship, $missing_config_costs_idealo_DE_active, $missing_config_format_idealo_DE_shipping); } if ($ship['country'] == 'AT') { $ship_text .= $this->getDisplayShip($ship, $missing_config_costs_idealo_AT_active, $missing_config_format_idealo_AT_shipping); } } $payment_text = ''; $tools->getPayment(); $this->payment = $tools->payment; foreach ($this->payment as $payment) { $payment_text .= $this->getDisplayPayment($payment); } $testmode_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_TESTMODE' LIMIT 1"); $testmode_db = xtc_db_fetch_array($testmode_query); $testmode_db = $testmode_db['configuration_value']; $textfile_array[] = array('id' => 'yes', 'text' => 'ja'); $textfile_array[] = array('id' => 'no', 'text' => 'nein'); $certificate_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CERTIFICATE' LIMIT 1"); $certificate_db = xtc_db_fetch_array($certificate_query); $certificate_db = $certificate_db['configuration_value']; $certificate_array[] = array('id' => '1', 'text' => 'ja'); $certificate_array[] = array('id' => '0', 'text' => 'nein'); $testmode = IDEALO_REALTIME_TESTMODE_ACTIVE . '<br>' . xtc_draw_pull_down_menu('testmode', $textfile_array, $testmode_db) . '<br>'; $article_filter_array[] = array('id' => 'filter', 'text' => 'filtern'); $article_filter_array[] = array('id' => 'export', 'text' => 'exportieren'); $article_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER' LIMIT 1"); $article_filter_db = xtc_db_fetch_array($article_filter_query); $article_value = $article_filter_db['configuration_value']; $article_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER_VALUE' LIMIT 1"); $article_filter_value_db = xtc_db_fetch_array($article_filter_value_query); $article_filter_value = $article_filter_value_db['configuration_value']; $article_filter = IDEALO_REALTIME_ARTICLE_FILTER . '<br>' . IDEALO_REALTIME_ARTICLE_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('article_filter', $article_filter_array, $article_value) . '<br><br>' . IDEALO_REALTIME_ARTICLE_FILTER_TEXT . '<br>' . xtc_draw_input_field('article_filter_value', $article_filter_value) . '<br><br>'; $brand_filter_array[] = array('id' => 'filter', 'text' => 'filtern'); $brand_filter_array[] = array('id' => 'export', 'text' => 'exportieren'); $brand_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER' LIMIT 1"); $brand_filter_db = xtc_db_fetch_array($brand_filter_query); $brand_value = $brand_filter_db['configuration_value']; $brand_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER_VALUE' LIMIT 1"); $brand_filter_value_db = xtc_db_fetch_array($brand_filter_value_query); $brand_filter_value = $brand_filter_value_db['configuration_value']; $brand_filter = IDEALO_REALTIME_BRAND_FILTER . '<br>' . IDEALO_REALTIME_BRAND_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('brand_filter', $brand_filter_array, $brand_value) . '<br><br>' . IDEALO_REALTIME_BRAND_FILTER_TEXT . '<br>' . xtc_draw_input_field('brand_filter_value', $brand_filter_value) . '<br><br>'; $cat_filter_array[] = array('id' => 'filter', 'text' => 'filtern'); $cat_filter_array[] = array('id' => 'export', 'text' => 'exportieren'); $cat_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER' LIMIT 1"); $cat_filter_db = xtc_db_fetch_array($cat_filter_query); $cat_value = $cat_filter_db['configuration_value']; $cat_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER_VALUE' LIMIT 1"); $cat_filter_value_db = xtc_db_fetch_array($cat_filter_value_query); $cat_filter_value = $cat_filter_value_db['configuration_value']; $cat_filter = IDEALO_REALTIME_CAT_FILTER . '<br>' . IDEALO_REALTIME_CAT_FILTER_SELECTION . '<br>' . xtc_draw_pull_down_menu('cat_filter', $cat_filter_array, $cat_value) . '<br><br>' . IDEALO_REALTIME_CAT_FILTER_TEXT . '<br>' . xtc_draw_input_field('cat_filter_value', $cat_filter_value) . '<br><br>'; $tools->getMinorderValues(); $minOrderDisplay = IDEALO_REALTIME_MIN_ORDER_TITLE . '<br><br>' . IDEALO_REALTIME_MIN_ORDER_VALUE . '<br>' . xtc_draw_input_field('idealo_realtime_minOrder_input', $tools->minOrder) . '<br>' . IDEALO_REALTIME_MIN_ORDER_TEXT . '<br><br>' . IDEALO_REALTIME_MIN_EXTRA_COSTS . '<br>' . xtc_draw_input_field('idealo_realtime_minOrderPrice_input', $tools->minOrderPrice) . '<br>' . IDEALO_REALTIME_MIN_ORDER_BORDER_TEXT . '<br>' . IDEALO_REALTIME_MIN_ORDER_BORDER_VALUE . '<br>' . xtc_draw_input_field('idealo_realtime_minOrderBorder_input', $tools->idealoMinorderBorder) . '<br>' . IDEALO_REALTIME_MIN_ORDER_PRICE_TEXT; return array('text' => $missing_config_user . '<br><br>' . $testmode . '<br>' . SHOP_ID . '<br>' . SHOP_ID_HINT . '<br>' . xtc_draw_input_field('shop_id_input', $shop_id) . '<br>' . $missing_config_shop_id_input . '<br><br>' . PASSWORT . '<br>' . PASSWORT_HINT . '<br>' . xtc_draw_password_field('password_input', $password) . '<br>' . $missing_config_password_input . '<br><br>' . PAGESIZE . '<br>' . PAGESIZE_HINT . '<br>' . xtc_draw_input_field('pagesize_input', $pagesize) . '<br>' . $missing_config_page_size_input . '<br><br>' . CERTIFICATE_TEXT . '<br>' . CERTIFICATE_TEXT_DESCRIPTION . '<br>' . xtc_draw_pull_down_menu('certificate', $certificate_array, $certificate_db) . '<br>' . SHIPPING . '<br>' . $missing_config_shipping . '<br><br>' . $ship_text . PAYMENT . '<br>' . $missing_config_payment . '<br><br>' . $payment_text . SHIPPINGCOMMENT . '<br>' . SHIPPINGCOMMENT_HINT . '<br>' . xtc_draw_input_field('shippingcomment_input', $shipping_comment_text) . '<br><br>' . CAMPAIGNS . '<br>' . CAMPAIGNS_DESC . '<br>' . xtc_draw_pull_down_menu('campaign', $campaign_array, $campaign) . '<br><br>' . $article_filter . $brand_filter . $cat_filter . $minOrderDisplay . $this->displayExportKonfigs() . IDEALO_REALTIME_EXPORT_TEXT . '<br>' . REAL_TEXT . '<br><br>' . $realtime_link . '<br><br>' . xtc_draw_checkbox_field('hardReset', '', $checked = false) . IDEALO_TEXT_HARD_RESET_BUTTON_TEXT . '<br>' . IDEALO_TEXT_HARD_RESET_TEXT . '<br>' . xtc_button(IDEALO_TEXT_SOFT_RESET_BUTTON_TEXT) . '<font size="+1">*</font> ' . '<br>' . IDEALO_TEXT_SOFT_RESET_TEXT . '<br><br>' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=idealo_real')) . '<input id ="come_from" type="hidden" name="come_from" value="' . $_SERVER['HTTP_REFERER'] . '"> <br><br>' . EXPORT . '<br><br>' . TEXT_WARANTY_IDEALO_REALTIME); }
</div> <div class="col-xs-12"> <div class="col-sm-2 col-xs-12 main" bgcolor="#FFCC33"><?php echo ENTRY_PASSWORD; ?> </div> <div class="col-sm-10 col-xs-12 main" bgcolor="#FFCC33"> <?php if (isset($error) && $error == true) { if (isset($entry_password_error) && $entry_password_error == true) { echo xtc_draw_password_field('entry_password', isset($customers_password_encrypted) ? $customers_password_encrypted : '') . ' ' . ENTRY_PASSWORD_ERROR; } else { echo xtc_draw_password_field('entry_password', isset($customers_password_encrypted) ? $customers_password_encrypted : ''); } } else { echo xtc_draw_password_field('entry_password', isset($customers_password_encrypted) ? $customers_password_encrypted : ''); } ?> </div> </div> <div class="col-xs-12"> <div class="col-sm-2 col-xs-12 main" valign="top"><?php echo ENTRY_MAIL_COMMENTS; ?> </div> <div class="col-sm-10 col-xs-12 main"><?php echo xtc_draw_textarea_field('mail_comments', 'soft', '60', '5', isset($mail_comments) ? $mail_comments : ''); ?> </div> </div> </div>