function action() { if (!in_array($_POST['action'], $this->check_action)) { return self::re(C('error_action')); } if (!CheckHeaders::check_header()) { header("HTTP/1.0 400 Signature Inconsistent"); return self::re(C('error_sig')); } $this->OP_ADD_URL = C('OP_ADD_URL'); $this->OP_EDT_URL = C('OP_EDT_URL'); $this->SMS_URL = C('SMS_URL'); header("content-type:text/html; charset=utf-8"); return self::$_POST['action'](); }
function action() { // if (!$_POST['uid']){ // return self::re(C('emp_uid')); // } if (!in_array($_POST['action'], $this->check_action)) { return self::re(C('error_action')); } if (!CheckHeaders::check_header()) { header("HTTP/1.0 400 Signature Inconsistent"); return self::re(C('error_sig')); } header("content-type:text/html; charset=utf-8"); return self::$_POST['action'](); }