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're trying to hack this app.<br/>Developers are being notified about this.<br/>Expect Us."); } }