当前位置: 首页>>代码示例>>PHP>>正文


PHP upload_delete函数代码示例

本文整理汇总了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;
}
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:DoorHangers.php

示例2: upload_do_submit2

function upload_do_submit2()
{
    global $db, $current_user;
    upload_delete(array("link_id" => $_POST['id']));
    upload_save_files();
}
开发者ID:Grprashanthkumar,项目名称:ColfusionWeb,代码行数:6,代码来源:upload_main.php


注:本文中的upload_delete函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。