Indentation, comments updated
This commit is contained in:
parent
0ae8e53ec4
commit
460d29ff24
1 changed files with 31 additions and 36 deletions
|
@ -1,60 +1,55 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
*******************************************************************
|
*******************************************************************
|
||||||
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved.
|
| Copyright (c) 2007-2016 Clip-Bucket.com. All rights reserved.
|
||||||
| @ Author : ArslanHassan
|
| @ Author : ArslanHassan
|
||||||
| @ Software : ClipBucket , © PHPBucket.com
|
| @ Software : ClipBucket , © PHPBucket.com
|
||||||
| @ Modified : June 14, 2009 by Arslan Hassan
|
| @ Modified : June 9, 2016 by Saqib Razzaq
|
||||||
*******************************************************************
|
*******************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("THIS_PAGE","photo_upload");
|
define("THIS_PAGE","photo_upload");
|
||||||
define("PARENT_PAGE","upload");
|
define("PARENT_PAGE","upload");
|
||||||
|
|
||||||
require 'includes/config.inc.php';
|
require 'includes/config.inc.php';
|
||||||
$userquery->logincheck();
|
$userquery->logincheck();
|
||||||
subtitle(lang('photos_upload'));
|
subtitle(lang('photos_upload'));
|
||||||
//pex($cbphoto->collection->get_collection($c),true);
|
if(isset($_GET['collection'])) {
|
||||||
if(isset($_GET['collection']))
|
$c = $cbphoto->decode_key($_GET['collection']);
|
||||||
{
|
assign('c',$cbphoto->collection->get_collection($c));
|
||||||
$c = $cbphoto->decode_key($_GET['collection']);
|
}
|
||||||
assign('c',$cbphoto->collection->get_collection($c));
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($_POST['EnterInfo']))
|
if(isset($_POST['EnterInfo'])) {
|
||||||
{
|
|
||||||
assign('step',2);
|
assign('step',2);
|
||||||
$datas = $_POST['photoIDS'];
|
$datas = $_POST['photoIDS'];
|
||||||
$moreData = explode(",",$datas);
|
$moreData = explode(",",$datas);
|
||||||
$details = array();
|
$details = array();
|
||||||
|
|
||||||
foreach($moreData as $key=>$data)
|
foreach($moreData as $key=>$data) {
|
||||||
{
|
|
||||||
$data = str_replace(' ','',$data);
|
$data = str_replace(' ','',$data);
|
||||||
$data = $cbphoto->decode_key($data);
|
$data = $cbphoto->decode_key($data);
|
||||||
$details[] = $data;
|
$details[] = $data;
|
||||||
}
|
}
|
||||||
//pr($details,TRUE);
|
|
||||||
assign('photos',$details);
|
assign('photos',$details);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_POST['updatePhotos']))
|
if(isset($_POST['updatePhotos'])) {
|
||||||
{
|
assign('step',3);
|
||||||
assign('step',3);
|
}
|
||||||
}
|
$brace = 1;
|
||||||
$brace = 1;
|
$collections = $cbphoto->collection->get_collections(array("type"=>"photos","public_upload"=>"yes","user"=>userid()),$brace);
|
||||||
$collections = $cbphoto->collection->get_collections(array("type"=>"photos","public_upload"=>"yes","user"=>userid()),$brace);
|
|
||||||
|
|
||||||
|
assign('collections',$collections);
|
||||||
|
subtitle(lang('photos_upload'));
|
||||||
|
|
||||||
assign('collections',$collections);
|
//Displaying The Template
|
||||||
|
if (!isSectionEnabled('photos')) {
|
||||||
subtitle(lang('photos_upload'));
|
e("Photo are disabled the moment");
|
||||||
|
$Cbucket->show_page = false;
|
||||||
|
}
|
||||||
|
|
||||||
//Displaying The Template
|
template_files('photo_upload.html');
|
||||||
if (!isSectionEnabled('photos')) {
|
display_it();
|
||||||
e("Photo are disabled the moment");
|
|
||||||
$Cbucket->show_page = false;
|
?>
|
||||||
}
|
|
||||||
template_files('photo_upload.html');
|
|
||||||
display_it();
|
|
||||||
?>
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue