Script written by Stephen Yabziz | > Date started: 1th March 2006 +-------------------------------------------------------------------------- */ /** * the user end cache callback function will be used to * modify the output a little * * return the modified output for current script */ function USER_ENDCACHE_CALLBACK($output) { $output .= << window.onload = newUploadSession(); EOF; return $output; } define("IN_PAGE",'INDEX'); define("PAGE_TITLE",'SITENAME'); include "includes/inc.php"; $baseUrl='index.php?'; if($input[logout]==1) { $user->logout(); header("location:$baseWeb/index.php"); exit; } if(strlen($input[d])) { //$upload_id = preg_replace('/[^A-Z0-9]/','',strtoupper($input[d])); //header("HTTP/1.1 301 Moved Permanently"); //header("location:$baseWeb/download.php?id=$upload_id"); //exit; } showUploadForm(); if($user->setting[show_featured_files]) { $template->assign_var('show_featured_files',$user->setting[show_featured_files]); #ListFiles('RAND()',0,0,4,4); ListFiles('time',0,0,4,4); #ListFiles('totalrated',0,0,5,5); } $load_prototype=1; $load_uploadjs=1; require_once("header.php"); $template->set_filenames(array( 'body' => 'index.body.html') ); $template->pparse('body'); include "footer.php"; ?>