/
photo_upload.php
52 lines (45 loc) · 1.27 KB
/
photo_upload.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
*******************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
| @ Modified : June 14, 2009 by Arslan Hassan
*******************************************************************
*/
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']))
{
assign('step',2);
$datas = $_POST['photoIDS'];
$moreData = explode(",",$datas);
$details = array();
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);
}
$collections = $cbphoto->collection->get_collections(array("type"=>"photos","user"=>userid()));
assign('collections',$collections);
subtitle(lang('photos_upload'));
//Displaying The Template
template_files('photo_upload.html');
display_it();
?>