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


PHP projects::DeletePublicProject方法代码示例

本文整理汇总了PHP中projects::DeletePublicProject方法的典型用法代码示例。如果您正苦于以下问题:PHP projects::DeletePublicProject方法的具体用法?PHP projects::DeletePublicProject怎么用?PHP projects::DeletePublicProject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在projects的用法示例。


在下文中一共展示了projects::DeletePublicProject方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: users

             }
         }
     }
     break;
 case "warn":
     if (hasPermissions('projects')) {
         require_once ABS_PATH . "/classes/messages.php";
         require_once ABS_PATH . "/classes/users.php";
         require_once ABS_PATH . "/classes/projects.php";
         $usr = new users();
         $usr->Warn($_GET["ulogin"]);
         $threadid = intval(trim($_GET['threadid']));
         $uid = get_uid();
         //messages::SendWarn($_GET["ulogin"],$_GET['blogid'],$_GET['threadid']); - это тут не работает!
         $tprj = new projects();
         $tprj->DeletePublicProject(intval($_GET["prid"]), get_uid(), hasPermissions('projects'));
     }
     break;
 case "post_offers_filter":
     $offers_filter = new offers_filter();
     $f_category = $_POST['pf_categofy'];
     if ((int) $_POST['comboe_column_id'] === 1 && $_POST['comboe_db_id'] > 0) {
         $f_category[1][$_POST['comboe_db_id']] = 1;
     }
     if ((int) $_POST['comboe_column_id'] === 0 && $_POST['comboe_db_id'] > 0) {
         $f_category[0][$_POST['comboe_db_id']] = 0;
     }
     if ($_POST['pf_category'] && !$_POST['pf_subcategory']) {
         $f_category[0][$_POST['pf_category']] = 0;
     }
     if ($_POST['pf_subcategory']) {
开发者ID:upovod,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例2: projects

     $do_close = __paramInit('bool', null, 'do_close');
     $projects = new projects();
     if ($prj_id) {
         $error .= $projects->SwitchStatusPrj(get_uid(), $prj_id);
     }
     $location = "/users/{$name}/projects/?kind={$kind}" . ($do_close ? '&closed=1' : '');
     header("Location: {$location}");
     //перекидываем на текущую страницу, чтобы нельзя было повторить POST по F5
     exit;
     break;
 case "prj_delete":
     if (hasPermissions('projects') && $_SESSION["rand"] == $_POST["u_token_key"]) {
         $prj_id = (int) trim(__paramInit('int', 'prjid', 'prjid'));
         require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/projects.php";
         $prj = new projects();
         $prj->DeletePublicProject($prj_id, get_uid(), 1);
     }
     break;
 case "change_bn":
     if (!hasPermissions('users')) {
         break;
     }
     $emp = new employer();
     $emp->boss_note = __paramInit('string', NULL, 'boss_note', '');
     $emp->boss_rate = __paramInit('int', NULL, 'boss_rate', 0);
     $emp->update($user->uid, $res);
     unset($emp);
     header("Location: /users/{$user->login}" . ($page ? "/{$page}/" : ''));
     exit;
     break;
 case "prj_trash":
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例3: header

    exit;
}
if (!hasPermissions('projects')) {
    header("Location: /404.php");
    exit;
}
$action = trim($_GET['action']);
if (!$action) {
    $action = trim($_POST['action']);
}
$can_modify = hasPermissions('projects');
switch ($action) {
    case "delete":
        $id = trim($_GET['prjid']);
        $projects = new projects();
        $projects->DeletePublicProject($id, 0, $can_modify);
        break;
    case "edit":
        $id = trim($_GET['prjid']);
        if ($id) {
            $eprj = projects::GetPrj(0, $id, $can_modify);
        }
        break;
    case "allow":
        $id = trim($_GET['aid']);
        if ($id) {
            $error .= projects::Alow($id);
        }
        break;
    case "prj_change":
        $admin_edit = 1;
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:inner_index.php


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