From 460d29ff242fa9a2395ea4920f1a408e044e02f2 Mon Sep 17 00:00:00 2001 From: Saqib Razzaq Date: Wed, 8 Jun 2016 23:13:17 -0700 Subject: [PATCH] Indentation, comments updated --- upload/photo_upload.php | 67 +++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 36 deletions(-) diff --git a/upload/photo_upload.php b/upload/photo_upload.php index af9a29e3..15ad456c 100644 --- a/upload/photo_upload.php +++ b/upload/photo_upload.php @@ -1,60 +1,55 @@ logincheck(); -subtitle(lang('photos_upload')); -//pex($cbphoto->collection->get_collection($c),true); -if(isset($_GET['collection'])) -{ - $c = $cbphoto->decode_key($_GET['collection']); - assign('c',$cbphoto->collection->get_collection($c)); -} + require 'includes/config.inc.php'; + $userquery->logincheck(); + subtitle(lang('photos_upload')); + if(isset($_GET['collection'])) { + $c = $cbphoto->decode_key($_GET['collection']); + assign('c',$cbphoto->collection->get_collection($c)); + } -if(isset($_POST['EnterInfo'])) -{ + if(isset($_POST['EnterInfo'])) { assign('step',2); $datas = $_POST['photoIDS']; $moreData = explode(",",$datas); $details = array(); - foreach($moreData as $key=>$data) - { + foreach($moreData as $key=>$data) { $data = str_replace(' ','',$data); $data = $cbphoto->decode_key($data); $details[] = $data; } - //pr($details,TRUE); + assign('photos',$details); -} + } -if(isset($_POST['updatePhotos'])) -{ - assign('step',3); -} -$brace = 1; -$collections = $cbphoto->collection->get_collections(array("type"=>"photos","public_upload"=>"yes","user"=>userid()),$brace); + if(isset($_POST['updatePhotos'])) { + assign('step',3); + } + $brace = 1; + $collections = $cbphoto->collection->get_collections(array("type"=>"photos","public_upload"=>"yes","user"=>userid()),$brace); + assign('collections',$collections); + subtitle(lang('photos_upload')); -assign('collections',$collections); - -subtitle(lang('photos_upload')); + //Displaying The Template + if (!isSectionEnabled('photos')) { + e("Photo are disabled the moment"); + $Cbucket->show_page = false; + } -//Displaying The Template -if (!isSectionEnabled('photos')) { - e("Photo are disabled the moment"); - $Cbucket->show_page = false; -} -template_files('photo_upload.html'); -display_it(); -?> \ No newline at end of file + template_files('photo_upload.html'); + display_it(); + +?>