ruạṛ
<?php /** * Add a file to the database * @version 0.10 * @author Robert Urquhart <programmer@activatedesign.co.nz> * @package WEP-CMS * @since KPMG */ session_start(); require_once $_SERVER['DOCUMENT_ROOT'].'/admin/scripts-includes/universal.php'; $connID = connect_to_db(); /** * upload file */ $n = new file(); $message= ''; if(!$n->create('upload')) { $_SESSION['passback']['file_title'] = $n->title; $_SESSION['passback']['file_description'] = $n->description; $message .= 'There was an error adding the file. Please reselect the file and try again.'; getout($message); exit; } //else /** * clean up and exit script */ getout($message,'../files.php'); //direct to list exit; ?>
cải xoăn