Jump to content

My right side column disappeared


121man

Recommended Posts

I don't know why but my right hand side modules column disappeared on this custom page i created to upload files the code is :-

URL = http://www.4colourprints.com/printshop/artworksuccess.php

<?php

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/init.php');

if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1)
   $rewrited_url = __PS_BASE_URI__;

include(dirname(__FILE__).'/header.php');
$smarty->display(_PS_THEME_DIR_.'uploadstatus.tpl');

// Receiving variables
@$pfw_ip= $_SERVER['REMOTE_ADDR'];
@$front_Name = $_FILES['front']['name'];
@$front_Size = $_FILES['front']['size'];
@$front_Temp = $_FILES['front']['tmp_name'];
@$front_Mime_Type = $_FILES['front']['type'];
@$back2_Name = $_FILES['back2']['name'];
@$back2_Size = $_FILES['back2']['size'];
@$back2_Temp = $_FILES['back2']['tmp_name'];
@$back2_Mime_Type = $_FILES['back2']['type'];
@$order = $order->id_cart = intval($cart->id);

function RecursiveMkdir($path)
{
  if (!file_exists($path)) 
  { 
     RecursiveMkdir(dirname($path));
     mkdir($path, 0777);
   }
 }


// Validation
if( $front_Size == 0)
{
die("
Please enter a valid front");
}
if( $front_Size >40960000000000)
{
//delete file 
unlink($front_Temp);
die("
Please enter a valid front");
}
if( $front_Mime_Type != "application/pdf" AND $front_Mime_Type != "image/pjpeg" AND $front_Mime_Type != "image/jpeg" AND $front_Mime_Type != "image/png" AND $front_Mime_Type != "image/prs.btif" AND $front_Mime_Type != "image/tiff" )
{
unlink($front_Temp);
die("
Please select a front artwork file to upload");
}
$uploadFile = "../artwork/"."4C".$order."-".$front_Name ;
if (!is_dir(dirname($uploadFile)))
 {
   @RecursiveMkdir(dirname($uploadFile)); 
 }
else
 {
 @chmod(dirname($uploadFile), 0777);
 }
@move_uploaded_file( $front_Temp , $uploadFile); 
$front_URL = "http://www.4colourprints.com/artwork/"."4C".$order."-".$front_Name ;

if( $back2_Size == 0)
{
die("
Please select a back artwork file to upload");
}
if( $back2_Size >40960000000000)
{
//delete file 
unlink($back2_Temp);
die("
Please select a valid file format for the front artwork file");
}
if( $back2_Mime_Type != "application/pdf" AND $back2_Mime_Type != "image/pjpeg" AND $back2_Mime_Type != "image/jpeg" AND $back2_Mime_Type != "image/png" AND $back2_Mime_Type != "image/prs.btif" AND $back2_Mime_Type != "image/prs.pti" AND $back2_Mime_Type != "image/tiff" )
{
unlink($back2_Temp);
die("
Please select a valid file format for the back artwork file");
}
$uploadFile = "../artwork/"."4C".$order."-".$back2_Name ;
if (!is_dir(dirname($uploadFile)))
 {
   @RecursiveMkdir(dirname($uploadFile)); 
 }
else
 {
 @chmod(dirname($uploadFile), 0777);
 }
@move_uploaded_file( $back2_Temp , $uploadFile); 
$back2_URL = "http://www.4colourprints.com/artwork/"."4C".$order."-".$back2_Name ;

echo("
Submitted");

include(dirname(__FILE__).'/footer.php');

?>



Anyone with any insight.

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...