示例#1
0
 public static function validateId($id)
 {
     if (!preg_match('/^[0-9]+$/', $id) || !ReportFetcher::existsId($id)) {
         throw new Exception("Data tempering detected.\n\t\t\t<br/>You&#39;re trying to hack this app.<br/>Developers are being notified about this.<br/>Expect Us.");
     }
 }