Beispiel #1
0
 private static function getPhotoArchiveAction()
 {
     Validator::required(isset($_GET['photoID'], $_GET['password']), __METHOD__);
     $photo = new Photo($_GET['photoID']);
     $pgP = $photo->getPublic($_GET['password']);
     // Photo Download
     if ($pgP === 2) {
         // Photo Public
         $photo->getArchive();
     } else {
         // Photo Private
         Response::warning('Photo private or password incorrect!');
     }
 }
Beispiel #2
0
 private static function getPhotoArchiveAction()
 {
     Validator::required(isset($_GET['photoID']), __METHOD__);
     $photo = new Photo($_GET['photoID']);
     $photo->getArchive();
 }