當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。