Location: PHPKode > projects > Dev's CMS > devscms/admin/modules/files/edit.php
<?php


if (isset($_POST['id']))
{
	$files->edit($_POST['id'], $_POST['title'], $_POST['description']);
	header("Location: ?p=f&a=e&saved");
}
elseif (isset($_GET['saved']))
{
	$system->contentTemplate->set('saved', true);
}
else
{
	$file = $files->getById($_GET['id']);
	$system->contentTemplate->set('saved', false);
	$system->contentTemplate->set('file', $file);
	$system->contentTemplate->set('file_info', $files->getInfo($file));
}


?>
Return current item: Dev's CMS