diff --git a/catalog/admin/action_recorder.php b/catalog/admin/action_recorder.php
index 767be0a66..cde45af65 100644
--- a/catalog/admin/action_recorder.php
+++ b/catalog/admin/action_recorder.php
@@ -52,18 +52,18 @@
'text' => (is_object(${$modules['module']}) ? ${$modules['module']}->title : $modules['module']));
}
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'expire':
$expired_entries = 0;
- if (isset($HTTP_GET_VARS['module']) && in_array($HTTP_GET_VARS['module'], $modules_array)) {
- if (is_object(${$HTTP_GET_VARS['module']})) {
- $expired_entries += ${$HTTP_GET_VARS['module']}->expireEntries();
+ if (isset($_GET['module']) && in_array($_GET['module'], $modules_array)) {
+ if (is_object(${$_GET['module']})) {
+ $expired_entries += ${$_GET['module']}->expireEntries();
} else {
- $delete_query = tep_db_query("delete from " . TABLE_ACTION_RECORDER . " where module = '" . tep_db_input($HTTP_GET_VARS['module']) . "'");
+ $delete_query = tep_db_query("delete from " . TABLE_ACTION_RECORDER . " where module = '" . tep_db_input($_GET['module']) . "'");
$expired_entries += tep_db_affected_rows();
}
} else {
@@ -110,7 +110,7 @@
-
|
@@ -304,7 +304,7 @@ function popupImageWindow(url) {
' . TEXT_BANNERS_INSERT_NOTE . ' ' . TEXT_BANNERS_EXPIRCY_NOTE . ' ' . TEXT_BANNERS_SCHEDULE_NOTE; ?> |
- |
+ |
|
@@ -324,13 +324,13 @@ function popupImageWindow(url) {
banners_id)) {
- echo ' ' . "\n";
+ echo ' ' . "\n";
} else {
- echo ' ' . "\n";
+ echo ' ' . "\n";
}
?>
' . tep_image(DIR_WS_IMAGES . 'icon_popup.gif', 'View Banner') . ' ' . $banners['banners_title']; ?> |
@@ -350,12 +350,12 @@ function popupImageWindow(url) {
' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', 'Set Inactive', 10, 10) . '';
+ echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', 'Active', 10, 10) . ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', 'Set Inactive', 10, 10) . '';
} else {
- echo '' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', 'Set Active', 10, 10) . ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', 'Inactive', 10, 10);
+ echo '' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', 'Set Active', 10, 10) . ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', 'Inactive', 10, 10);
}
?> |
- ' . tep_image(DIR_WS_ICONS . 'statistics.gif', ICON_STATISTICS) . ' '; if (isset($bInfo) && is_object($bInfo) && ($banners['banners_id'] == $bInfo->banners_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
+ ' . tep_image(DIR_WS_ICONS . 'statistics.gif', ICON_STATISTICS) . ' '; if (isset($bInfo) && is_object($bInfo) && ($banners['banners_id'] == $bInfo->banners_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
- display_count($banners_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_BANNERS); ?> |
- display_links($banners_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?> |
+ display_count($banners_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_BANNERS); ?> |
+ display_links($banners_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?> |
|
@@ -379,17 +379,17 @@ function popupImageWindow(url) {
case 'delete':
$heading[] = array('text' => '' . $bInfo->banners_title . '');
- $contents = array('form' => tep_draw_form('banners', FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm'));
+ $contents = array('form' => tep_draw_form('banners', FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => ' ' . $bInfo->banners_title . '');
if ($bInfo->banners_image) $contents[] = array('text' => ' ' . tep_draw_checkbox_field('delete_image', 'on', true) . ' ' . TEXT_INFO_DELETE_IMAGE);
- $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $HTTP_GET_VARS['bID'])));
+ $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID'])));
break;
default:
if (is_object($bInfo)) {
$heading[] = array('text' => '' . $bInfo->banners_title . '');
- $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $bInfo->banners_id . '&action=new')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $bInfo->banners_id . '&action=delete')) . tep_draw_button(IMAGE_DETAILS, 'info', tep_href_link(FILENAME_BANNER_STATISTICS, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $bInfo->banners_id)));
+ $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id . '&action=new')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id . '&action=delete')) . tep_draw_button(IMAGE_DETAILS, 'info', tep_href_link(FILENAME_BANNER_STATISTICS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id)));
$contents[] = array('text' => ' ' . TEXT_BANNERS_DATE_ADDED . ' ' . tep_date_short($bInfo->date_added));
if ( (function_exists('imagecreate')) && ($dir_ok) && ($banner_extension) ) {
diff --git a/catalog/admin/banner_statistics.php b/catalog/admin/banner_statistics.php
index 8d5a62f4b..4931e70db 100644
--- a/catalog/admin/banner_statistics.php
+++ b/catalog/admin/banner_statistics.php
@@ -12,7 +12,7 @@
require('includes/application_top.php');
- $type = (isset($HTTP_GET_VARS['type']) ? $HTTP_GET_VARS['type'] : '');
+ $type = (isset($_GET['type']) ? $_GET['type'] : '');
$banner_extension = tep_banner_image_extension();
@@ -30,11 +30,11 @@
}
}
- $banner_query = tep_db_query("select banners_title from " . TABLE_BANNERS . " where banners_id = '" . (int)$HTTP_GET_VARS['bID'] . "'");
+ $banner_query = tep_db_query("select banners_title from " . TABLE_BANNERS . " where banners_id = '" . (int)$_GET['bID'] . "'");
$banner = tep_db_fetch_array($banner_query);
$years_array = array();
- $years_query = tep_db_query("select distinct year(banners_history_date) as banner_year from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . (int)$HTTP_GET_VARS['bID'] . "'");
+ $years_query = tep_db_query("select distinct year(banners_history_date) as banner_year from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . (int)$_GET['bID'] . "'");
while ($years = tep_db_fetch_array($years_query)) {
$years_array[] = array('id' => $years['banner_year'],
'text' => $years['banner_year']);
@@ -67,16 +67,16 @@
switch ($type) {
case 'yearly': break;
case 'monthly':
- echo TITLE_YEAR . ' ' . tep_draw_pull_down_menu('year', $years_array, (isset($HTTP_GET_VARS['year']) ? $HTTP_GET_VARS['year'] : date('Y')), 'onchange="this.form.submit();"') . '';
+ echo TITLE_YEAR . ' ' . tep_draw_pull_down_menu('year', $years_array, (isset($_GET['year']) ? $_GET['year'] : date('Y')), 'onchange="this.form.submit();"') . '';
break;
default:
case 'daily':
- echo TITLE_MONTH . ' ' . tep_draw_pull_down_menu('month', $months_array, (isset($HTTP_GET_VARS['month']) ? $HTTP_GET_VARS['month'] : date('n')), 'onchange="this.form.submit();"') . ' ' . TITLE_YEAR . ' ' . tep_draw_pull_down_menu('year', $years_array, (isset($HTTP_GET_VARS['year']) ? $HTTP_GET_VARS['year'] : date('Y')), 'onchange="this.form.submit();"') . '';
+ echo TITLE_MONTH . ' ' . tep_draw_pull_down_menu('month', $months_array, (isset($_GET['month']) ? $_GET['month'] : date('n')), 'onchange="this.form.submit();"') . ' ' . TITLE_YEAR . ' ' . tep_draw_pull_down_menu('year', $years_array, (isset($_GET['year']) ? $_GET['year'] : date('Y')), 'onchange="this.form.submit();"') . '';
break;
}
?>
-
+
|
@@ -86,7 +86,7 @@
|
- |
+ |
diff --git a/catalog/admin/cache.php b/catalog/admin/cache.php
index 7dd4f3a0c..ff91848ba 100644
--- a/catalog/admin/cache.php
+++ b/catalog/admin/cache.php
@@ -12,11 +12,11 @@
require('includes/application_top.php');
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
if (tep_not_null($action)) {
if ($action == 'reset') {
- tep_reset_cache_block($HTTP_GET_VARS['block']);
+ tep_reset_cache_block($_GET['block']);
}
tep_redirect(tep_href_link(FILENAME_CACHE));
diff --git a/catalog/admin/categories.php b/catalog/admin/categories.php
index 1b42e6048..71275cbc0 100644
--- a/catalog/admin/categories.php
+++ b/catalog/admin/categories.php
@@ -15,14 +15,14 @@
require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'setflag':
- if ( ($HTTP_GET_VARS['flag'] == '0') || ($HTTP_GET_VARS['flag'] == '1') ) {
- if (isset($HTTP_GET_VARS['pID'])) {
- tep_set_product_status($HTTP_GET_VARS['pID'], $HTTP_GET_VARS['flag']);
+ if ( ($_GET['flag'] == '0') || ($_GET['flag'] == '1') ) {
+ if (isset($_GET['pID'])) {
+ tep_set_product_status($_GET['pID'], $_GET['flag']);
}
if (USE_CACHE == 'true') {
@@ -31,12 +31,12 @@
}
}
- tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $HTTP_GET_VARS['cPath'] . '&pID=' . $HTTP_GET_VARS['pID']));
+ tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID']));
break;
case 'insert_category':
case 'update_category':
- if (isset($HTTP_POST_VARS['categories_id'])) $categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']);
- $sort_order = tep_db_prepare_input($HTTP_POST_VARS['sort_order']);
+ if (isset($_POST['categories_id'])) $categories_id = tep_db_prepare_input($_POST['categories_id']);
+ $sort_order = tep_db_prepare_input($_POST['sort_order']);
$sql_data_array = array('sort_order' => (int)$sort_order);
@@ -59,7 +59,7 @@
$languages = tep_get_languages();
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
- $categories_name_array = $HTTP_POST_VARS['categories_name'];
+ $categories_name_array = $_POST['categories_name'];
$language_id = $languages[$i]['id'];
@@ -92,8 +92,8 @@
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories_id));
break;
case 'delete_category_confirm':
- if (isset($HTTP_POST_VARS['categories_id'])) {
- $categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']);
+ if (isset($_POST['categories_id'])) {
+ $categories_id = tep_db_prepare_input($_POST['categories_id']);
$categories = tep_get_category_tree($categories_id, '', '0', '', true);
$products = array();
@@ -141,9 +141,9 @@
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath));
break;
case 'delete_product_confirm':
- if (isset($HTTP_POST_VARS['products_id']) && isset($HTTP_POST_VARS['product_categories']) && is_array($HTTP_POST_VARS['product_categories'])) {
- $product_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
- $product_categories = $HTTP_POST_VARS['product_categories'];
+ if (isset($_POST['products_id']) && isset($_POST['product_categories']) && is_array($_POST['product_categories'])) {
+ $product_id = tep_db_prepare_input($_POST['products_id']);
+ $product_categories = $_POST['product_categories'];
for ($i=0, $n=sizeof($product_categories); $i<$n; $i++) {
tep_db_query("delete from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "' and categories_id = '" . (int)$product_categories[$i] . "'");
@@ -165,9 +165,9 @@
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath));
break;
case 'move_category_confirm':
- if (isset($HTTP_POST_VARS['categories_id']) && ($HTTP_POST_VARS['categories_id'] != $HTTP_POST_VARS['move_to_category_id'])) {
- $categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']);
- $new_parent_id = tep_db_prepare_input($HTTP_POST_VARS['move_to_category_id']);
+ if (isset($_POST['categories_id']) && ($_POST['categories_id'] != $_POST['move_to_category_id'])) {
+ $categories_id = tep_db_prepare_input($_POST['categories_id']);
+ $new_parent_id = tep_db_prepare_input($_POST['move_to_category_id']);
$path = explode('_', tep_get_generated_category_path_ids($new_parent_id));
@@ -189,8 +189,8 @@
break;
case 'move_product_confirm':
- $products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
- $new_parent_id = tep_db_prepare_input($HTTP_POST_VARS['move_to_category_id']);
+ $products_id = tep_db_prepare_input($_POST['products_id']);
+ $new_parent_id = tep_db_prepare_input($_POST['move_to_category_id']);
$duplicate_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$products_id . "' and categories_id = '" . (int)$new_parent_id . "'");
$duplicate_check = tep_db_fetch_array($duplicate_check_query);
@@ -205,19 +205,19 @@
break;
case 'insert_product':
case 'update_product':
- if (isset($HTTP_GET_VARS['pID'])) $products_id = tep_db_prepare_input($HTTP_GET_VARS['pID']);
- $products_date_available = tep_db_prepare_input($HTTP_POST_VARS['products_date_available']);
+ if (isset($_GET['pID'])) $products_id = tep_db_prepare_input($_GET['pID']);
+ $products_date_available = tep_db_prepare_input($_POST['products_date_available']);
$products_date_available = (date('Y-m-d') < $products_date_available) ? $products_date_available : 'null';
- $sql_data_array = array('products_quantity' => (int)tep_db_prepare_input($HTTP_POST_VARS['products_quantity']),
- 'products_model' => tep_db_prepare_input($HTTP_POST_VARS['products_model']),
- 'products_price' => tep_db_prepare_input($HTTP_POST_VARS['products_price']),
+ $sql_data_array = array('products_quantity' => (int)tep_db_prepare_input($_POST['products_quantity']),
+ 'products_model' => tep_db_prepare_input($_POST['products_model']),
+ 'products_price' => tep_db_prepare_input($_POST['products_price']),
'products_date_available' => $products_date_available,
- 'products_weight' => (float)tep_db_prepare_input($HTTP_POST_VARS['products_weight']),
- 'products_status' => tep_db_prepare_input($HTTP_POST_VARS['products_status']),
- 'products_tax_class_id' => tep_db_prepare_input($HTTP_POST_VARS['products_tax_class_id']),
- 'manufacturers_id' => (int)tep_db_prepare_input($HTTP_POST_VARS['manufacturers_id']));
+ 'products_weight' => (float)tep_db_prepare_input($_POST['products_weight']),
+ 'products_status' => tep_db_prepare_input($_POST['products_status']),
+ 'products_tax_class_id' => tep_db_prepare_input($_POST['products_tax_class_id']),
+ 'manufacturers_id' => (int)tep_db_prepare_input($_POST['manufacturers_id']));
$products_image = new upload('products_image');
$products_image->set_destination(DIR_FS_CATALOG_IMAGES);
@@ -246,9 +246,9 @@
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
$language_id = $languages[$i]['id'];
- $sql_data_array = array('products_name' => tep_db_prepare_input($HTTP_POST_VARS['products_name'][$language_id]),
- 'products_description' => tep_db_prepare_input($HTTP_POST_VARS['products_description'][$language_id]),
- 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]));
+ $sql_data_array = array('products_name' => tep_db_prepare_input($_POST['products_name'][$language_id]),
+ 'products_description' => tep_db_prepare_input($_POST['products_description'][$language_id]),
+ 'products_url' => tep_db_prepare_input($_POST['products_url'][$language_id]));
if ($action == 'insert_product') {
$insert_sql_data = array('products_id' => $products_id,
@@ -265,12 +265,12 @@
$pi_sort_order = 0;
$piArray = array(0);
- foreach ($HTTP_POST_FILES as $key => $value) {
+ foreach ($_FILES as $key => $value) {
// Update existing large product images
if (preg_match('/^products_image_large_([0-9]+)$/', $key, $matches)) {
$pi_sort_order++;
- $sql_data_array = array('htmlcontent' => tep_db_prepare_input($HTTP_POST_VARS['products_image_htmlcontent_' . $matches[1]]),
+ $sql_data_array = array('htmlcontent' => tep_db_prepare_input($_POST['products_image_htmlcontent_' . $matches[1]]),
'sort_order' => $pi_sort_order);
$t = new upload($key);
@@ -285,7 +285,7 @@
} elseif (preg_match('/^products_image_large_new_([0-9]+)$/', $key, $matches)) {
// Insert new large product images
$sql_data_array = array('products_id' => (int)$products_id,
- 'htmlcontent' => tep_db_prepare_input($HTTP_POST_VARS['products_image_htmlcontent_new_' . $matches[1]]));
+ 'htmlcontent' => tep_db_prepare_input($_POST['products_image_htmlcontent_new_' . $matches[1]]));
$t = new upload($key);
$t->set_destination(DIR_FS_CATALOG_IMAGES);
@@ -326,11 +326,11 @@
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
break;
case 'copy_to_confirm':
- if (isset($HTTP_POST_VARS['products_id']) && isset($HTTP_POST_VARS['categories_id'])) {
- $products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
- $categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']);
+ if (isset($_POST['products_id']) && isset($_POST['categories_id'])) {
+ $products_id = tep_db_prepare_input($_POST['products_id']);
+ $categories_id = tep_db_prepare_input($_POST['categories_id']);
- if ($HTTP_POST_VARS['copy_as'] == 'link') {
+ if ($_POST['copy_as'] == 'link') {
if ($categories_id != $current_category_id) {
$check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$products_id . "' and categories_id = '" . (int)$categories_id . "'");
$check = tep_db_fetch_array($check_query);
@@ -340,7 +340,7 @@
} else {
$messageStack->add_session(ERROR_CANNOT_LINK_TO_SAME_CATEGORY, 'error');
}
- } elseif ($HTTP_POST_VARS['copy_as'] == 'duplicate') {
+ } elseif ($_POST['copy_as'] == 'duplicate') {
$product_query = tep_db_query("select products_quantity, products_model, products_image, products_price, products_date_available, products_weight, products_tax_class_id, manufacturers_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");
$product = tep_db_fetch_array($product_query);
@@ -401,8 +401,8 @@
$pInfo = new objectInfo($parameters);
- if (isset($HTTP_GET_VARS['pID']) && empty($HTTP_POST_VARS)) {
- $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");
+ if (isset($_GET['pID']) && empty($_POST)) {
+ $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$_GET['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");
$product = tep_db_fetch_array($product_query);
$pInfo->objectInfo($product);
@@ -439,7 +439,7 @@
default: $in_status = true; $out_status = false;
}
- $form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_product' : 'insert_product';
+ $form_action = (isset($_GET['pID'])) ? 'update_product' : 'insert_product';
?>
-
+
@@ -681,7 +681,7 @@ function showPiDelConfirm(piId) {
|
- products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : ''))); ?> |
+ products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : ''))); ?> |
@@ -694,7 +694,7 @@ function showPiDelConfirm(piId) {
tep_childs_in_category_count($categories['categories_id']));
$category_products = array('products_count' => tep_products_in_category_count($categories['categories_id']));
@@ -855,7 +855,7 @@ function showPiDelConfirm(piId) {
}
$products_count = 0;
- if (isset($HTTP_GET_VARS['search'])) {
+ if (isset($_GET['search'])) {
$products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . tep_db_input($search) . "%' order by pd.products_name");
} else {
$products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name");
@@ -865,9 +865,9 @@ function showPiDelConfirm(piId) {
$rows++;
// Get categories_id for product if search
- if (isset($HTTP_GET_VARS['search'])) $cPath = $products['categories_id'];
+ if (isset($_GET['search'])) $cPath = $products['categories_id'];
- if ( (!isset($HTTP_GET_VARS['pID']) && !isset($HTTP_GET_VARS['cID']) || (isset($HTTP_GET_VARS['pID']) && ($HTTP_GET_VARS['pID'] == $products['products_id']))) && !isset($pInfo) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
+ if ( (!isset($_GET['pID']) && !isset($_GET['cID']) || (isset($_GET['pID']) && ($_GET['pID'] == $products['products_id']))) && !isset($pInfo) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
// find out the rating average from customer reviews
$reviews_query = tep_db_query("select (avg(reviews_rating) / 5 * 100) as average_rating from " . TABLE_REVIEWS . " where products_id = '" . (int)$products['products_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);
@@ -912,7 +912,7 @@ function showPiDelConfirm(piId) {
|
' . TEXT_PRODUCTS . ' ' . $products_count; ?> |
- 0) echo tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link(FILENAME_CATEGORIES, $cPath_back . 'cID=' . $current_category_id)); if (!isset($HTTP_GET_VARS['search'])) echo tep_draw_button(IMAGE_NEW_CATEGORY, 'plus', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_category')) . tep_draw_button(IMAGE_NEW_PRODUCT, 'plus', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_product')); ?> |
+ 0) echo tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link(FILENAME_CATEGORIES, $cPath_back . 'cID=' . $current_category_id)); if (!isset($_GET['search'])) echo tep_draw_button(IMAGE_NEW_CATEGORY, 'plus', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_category')) . tep_draw_button(IMAGE_NEW_PRODUCT, 'plus', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=new_product')); ?> |
|
diff --git a/catalog/admin/configuration.php b/catalog/admin/configuration.php
index 92d541255..54a2ed2cf 100644
--- a/catalog/admin/configuration.php
+++ b/catalog/admin/configuration.php
@@ -12,22 +12,22 @@
require('includes/application_top.php');
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'save':
- $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']);
- $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);
+ $configuration_value = tep_db_prepare_input($_POST['configuration_value']);
+ $cID = tep_db_prepare_input($_GET['cID']);
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuration_value) . "', last_modified = now() where configuration_id = '" . (int)$cID . "'");
- tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID));
+ tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
break;
}
}
- $gID = (isset($HTTP_GET_VARS['gID'])) ? $HTTP_GET_VARS['gID'] : 1;
+ $gID = (isset($_GET['gID'])) ? $_GET['gID'] : 1;
$cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$gID . "'");
$cfg_group = tep_db_fetch_array($cfg_group_query);
@@ -72,7 +72,7 @@
$cfgValue = $configuration['configuration_value'];
}
- if ((!isset($HTTP_GET_VARS['cID']) || (isset($HTTP_GET_VARS['cID']) && ($HTTP_GET_VARS['cID'] == $configuration['configuration_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
+ if ((!isset($_GET['cID']) || (isset($_GET['cID']) && ($_GET['cID'] == $configuration['configuration_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
$cfg_extra_query = tep_db_query("select configuration_key, configuration_description, date_added, last_modified, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_id = '" . (int)$configuration['configuration_id'] . "'");
$cfg_extra = tep_db_fetch_array($cfg_extra_query);
@@ -81,14 +81,14 @@
}
if ( (isset($cInfo) && is_object($cInfo)) && ($configuration['configuration_id'] == $cInfo->configuration_id) ) {
- echo ' ' . "\n";
+ echo ' ' . "\n";
} else {
- echo ' ' . "\n";
+ echo ' ' . "\n";
}
?>
|
|
- configuration_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
+ configuration_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
configuration_value);
}
- $contents = array('form' => tep_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));
+ $contents = array('form' => tep_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => ' ' . $cInfo->configuration_title . ' ' . $cInfo->configuration_description . ' ' . $value_field);
- $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cInfo->configuration_id)));
+ $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id)));
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '' . $cInfo->configuration_title . '');
- $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit')));
+ $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit')));
$contents[] = array('text' => ' ' . $cInfo->configuration_description);
$contents[] = array('text' => ' ' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($cInfo->date_added));
if (tep_not_null($cInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($cInfo->last_modified));
diff --git a/catalog/admin/countries.php b/catalog/admin/countries.php
index b6df77daa..d61ea21d5 100644
--- a/catalog/admin/countries.php
+++ b/catalog/admin/countries.php
@@ -12,37 +12,37 @@
require('includes/application_top.php');
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'insert':
- $countries_name = tep_db_prepare_input($HTTP_POST_VARS['countries_name']);
- $countries_iso_code_2 = tep_db_prepare_input($HTTP_POST_VARS['countries_iso_code_2']);
- $countries_iso_code_3 = tep_db_prepare_input($HTTP_POST_VARS['countries_iso_code_3']);
- $address_format_id = tep_db_prepare_input($HTTP_POST_VARS['address_format_id']);
+ $countries_name = tep_db_prepare_input($_POST['countries_name']);
+ $countries_iso_code_2 = tep_db_prepare_input($_POST['countries_iso_code_2']);
+ $countries_iso_code_3 = tep_db_prepare_input($_POST['countries_iso_code_3']);
+ $address_format_id = tep_db_prepare_input($_POST['address_format_id']);
tep_db_query("insert into " . TABLE_COUNTRIES . " (countries_name, countries_iso_code_2, countries_iso_code_3, address_format_id) values ('" . tep_db_input($countries_name) . "', '" . tep_db_input($countries_iso_code_2) . "', '" . tep_db_input($countries_iso_code_3) . "', '" . (int)$address_format_id . "')");
tep_redirect(tep_href_link(FILENAME_COUNTRIES));
break;
case 'save':
- $countries_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
- $countries_name = tep_db_prepare_input($HTTP_POST_VARS['countries_name']);
- $countries_iso_code_2 = tep_db_prepare_input($HTTP_POST_VARS['countries_iso_code_2']);
- $countries_iso_code_3 = tep_db_prepare_input($HTTP_POST_VARS['countries_iso_code_3']);
- $address_format_id = tep_db_prepare_input($HTTP_POST_VARS['address_format_id']);
+ $countries_id = tep_db_prepare_input($_GET['cID']);
+ $countries_name = tep_db_prepare_input($_POST['countries_name']);
+ $countries_iso_code_2 = tep_db_prepare_input($_POST['countries_iso_code_2']);
+ $countries_iso_code_3 = tep_db_prepare_input($_POST['countries_iso_code_3']);
+ $address_format_id = tep_db_prepare_input($_POST['address_format_id']);
tep_db_query("update " . TABLE_COUNTRIES . " set countries_name = '" . tep_db_input($countries_name) . "', countries_iso_code_2 = '" . tep_db_input($countries_iso_code_2) . "', countries_iso_code_3 = '" . tep_db_input($countries_iso_code_3) . "', address_format_id = '" . (int)$address_format_id . "' where countries_id = '" . (int)$countries_id . "'");
- tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $countries_id));
+ tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $countries_id));
break;
case 'deleteconfirm':
- $countries_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
+ $countries_id = tep_db_prepare_input($_GET['cID']);
tep_db_query("delete from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$countries_id . "'");
- tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page']));
+ tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page']));
break;
}
}
@@ -70,23 +70,23 @@
countries_id)) {
- echo ' ' . "\n";
+ echo ' ' . "\n";
} else {
- echo ' ' . "\n";
+ echo ' ' . "\n";
}
?>
|
|
|
- countries_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
+ countries_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
- display_count($countries_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_COUNTRIES); ?> |
- display_links($countries_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?> |
+ display_count($countries_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_COUNTRIES); ?> |
+ display_links($countries_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?> |
- |
+ |
'' . TEXT_INFO_HEADING_NEW_COUNTRY . '');
- $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&action=insert'));
+ $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&action=insert'));
$contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_NAME . ' ' . tep_draw_input_field('countries_name'));
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . tep_draw_input_field('countries_iso_code_2'));
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_CODE_3 . ' ' . tep_draw_input_field('countries_iso_code_3'));
$contents[] = array('text' => ' ' . TEXT_INFO_ADDRESS_FORMAT . ' ' . tep_draw_pull_down_menu('address_format_id', tep_get_address_formats()));
- $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'])));
+ $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'])));
break;
case 'edit':
$heading[] = array('text' => '' . TEXT_INFO_HEADING_EDIT_COUNTRY . '');
- $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
+ $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_NAME . ' ' . tep_draw_input_field('countries_name', $cInfo->countries_name));
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . tep_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_CODE_3 . ' ' . tep_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
$contents[] = array('text' => ' ' . TEXT_INFO_ADDRESS_FORMAT . ' ' . tep_draw_pull_down_menu('address_format_id', tep_get_address_formats(), $cInfo->address_format_id));
- $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id)));
+ $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
break;
case 'delete':
$heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_COUNTRY . '');
- $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
+ $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => ' ' . $cInfo->countries_name . '');
- $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id)));
+ $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => '' . $cInfo->countries_name . '');
- $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id . '&action=delete')));
+ $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete')));
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_NAME . ' ' . $cInfo->countries_name);
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . $cInfo->countries_iso_code_2);
$contents[] = array('text' => ' ' . TEXT_INFO_COUNTRY_CODE_3 . ' ' . $cInfo->countries_iso_code_3);
diff --git a/catalog/admin/currencies.php b/catalog/admin/currencies.php
index ca04ebd31..d3ec394b8 100644
--- a/catalog/admin/currencies.php
+++ b/catalog/admin/currencies.php
@@ -15,21 +15,21 @@
require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'insert':
case 'save':
- if (isset($HTTP_GET_VARS['cID'])) $currency_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
- $title = tep_db_prepare_input($HTTP_POST_VARS['title']);
- $code = tep_db_prepare_input($HTTP_POST_VARS['code']);
- $symbol_left = tep_db_prepare_input($HTTP_POST_VARS['symbol_left']);
- $symbol_right = tep_db_prepare_input($HTTP_POST_VARS['symbol_right']);
- $decimal_point = tep_db_prepare_input($HTTP_POST_VARS['decimal_point']);
- $thousands_point = tep_db_prepare_input($HTTP_POST_VARS['thousands_point']);
- $decimal_places = tep_db_prepare_input($HTTP_POST_VARS['decimal_places']);
- $value = tep_db_prepare_input($HTTP_POST_VARS['value']);
+ if (isset($_GET['cID'])) $currency_id = tep_db_prepare_input($_GET['cID']);
+ $title = tep_db_prepare_input($_POST['title']);
+ $code = tep_db_prepare_input($_POST['code']);
+ $symbol_left = tep_db_prepare_input($_POST['symbol_left']);
+ $symbol_right = tep_db_prepare_input($_POST['symbol_right']);
+ $decimal_point = tep_db_prepare_input($_POST['decimal_point']);
+ $thousands_point = tep_db_prepare_input($_POST['thousands_point']);
+ $decimal_places = tep_db_prepare_input($_POST['decimal_places']);
+ $value = tep_db_prepare_input($_POST['value']);
$sql_data_array = array('title' => $title,
'code' => $code,
@@ -47,14 +47,14 @@
tep_db_perform(TABLE_CURRENCIES, $sql_data_array, 'update', "currencies_id = '" . (int)$currency_id . "'");
}
- if (isset($HTTP_POST_VARS['default']) && ($HTTP_POST_VARS['default'] == 'on')) {
+ if (isset($_POST['default']) && ($_POST['default'] == 'on')) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($code) . "' where configuration_key = 'DEFAULT_CURRENCY'");
}
- tep_redirect(tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $currency_id));
+ tep_redirect(tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $currency_id));
break;
case 'deleteconfirm':
- $currencies_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
+ $currencies_id = tep_db_prepare_input($_GET['cID']);
$currency_query = tep_db_query("select currencies_id from " . TABLE_CURRENCIES . " where code = '" . DEFAULT_CURRENCY . "'");
$currency = tep_db_fetch_array($currency_query);
@@ -65,7 +65,7 @@
tep_db_query("delete from " . TABLE_CURRENCIES . " where currencies_id = '" . (int)$currencies_id . "'");
- tep_redirect(tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page']));
+ tep_redirect(tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page']));
break;
case 'update':
$server_used = CURRENCY_SERVER_PRIMARY;
@@ -93,10 +93,10 @@
}
}
- tep_redirect(tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $HTTP_GET_VARS['cID']));
+ tep_redirect(tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID']));
break;
case 'delete':
- $currencies_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
+ $currencies_id = tep_db_prepare_input($_GET['cID']);
$currency_query = tep_db_query("select code from " . TABLE_CURRENCIES . " where currencies_id = '" . (int)$currencies_id . "'");
$currency = tep_db_fetch_array($currency_query);
@@ -191,17 +191,17 @@ function updateForm() {
currencies_id) ) {
- echo ' ' . "\n";
+ echo ' ' . "\n";
} else {
- echo ' ' . "\n";
+ echo ' ' . "\n";
}
if (DEFAULT_CURRENCY == $currency['code']) {
@@ -212,7 +212,7 @@ function updateForm() {
?>
|
|
- currencies_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
+ currencies_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
- display_count($currency_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_CURRENCIES); ?> |
- display_links($currency_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?> |
+ display_count($currency_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CURRENCIES); ?> |
+ display_links($currency_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?> |
- currencies_id . '&action=update')); } ?> |
- currencies_id . '&action=new')); ?> |
+ currencies_id . '&action=update')); } ?> |
+ currencies_id . '&action=new')); ?> |
'' . TEXT_INFO_HEADING_NEW_CURRENCY . '');
- $contents = array('form' => tep_draw_form('currencies', FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . (isset($cInfo) ? '&cID=' . $cInfo->currencies_id : '') . '&action=insert'));
+ $contents = array('form' => tep_draw_form('currencies', FILENAME_CURRENCIES, 'page=' . $_GET['page'] . (isset($cInfo) ? '&cID=' . $cInfo->currencies_id : '') . '&action=insert'));
$contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
$contents[] = array('text' => ' ' . tep_draw_pull_down_menu('cs', $currency_select_array, '', 'onchange="updateForm();"'));
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_TITLE . ' ' . tep_draw_input_field('title'));
@@ -256,12 +256,12 @@ function updateForm() {
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_DECIMAL_PLACES . ' ' . tep_draw_input_field('decimal_places'));
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_VALUE . ' ' . tep_draw_input_field('value'));
$contents[] = array('text' => ' ' . tep_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT);
- $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $HTTP_GET_VARS['cID'])));
+ $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID'])));
break;
case 'edit':
$heading[] = array('text' => '' . TEXT_INFO_HEADING_EDIT_CURRENCY . '');
- $contents = array('form' => tep_draw_form('currencies', FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->currencies_id . '&action=save'));
+ $contents = array('form' => tep_draw_form('currencies', FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_TITLE . ' ' . tep_draw_input_field('title', $cInfo->title));
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_CODE . ' ' . tep_draw_input_field('code', $cInfo->code));
@@ -272,20 +272,20 @@ function updateForm() {
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_DECIMAL_PLACES . ' ' . tep_draw_input_field('decimal_places', $cInfo->decimal_places));
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_VALUE . ' ' . tep_draw_input_field('value', $cInfo->value));
if (DEFAULT_CURRENCY != $cInfo->code) $contents[] = array('text' => ' ' . tep_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT);
- $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->currencies_id)));
+ $contents[] = array('align' => 'center', 'text' => ' ' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id)));
break;
case 'delete':
$heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_CURRENCY . '');
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => ' ' . $cInfo->title . '');
- $contents[] = array('align' => 'center', 'text' => ' ' . (($remove_currency) ? tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm'), 'primary') : '') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->currencies_id)));
+ $contents[] = array('align' => 'center', 'text' => ' ' . (($remove_currency) ? tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm'), 'primary') : '') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id)));
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => '' . $cInfo->title . '');
- $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete')));
+ $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete')));
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_TITLE . ' ' . $cInfo->title);
$contents[] = array('text' => TEXT_INFO_CURRENCY_CODE . ' ' . $cInfo->code);
$contents[] = array('text' => ' ' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . ' ' . $cInfo->symbol_left);
diff --git a/catalog/admin/customers.php b/catalog/admin/customers.php
index 3f51ffaa2..35c298344 100644
--- a/catalog/admin/customers.php
+++ b/catalog/admin/customers.php
@@ -12,7 +12,7 @@
require('includes/application_top.php');
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
$error = false;
$processed = false;
@@ -20,27 +20,27 @@
if (tep_not_null($action)) {
switch ($action) {
case 'update':
- $customers_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
- $customers_firstname = tep_db_prepare_input($HTTP_POST_VARS['customers_firstname']);
- $customers_lastname = tep_db_prepare_input($HTTP_POST_VARS['customers_lastname']);
- $customers_email_address = tep_db_prepare_input($HTTP_POST_VARS['customers_email_address']);
- $customers_telephone = tep_db_prepare_input($HTTP_POST_VARS['customers_telephone']);
- $customers_fax = tep_db_prepare_input($HTTP_POST_VARS['customers_fax']);
- $customers_newsletter = tep_db_prepare_input($HTTP_POST_VARS['customers_newsletter']);
-
- $customers_gender = tep_db_prepare_input($HTTP_POST_VARS['customers_gender']);
- $customers_dob = tep_db_prepare_input($HTTP_POST_VARS['customers_dob']);
-
- $default_address_id = tep_db_prepare_input($HTTP_POST_VARS['default_address_id']);
- $entry_street_address = tep_db_prepare_input($HTTP_POST_VARS['entry_street_address']);
- $entry_suburb = tep_db_prepare_input($HTTP_POST_VARS['entry_suburb']);
- $entry_postcode = tep_db_prepare_input($HTTP_POST_VARS['entry_postcode']);
- $entry_city = tep_db_prepare_input($HTTP_POST_VARS['entry_city']);
- $entry_country_id = tep_db_prepare_input($HTTP_POST_VARS['entry_country_id']);
-
- $entry_company = tep_db_prepare_input($HTTP_POST_VARS['entry_company']);
- $entry_state = tep_db_prepare_input($HTTP_POST_VARS['entry_state']);
- if (isset($HTTP_POST_VARS['entry_zone_id'])) $entry_zone_id = tep_db_prepare_input($HTTP_POST_VARS['entry_zone_id']);
+ $customers_id = tep_db_prepare_input($_GET['cID']);
+ $customers_firstname = tep_db_prepare_input($_POST['customers_firstname']);
+ $customers_lastname = tep_db_prepare_input($_POST['customers_lastname']);
+ $customers_email_address = tep_db_prepare_input($_POST['customers_email_address']);
+ $customers_telephone = tep_db_prepare_input($_POST['customers_telephone']);
+ $customers_fax = tep_db_prepare_input($_POST['customers_fax']);
+ $customers_newsletter = tep_db_prepare_input($_POST['customers_newsletter']);
+
+ $customers_gender = tep_db_prepare_input($_POST['customers_gender']);
+ $customers_dob = tep_db_prepare_input($_POST['customers_dob']);
+
+ $default_address_id = tep_db_prepare_input($_POST['default_address_id']);
+ $entry_street_address = tep_db_prepare_input($_POST['entry_street_address']);
+ $entry_suburb = tep_db_prepare_input($_POST['entry_suburb']);
+ $entry_postcode = tep_db_prepare_input($_POST['entry_postcode']);
+ $entry_city = tep_db_prepare_input($_POST['entry_city']);
+ $entry_country_id = tep_db_prepare_input($_POST['entry_country_id']);
+
+ $entry_company = tep_db_prepare_input($_POST['entry_company']);
+ $entry_state = tep_db_prepare_input($_POST['entry_state']);
+ if (isset($_POST['entry_zone_id'])) $entry_zone_id = tep_db_prepare_input($_POST['entry_zone_id']);
if (strlen($customers_firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
$error = true;
@@ -192,15 +192,15 @@
tep_redirect(tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $customers_id));
} else if ($error == true) {
- $cInfo = new objectInfo($HTTP_POST_VARS);
+ $cInfo = new objectInfo($_POST);
$processed = true;
}
break;
case 'deleteconfirm':
- $customers_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
+ $customers_id = tep_db_prepare_input($_GET['cID']);
- if (isset($HTTP_POST_VARS['delete_reviews']) && ($HTTP_POST_VARS['delete_reviews'] == 'on')) {
+ if (isset($_POST['delete_reviews']) && ($_POST['delete_reviews'] == 'on')) {
$reviews_query = tep_db_query("select reviews_id from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers_id . "'");
while ($reviews = tep_db_fetch_array($reviews_query)) {
tep_db_query("delete from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$reviews['reviews_id'] . "'");
@@ -222,7 +222,7 @@
break;
default:
if ($action != 'confirm') {
- $customers_query = tep_db_query("select c.customers_id, c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_dob, c.customers_email_address, a.entry_company, a.entry_street_address, a.entry_suburb, a.entry_postcode, a.entry_city, a.entry_state, a.entry_zone_id, a.entry_country_id, c.customers_telephone, c.customers_fax, c.customers_newsletter, c.customers_default_address_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_default_address_id = a.address_book_id where a.customers_id = c.customers_id and c.customers_id = '" . (int)$HTTP_GET_VARS['cID'] . "'");
+ $customers_query = tep_db_query("select c.customers_id, c.customers_gender, c.customers_firstname, c.customers_lastname, c.customers_dob, c.customers_email_address, a.entry_company, a.entry_street_address, a.entry_suburb, a.entry_postcode, a.entry_city, a.entry_state, a.entry_zone_id, a.entry_country_id, c.customers_telephone, c.customers_fax, c.customers_newsletter, c.customers_default_address_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_default_address_id = a.address_book_id where a.customers_id = c.customers_id and c.customers_id = '" . (int)$_GET['cID'] . "'");
$customers = tep_db_fetch_array($customers_query);
$cInfo = new objectInfo($customers);
}
@@ -687,18 +687,18 @@ function check_form() {
- display_count($customers_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_CUSTOMERS); ?> |
- display_links($customers_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y', 'cID'))); ?> |
+ display_count($customers_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CUSTOMERS); ?> |
+ display_links($customers_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y', 'cID'))); ?> |
|
diff --git a/catalog/admin/database_tables.php b/catalog/admin/database_tables.php
index 6a57ddcd5..25dcbb936 100644
--- a/catalog/admin/database_tables.php
+++ b/catalog/admin/database_tables.php
@@ -42,19 +42,19 @@ function tep_dt_get_tables() {
array('id' => 'utf8',
'text' => ACTION_UTF8_CONVERSION));
- if ( isset($HTTP_POST_VARS['action']) ) {
- if ( in_array($HTTP_POST_VARS['action'], array('check', 'analyze', 'optimize', 'repair', 'utf8')) ) {
- if ( isset($HTTP_POST_VARS['id']) && is_array($HTTP_POST_VARS['id']) && !empty($HTTP_POST_VARS['id']) ) {
+ if ( isset($_POST['action']) ) {
+ if ( in_array($_POST['action'], array('check', 'analyze', 'optimize', 'repair', 'utf8')) ) {
+ if ( isset($_POST['id']) && is_array($_POST['id']) && !empty($_POST['id']) ) {
$tables = tep_dt_get_tables();
- foreach ( $HTTP_POST_VARS['id'] as $key => $value ) {
+ foreach ( $_POST['id'] as $key => $value ) {
if ( !in_array($value, $tables) ) {
- unset($HTTP_POST_VARS['id'][$key]);
+ unset($_POST['id'][$key]);
}
}
- if ( !empty($HTTP_POST_VARS['id']) ) {
- $action = $HTTP_POST_VARS['action'];
+ if ( !empty($_POST['id']) ) {
+ $action = $_POST['action'];
}
}
}
@@ -74,7 +74,7 @@ function tep_dt_get_tables() {
$table_data = array();
- foreach ( $HTTP_POST_VARS['id'] as $table ) {
+ foreach ( $_POST['id'] as $table ) {
$current_table = null;
$sql_query = tep_db_query($action . " table " . $table);
@@ -82,7 +82,7 @@ function tep_dt_get_tables() {
$table_data[] = array(($table != $current_table) ? tep_output_string_protected($table) : '',
tep_output_string_protected($sql['Msg_type']),
tep_output_string_protected($sql['Msg_text']),
- ($table != $current_table) ? tep_draw_checkbox_field('id[]', $table, isset($HTTP_POST_VARS['id']) && in_array($table, $HTTP_POST_VARS['id'])) : '');
+ ($table != $current_table) ? tep_draw_checkbox_field('id[]', $table, isset($_POST['id']) && in_array($table, $_POST['id'])) : '');
$current_table = $table;
}
@@ -93,12 +93,12 @@ function tep_dt_get_tables() {
case 'utf8':
$charset_pass = false;
- if ( isset($HTTP_POST_VARS['from_charset']) ) {
- if ( $HTTP_POST_VARS['from_charset'] == 'auto' ) {
+ if ( isset($_POST['from_charset']) ) {
+ if ( $_POST['from_charset'] == 'auto' ) {
$charset_pass = true;
} else {
foreach ( $mysql_charsets as $c ) {
- if ( $HTTP_POST_VARS['from_charset'] == $c['id'] ) {
+ if ( $_POST['from_charset'] == $c['id'] ) {
$charset_pass = true;
break;
}
@@ -112,7 +112,7 @@ function tep_dt_get_tables() {
tep_set_time_limit(0);
- if ( isset($HTTP_POST_VARS['dryrun']) ) {
+ if ( isset($_POST['dryrun']) ) {
$table_headers = array(TABLE_HEADING_QUERIES);
} else {
$table_headers = array(TABLE_HEADING_TABLE,
@@ -122,7 +122,7 @@ function tep_dt_get_tables() {
$table_data = array();
- foreach ( $HTTP_POST_VARS['id'] as $table ) {
+ foreach ( $_POST['id'] as $table ) {
$result = 'OK';
$queries = array();
@@ -130,10 +130,10 @@ function tep_dt_get_tables() {
$cols_query = tep_db_query("show full columns from " . $table);
while ( $cols = tep_db_fetch_array($cols_query) ) {
if ( !empty($cols['Collation']) ) {
- if ( $HTTP_POST_VARS['from_charset'] == 'auto' ) {
+ if ( $_POST['from_charset'] == 'auto' ) {
$old_charset = substr($cols['Collation'], 0, strpos($cols['Collation'], '_'));
} else {
- $old_charset = $HTTP_POST_VARS['from_charset'];
+ $old_charset = $_POST['from_charset'];
}
$queries[] = "update " . $table . " set " . $cols['Field'] . " = convert(binary convert(" . $cols['Field'] . " using " . $old_charset . ") using utf8) where char_length(" . $cols['Field'] . ") = length(convert(binary convert(" . $cols['Field'] . " using " . $old_charset . ") using utf8))";
@@ -142,7 +142,7 @@ function tep_dt_get_tables() {
$query = "alter table " . $table . " convert to character set utf8 collate utf8_unicode_ci";
- if ( isset($HTTP_POST_VARS['dryrun']) ) {
+ if ( isset($_POST['dryrun']) ) {
$table_data[] = array($query);
foreach ( $queries as $q ) {
@@ -162,7 +162,7 @@ function tep_dt_get_tables() {
}
}
- if ( !isset($HTTP_POST_VARS['dryrun']) ) {
+ if ( !isset($_POST['dryrun']) ) {
$table_data[] = array(tep_output_string_protected($table),
tep_output_string_protected($result),
tep_draw_checkbox_field('id[]', $table, true));
@@ -232,7 +232,7 @@ function tep_dt_get_tables() {
diff --git a/catalog/admin/define_language.php b/catalog/admin/define_language.php
index 3a4dc9e8d..2c9cd0072 100644
--- a/catalog/admin/define_language.php
+++ b/catalog/admin/define_language.php
@@ -42,44 +42,44 @@ function tep_opendir($path) {
return $result;
}
- if (!isset($HTTP_GET_VARS['lngdir'])) $HTTP_GET_VARS['lngdir'] = $language;
+ if (!isset($_GET['lngdir'])) $_GET['lngdir'] = $language;
$languages_array = array();
$languages = tep_get_languages();
$lng_exists = false;
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
- if ($languages[$i]['directory'] == $HTTP_GET_VARS['lngdir']) $lng_exists = true;
+ if ($languages[$i]['directory'] == $_GET['lngdir']) $lng_exists = true;
$languages_array[] = array('id' => $languages[$i]['directory'],
'text' => $languages[$i]['name']);
}
- if (!$lng_exists) $HTTP_GET_VARS['lngdir'] = $language;
+ if (!$lng_exists) $_GET['lngdir'] = $language;
- if (isset($HTTP_GET_VARS['filename'])) {
- $file_edit = realpath(DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename']);
+ if (isset($_GET['filename'])) {
+ $file_edit = realpath(DIR_FS_CATALOG_LANGUAGES . $_GET['filename']);
if (substr($file_edit, 0, strlen(DIR_FS_CATALOG_LANGUAGES)) != DIR_FS_CATALOG_LANGUAGES) {
- tep_redirect(tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir']));
+ tep_redirect(tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $_GET['lngdir']));
}
}
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'save':
- if (isset($HTTP_GET_VARS['lngdir']) && isset($HTTP_GET_VARS['filename'])) {
- $file = DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['filename'];
+ if (isset($_GET['lngdir']) && isset($_GET['filename'])) {
+ $file = DIR_FS_CATALOG_LANGUAGES . $_GET['filename'];
if (file_exists($file) && tep_is_writable($file)) {
$new_file = fopen($file, 'w');
- $file_contents = stripslashes($HTTP_POST_VARS['file_contents']);
+ $file_contents = stripslashes($_POST['file_contents']);
fwrite($new_file, $file_contents, strlen($file_contents));
fclose($new_file);
}
- tep_redirect(tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir']));
+ tep_redirect(tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $_GET['lngdir']));
}
break;
}
@@ -94,15 +94,15 @@ function tep_opendir($path) {
|
|
|
- |
+ |
|
-
+
- |
+ |
|
@@ -129,7 +129,7 @@ function tep_opendir($path) {
|
- |
+ |
|
@@ -149,12 +149,12 @@ function tep_opendir($path) {
|
- |
+ |
@@ -165,17 +165,17 @@ function tep_opendir($path) {
|
- |
+ |
|
|
' .
- ' ' . substr($filename, strlen($HTTP_GET_VARS['lngdir'] . '/')) . ' | ' .
+ ' ' . substr($filename, strlen($_GET['lngdir'] . '/')) . ' | ' .
' ' . tep_image(DIR_WS_IMAGES . 'icons/' . (($file['writable'] == true) ? 'tick.gif' : 'cross.gif')) . ' | ' .
' ' . $file['last_modified'] . ' | ' .
' ';
diff --git a/catalog/admin/ext/modules/payment/moneybookers/activation.php b/catalog/admin/ext/modules/payment/moneybookers/activation.php
index ea002b63b..36d7db399 100644
--- a/catalog/admin/ext/modules/payment/moneybookers/activation.php
+++ b/catalog/admin/ext/modules/payment/moneybookers/activation.php
@@ -15,13 +15,13 @@
require('../includes/languages/' . $language . '/modules/payment/moneybookers.php');
require('../includes/modules/payment/moneybookers.php');
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
+ $action = (isset($_GET['action']) ? $_GET['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 = $mb->sendTransactionToGateway('https://www.moneybookers.com/app/email_check.pl', 'email=' . $_POST['mb_email'] . '&cust_id=2167348&password=281f2d9f44066eab75db5afb063952b1');
$result = explode(',', $result, 2);
if ( (sizeof($result) == 2) && ($result[0] == 'OK') ) {
@@ -29,12 +29,12 @@
$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 E-Mail Address: ' . $_POST['mb_email'] . "\n" .
'Moneybookers Customer ID: ' . $result[1] . "\n" .
'Store URL: ' . tep_catalog_href_link() . "\n" .
'Language: ' . $language . "\n";
- tep_mail('', 'ecommerce@moneybookers.com', 'Quick Checkout Account Activation', $email_body, '', $HTTP_POST_VARS['mb_email']);
+ tep_mail('', 'ecommerce@moneybookers.com', 'Quick Checkout Account Activation', $email_body, '', $_POST['mb_email']);
}
break;
@@ -78,7 +78,7 @@
?>
-
';
- $global_button = tep_draw_button(BUTTON_GLOBAL, 'circle-triangle-n', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=confirm&global=true'), 'primary');
+ $global_button = tep_draw_button(BUTTON_GLOBAL, 'circle-triangle-n', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true'), 'primary');
- $cancel_button = tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']));
+ $cancel_button = tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']));
- $choose_audience_string .= ' | | |