Jump to content


Corporate Sponsors


Latest News: (loading..)

akbareshghi

Member Since 19 Oct 2009
Offline Last Active Jan 26 2012, 10:13
-----

Topics I've Started

2 important problems with osc

25 January 2012, 09:38

Specifications of test machines:
Xampp 1.7.7
Windows 7
Oscommerce 2.2 with installed persian language ,Hejri date and various addons
First problem:
Deprecated: Function ereg_replace() is deprecated in C:\xampp\htdocs\2\includes\application_top.php on line 17
These codes: lines around 17
while (list($key, $value) = each($_GET)){
    $_GET[$key] = ereg_replace('[<>]', '', $value);
    unset($GLOBALS[$key]);
  }

Second problem:
Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\2\includes\functions\farsi.php on line 25
These codes: lines around 25
function tep_formathejri($date) {
  if($date == null)
    return null;
  if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $datetime)) {
    return jdate("l، d F، Y", mktime(0,0,0,$datetime[2],$datetime[3],$datetime[1]));
  } else {
    return HEJRI_ERROR;
  }
}

Please help me troubleshooting this problem
I customized the OSC commerce of eshopmaster (osCommerce STS Edition v.0.98)
Thanks for replys