예제 #1
0
 public static function validateId($id)
 {
     if (!preg_match('/^[0-9]+$/', $id) || !UserFetcher::existsId($id)) {
         throw new Exception('Data tempering detected. Aborting.');
     }
 }