diff -Naur xtcommerce.orig/account_history_info.php xtcommerce/account_history_info.php
--- xtcommerce.orig/account_history_info.php 2006-08-06 15:46:53.000000000 +0200
+++ xtcommerce/account_history_info.php 2010-08-11 14:26:13.000000000 +0200
@@ -86,7 +86,7 @@
$smarty->assign('BILLING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
$smarty->assign('BUTTON_PRINT', '');
-$from_history = eregi("page=", xtc_get_all_get_params()); // referer from account_history yes/no
+$from_history = preg_match("/page=/i", xtc_get_all_get_params()); // referer from account_history yes/no
$back_to = $from_history ? FILENAME_ACCOUNT_HISTORY : FILENAME_ACCOUNT; // if from account_history => return to account_history
$smarty->assign('BUTTON_BACK','' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '');
@@ -99,4 +99,4 @@
if (!defined(RM)) { $smarty->load_filter('output', 'note'); }
$smarty->display(CURRENT_TEMPLATE.'/index.html');
include ('includes/application_bottom.php');
-?>
\ No newline at end of file
+?>
diff -Naur xtcommerce.orig/admin/backup.php xtcommerce/admin/backup.php
--- xtcommerce.orig/admin/backup.php 2005-07-14 13:41:38.000000000 +0200
+++ xtcommerce/admin/backup.php 2010-08-10 17:56:23.000000000 +0200
@@ -51,7 +51,7 @@
if (isset($fields['Extra'])) $schema .= ' ' . $fields['Extra'];
$schema .= ',' . "\n";
}
- $schema = ereg_replace(",\n$", '', $schema);
+ $schema = preg_replace("/,\n$/", '', $schema);
// Add the keys
$index = array();
@@ -87,13 +87,13 @@
$schema_insert .= 'NULL, ';
} elseif ($rows[$i] != '') {
$row = addslashes($rows[$i]);
- $row = ereg_replace("\n#", "\n".'\#', $row);
+ $row = preg_replace("/\n#/", "\n".'\#', $row);
$schema_insert .= '\'' . $row . '\', ';
} else {
$schema_insert .= '\'\', ';
}
}
- $schema_insert = ereg_replace(', $', '', $schema_insert) . ');' . "\n";
+ $schema_insert = preg_replace('/, $/', '', $schema_insert) . ');' . "\n";
$schema .= $schema_insert;
}
$schema .= "\n";
@@ -237,7 +237,7 @@
if ($next == '') { // get the last insert query
$next = 'insert';
}
- if ( (eregi('create', $next)) || (eregi('insert', $next)) || (eregi('drop t', $next)) ) {
+ if ( (preg_match('/create/i', $next)) || (preg_match('/insert/i', $next)) || (preg_match('/drop t/i', $next)) ) {
$next = '';
$sql_array[] = substr($restore_query, 0, $i);
$restore_query = ltrim(substr($restore_query, $i+1));
@@ -487,4 +487,4 @@