ruạṛ
<?php /** * Update file in 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(); /** * get cleaned values, do not set $_SESSION['passback'] */ $file_id = is_numeric_id($_POST['file_id']); $n = new file($file_id); /* * update record * includes validation */ $message = ''; if(!$n->update('upload')) { $message .= 'There was an error updating the file. Please try again.'; } /** * clean up and exit script */ getout($message); exit; ?>
cải xoăn