本文整理汇总了PHP中upload_delete函数的典型用法代码示例。如果您正苦于以下问题:PHP upload_delete函数的具体用法?PHP upload_delete怎么用?PHP upload_delete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了upload_delete函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_destroy
$page_name = "upload";
// Include header if "on" in config.php.
if ($head == "on") {
include "header.php";
}
session_destroy();
session_unset($_SESSION['pass_hash_upload']);
echo "<script type=\"text/javascript\">\n<!--\nvar URL = \"DoorHangers.php\"\nvar speed = {$edit_redirect}\nfunction reload() {\nlocation = URL\n}\nsetTimeout(\"reload()\", speed);\n//-->\n</script>";
echo "{$p}\n{$l_global10}\n{$p2}\n{$p}\n{$l_global11}\n{$p2}";
// Include footer if "on" in config.php.
if ($head == "on") {
include "footer.php";
}
}
switch (@$_REQUEST['cmd']) {
default:
upload1();
break;
case "upload2":
upload2(@$_POST['ftp_file'], @$_POST['upload_type'], $_POST['submit']);
break;
case "upload_delete":
upload_delete($_POST['file'], $_POST['pg']);
break;
case "upload_rename":
upload_rename($_POST['file'], $_POST['upload_newname'], $_POST['pg']);
break;
case "logout":
logout();
break;
}
示例2: upload_do_submit2
function upload_do_submit2()
{
global $db, $current_user;
upload_delete(array("link_id" => $_POST['id']));
upload_save_files();
}