View Single Post
Old February 6th, 2010, 04:57 PM   #54 (permalink)
sydude
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 21
Quote:
Originally Posted by Chuck S View Post
Are you using photopost pro or vbGallery?

This is a vbGallery thread and your referencing Photopost Pro code.
vbGallery!

Here is the beginning part of flashupload.php, which part of the most recent vbGallery build, which I downloaded a couple of weeks ago:

Quote:
<?php
//////////////////////////// COPYRIGHT NOTICE //////////////////////////////
// This script is part of PhotoPost vBGallery, a software application by //
// All Enthusiast, Inc. Use of any kind of part or all of this //
// script or modification of this script requires a license from All //
// Enthusiast, Inc. Use or modification of this script without a license //
// constitutes Software Piracy and will result in legal action from All //
// Enthusiast, Inc. All rights reserved. //
// PhotoPost PHP Photo Sharing Gallery with vBulletin Forum Integration legal@photopost.com //
// //
// PhotoPost Copyright 2008, All Enthusiast, Inc. //
////////////////////////////////////////////////////////////////////////////

// ####################### SET PHP ENVIRONMENT ###########################
ini_set("memory_limit", "128M");
ini_set("max_execution_time", 0);
ini_set('post_max_size','30M');
ini_set('upload_max_filesize','30M');

error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'flashupload');
define('GET_IMGTYPE_ARRAY', true);
define('PP_SCRIPT', 'vBGallery');

// Work-around for setting up a session because Flash Player doesn't send the cookies
if (!isset($_POST["PHPSESSID"]))
{
exit;
}

if (!isset($_FILES["Filedata"]) || !is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0)
{
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: {$Globals['maindir']}/uploadphoto.php" );
exit;
}
What should I do?
sydude is offline   Reply With Quote