Index: branches/5.0.x/units/gateways/gw_classes/paybox.php =================================================================== diff -u -r12924 -r13262 --- branches/5.0.x/units/gateways/gw_classes/paybox.php (.../paybox.php) (revision 12924) +++ branches/5.0.x/units/gateways/gw_classes/paybox.php (.../paybox.php) (revision 13262) @@ -1,6 +1,6 @@ Application->HREF($tag_params['cancel_template'],'',Array('pass'=>'m')); $txt_amount = sprintf("%.2f", $item_data['TotalAmount']); - $params['PBX_TOTAL'] = eregi_replace("[.,]", '', $txt_amount); + $params['PBX_TOTAL'] = str_replace( Array('.', ','), '', $txt_amount); $params['PBX_CMD'] = $this->Application->GetSID().','.MD5($item_data['OrderId']); /*$params['order_id'] = $item_data['OrderId']; @@ -96,8 +96,8 @@ $ret = implode("\n", $rets); - $ret = eregi_replace("^.*\!\!", '', $ret); - $ret = chop($ret, '!'); + $ret = preg_replace('/^(.*)!!/is', '', $ret); + $ret = rtrim($ret, '!'); return ''.$ret.'