clipbucket/upload/photo_upload.php

56 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2013-10-07 12:17:06 +00:00
<?php
/*
*******************************************************************
2016-06-08 23:13:17 -07:00
| Copyright (c) 2007-2016 Clip-Bucket.com. All rights reserved.
2013-10-07 12:17:06 +00:00
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
2016-06-08 23:13:17 -07:00
| @ Modified : June 9, 2016 by Saqib Razzaq
2013-10-07 12:17:06 +00:00
*******************************************************************
*/
2016-06-08 23:13:17 -07:00
define("THIS_PAGE","photo_upload");
define("PARENT_PAGE","upload");
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'])) {
2013-10-07 12:17:06 +00:00
assign('step',2);
$datas = $_POST['photoIDS'];
$moreData = explode(",",$datas);
$details = array();
2016-06-08 23:13:17 -07:00
foreach($moreData as $key=>$data) {
2013-10-07 12:17:06 +00:00
$data = str_replace(' ','',$data);
$data = $cbphoto->decode_key($data);
$details[] = $data;
}
2016-06-08 23:13:17 -07:00
2013-10-07 12:17:06 +00:00
assign('photos',$details);
2016-06-08 23:13:17 -07:00
}
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'));
//Displaying The Template
if (!isSectionEnabled('photos')) {
e("Photo are disabled the moment");
$Cbucket->show_page = false;
}
template_files('photo_upload.html');
display_it();
?>