نقل قول نوشته اصلی توسط rezaonline.net نمایش پست ها
لطف کنیذ دقیقا فایل public_html/support/modules/gateways/callback/nusoap/nusoap.php رو ویرایش کنید
شما گفتین از 904 تا 934 را پاک کنم :
کد HTML:
function timestamp_to_iso8601($timestamp,$utc=true){    $datestr = date('Y-m-d\TH:i:sO',$timestamp);    $pos = strrpos($datestr, "+");    if ($pos === FALSE) {        $pos = strrpos($datestr, "-");    }    if ($pos !== FALSE) {        if (strlen($datestr) == $pos + 5) {            $datestr = substr($datestr, 0, $pos + 3) . ':' . substr($datestr, -2);        }    }    if($utc){        $pattern = '/'.        '([0-9]{4})-'.    // centuries & years CCYY-        '([0-9]{2})-'.    // months MM-        '([0-9]{2})'.    // days DD        'T'.            // separator T        '([0-9]{2}):'.    // hours hh:        '([0-9]{2}):'.    // minutes mm:        '([0-9]{2})(\.[0-9]*)?'. // seconds ss.ss...        '(Z|[+\-][0-9]{2}:?[0-9]{2})?'. // Z to indicate UTC, -/+HH:MM:SS.SS... for local tz's        '/';
        if(preg_match($pattern,$datestr,$regs)){            return sprintf('%04d-%02d-%02dT%02d:%02d:%02dZ',$regs[1],$regs[2],$regs[3],$regs[4],$regs[5],$regs[6]);        }        return false;    } else {        return $datestr;    }}
که پاک کردم خطای زیر را داد :
کد:
Fatal error: Cannot redeclare iso8601_to_timestamp() (previously declared in /public_html/support/modules/gateways/callback/nusoap/nusoap.php:913) in /public_html/support/modules/gateways/callback/nusoap/nusoap.php on line 943
که کدهای 913 تا 943 این هست :

کد HTML:
function iso8601_to_timestamp($datestr){    $pattern = '/'.    '([0-9]{4})-'.    // centuries & years CCYY-    '([0-9]{2})-'.    // months MM-    '([0-9]{2})'.    // days DD    'T'.            // separator T    '([0-9]{2}):'.    // hours hh:    '([0-9]{2}):'.    // minutes mm:    '([0-9]{2})(\.[0-9]+)?'. // seconds ss.ss...    '(Z|[+\-][0-9]{2}:?[0-9]{2})?'. // Z to indicate UTC, -/+HH:MM:SS.SS... for local tz's    '/';    if(preg_match($pattern,$datestr,$regs)){        // not utc        if($regs[8] != 'Z'){            $op = substr($regs[8],0,1);            $h = substr($regs[8],1,2);            $m = substr($regs[8],strlen($regs[8])-2,2);            if($op == '-'){                $regs[4] = $regs[4] + $h;                $regs[5] = $regs[5] + $m;            } elseif($op == '+'){                $regs[4] = $regs[4] - $h;                $regs[5] = $regs[5] - $m;            }        }        return gmmktime($regs[4], $regs[5], $regs[6], $regs[2], $regs[3], $regs[1]);//        return strtotime("$regs[1]-$regs[2]-$regs[3] $regs[4]:$regs[5]:$regs[6]Z");    } else {        return false;    }}