Index: branches/5.1.x/units/gateways/gw_classes/paybox.php =================================================================== diff -u -r13100 -r13549 --- branches/5.1.x/units/gateways/gw_classes/paybox.php (.../paybox.php) (revision 13100) +++ branches/5.1.x/units/gateways/gw_classes/paybox.php (.../paybox.php) (revision 13549) @@ -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.'