clipbucket/upload/photo_upload.php

52 lines
1.3 KiB
PHP
Raw Normal View History

2010-12-15 06:53:09 +00:00
<?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");
2010-12-15 06:53:09 +00:00
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));
}
2010-12-15 06:53:09 +00:00
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);
2010-12-15 06:53:09 +00:00
$details[] = $data;
}
//pr($details,TRUE);
2010-12-15 06:53:09 +00:00
assign('photos',$details);
}
if(isset($_POST['updatePhotos']))
{
assign('step',3);
2010-12-15 06:53:09 +00:00
}
$collections = $cbphoto->collection->get_collections(array("type"=>"photos","user"=>userid()));
assign('collections',$collections);
2010-12-15 06:53:09 +00:00
subtitle(lang('photos_upload'));
//Displaying The Template
template_files('photo_upload.html');
display_it();
?>