Exemplo n.º 1
0
case "fileedit":
	check_permit_upload();

	include XOOPS_ROOT_PATH.'/header.php';
	include_once "$dir_module/class/wfsfiles.php";
	file_editform($articleid,$fileid);
	include XOOPS_ROOT_PATH.'/footer.php';
	break;

// --- file save ---
case "filesave":
	check_permit_upload();

	include_once "$dir_module/class/wfsfiles.php";
	$file = new WfsFiles($fileid);
	$file->setDownloadname($_POST['downloadname']);
	$file->setFileShowName($_POST['fileshowname']);
	$file->setFiledescript($_POST['filedescript']);
	$file->store();
	redirect_header("modify.php?articleid=".$articleid,2,_WFS_FILE_MODIFY_END);
	exit();

	break;

// --- file delete comform ---
case "filedelcomf":
	check_permit_upload();

	include_once XOOPS_ROOT_PATH.'/include/cp_functions.php';
	include_once "$dir_module/class/wfsfiles.php";