Index: branches/5.0.x/units/gateways/gw_classes/atosorigin.php =================================================================== diff -u -r12924 -r13262 --- branches/5.0.x/units/gateways/gw_classes/atosorigin.php (.../atosorigin.php) (revision 12924) +++ branches/5.0.x/units/gateways/gw_classes/atosorigin.php (.../atosorigin.php) (revision 13262) @@ -1,6 +1,6 @@ Application->BaseURL('/in-commerce/units/gateways/gw_classes/notify_scripts').'atosorigin_notify.php'; $txt_amount = sprintf("%.2f", $item_data['TotalAmount']); - $params['amount'] = eregi_replace("[.,]", '', $txt_amount); - $params['caddie'] = $this->Application->GetSID().','.MD5($item_data['OrderId']); + + $params['amount'] = str_replace( Array('.', ','), '', $txt_amount); + $params['caddie'] = $this->Application->GetSID() . ',' . MD5($item_data['OrderId']); $params['order_id'] = $item_data['OrderId']; $params['customer_ip_address'] = $_SERVER['REMOTE_ADDR']; $params['customer_id'] = $item_data['PortalUserId']; @@ -92,8 +93,8 @@ $ret = $rets[0]; - $ret = eregi_replace("^.*\!\!", '', $ret); - $ret = chop($ret, '!'); + $ret = preg_replace('/^(.*)!!/is', '', $ret); + $ret = rtrim($ret, '!'); return ''.$ret.'