".LAN_403.""; $ns->tablerender(LAN_20, $text); require_once(FOOTERF); exit; } if (isset($_POST['upload'])) { if (($_POST['file_email'] || USER == TRUE) && $_POST['file_name'] && $_POST['file_description']) { require_once(e_HANDLER."upload_handler.php"); $uploaded = file_upload(e_FILE."public/", "unique"); $file = $uploaded[0]['name']; $filetype = $uploaded[0]['type']; $filesize = $uploaded[0]['size']; $image = $uploaded[1]['name']; $imagetype = $uploaded[1]['type']; if (!$pref['upload_maxfilesize']) { $pref['upload_maxfilesize'] = ini_get('upload_max_filesize') * 1048576; } if ($filesize > $pref['upload_maxfilesize']) { $message = LAN_405; } else { if (is_array($uploaded)) { $poster = (USER ? USERID.".".USERNAME : "0".$_POST['file_poster']); $_POST['file_email'] = ($_POST['file_email'] ? $_POST['file_email'] : USEREMAIL); $_POST['file_description'] = $tp->toDB($_POST['file_description']); $file_time = time(); $sql->db_Insert("upload", "0, '".$tp -> toDB($poster)."', '".$tp -> toDB(check_email($_POST['file_email']))."', '".$tp -> toDB($_POST['file_website'])."', '".$file_time."', '".$tp -> toDB($_POST['file_name'])."', '".$tp -> toDB($_POST['file_version'])."', '".$file."', '".$image."', '".$tp -> toDB($_POST['file_description'])."', '".$tp -> toDB($_POST['file_demo'])."', '".$filesize."', 0, '".$tp -> toDB($_POST['download_category'])."'"); $edata_fu = array("upload_user" => $poster, "upload_email" => $_POST['file_email'], "upload_name" => $tp -> toDB($_POST['file_name']),"upload_file" => $file, "upload_version" => $_POST['file_version'], "upload_description" => $tp -> toDB($_POST['file_description']), "upload_size" => $filesize, "upload_category" => $tp -> toDB($_POST['download_category']), "upload_website" => $tp -> toDB($_POST['file_website']), "upload_image" => $image, "upload_demo" => $tp -> toDB($_POST['file_demo']), "upload_time" => $file_time); $e_event->trigger("fileupload", $edata_fu); $message .= "
".LAN_404; } } } else { require_once(e_HANDLER."message_handler.php"); message_handler("ALERT", 5); } } if (isset($message)) { $ns->tablerender("", "
".$message."
"); require_once(FOOTERF); exit; } $text = "
"; if (!USER) { $text .= ""; } $text .= "
".DOWLAN_11.": "; require_once(e_FILE."shortcode/batch/download_shortcodes.php"); $dlparm = (isset($download_category)) ? $download_category : ""; $text .= $tp->parseTemplate("{DOWNLOAD_CATEGORY_SELECT={$dlparm}}",true,$download_shortcodes); $text .= "
"; $text .= "".LAN_406."
".LAN_419.":"; if (is_readable(e_ADMIN.'filetypes.php')) { $a_filetypes = trim(file_get_contents(e_ADMIN.'filetypes.php')); $a_filetypes = explode(',', $a_filetypes); foreach ($a_filetypes as $ftype) { $sa_filetypes[] = '.'.trim(str_replace('.', '', $ftype)); } $allowed_filetypes = implode(' | ', $sa_filetypes); } $text .= " ".$allowed_filetypes."
".LAN_407."
".LAN_418.($pref['upload_maxfilesize'] ? $pref['upload_maxfilesize'] : ini_get('upload_max_filesize'))."
"; $text .= "".LAN_408." ".LAN_420."
".LAN_61."
".LAN_112."
".LAN_409."
".LAN_410."
".LAN_411."
".LAN_412."
".LAN_413."
".LAN_144."
".LAN_414."
".LAN_415."
"; $ns->tablerender(LAN_417, $text); require_once(FOOTERF); ?>