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


PHP messages::DeleteFromUsers方法代码示例

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


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

示例1: unset

             //Если сообщение фрилансеру то разрешаем отправку сообщений обратно
             if (!is_emp($chat_user->role)) {
                 messages::setIsAllowed($uid, $chat_user->uid);
             }
             unset($msg);
             header("Location: " . $_SERVER["REQUEST_URI"]);
             exit;
         }
     }
     break;
 case "delete":
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/teams.php";
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/ignor.php";
     $selected = $_POST['selected'];
     $error = ignor::DeleteEx(get_uid(), $selected);
     $error = messages::DeleteFromUsers(get_uid(), $selected);
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/memBuff.php";
     $memBuff = new memBuff();
     $memBuff->delete("msgsCnt" . get_uid(false));
     break;
 case "addfolder":
     require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/mess_folders.php";
     $name = substr(change_q($_POST['name'], false, 64), 0, 64);
     $srch = array("'", "\"", "<", ">");
     $name = trim(str_replace($srch, "", $name));
     if (empty($name) || $name == '') {
         $error_flag = 1;
         $error = 'Не указано имя папки';
     } else {
         $newfolder = new mess_folders();
         $newfolder->fname = $name;
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例2: ChFolderInner

function ChFolderInner($folder_id, $login)
{
    session_start();
    $objResponse = new xajaxResponse();
    $folder_id = intval($folder_id);
    $user = new users();
    $user->GetUser($login);
    if (!$user->is_banned) {
        $login = addslashes($login);
        $uid = get_uid(false);
        if ($folder_id && $login && $folder_id > 0) {
            $fld = new mess_ustf();
            $fld->from_id = $uid;
            $fld->folder = $folder_id;
            $passive = $fld->Change($login);
        }
        if ($folder_id < 0) {
            if ($folder_id == -1) {
                $fld = new teams();
                $fld->user_id = $uid;
                $passive = !$fld->teamsInverseFavorites($login);
            }
            if ($folder_id == -2) {
                $fld = new ignor();
                $fld->user_id = $uid;
                require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/memBuff.php";
                $passive = !$fld->Change($login);
                $memBuff = new memBuff();
                $memBuff->delete("msgsCnt" . $uid);
                $objResponse->script("GetNewMsgCount();");
            }
            if ($folder_id == -3) {
                $passive = messages::DeleteFromUsers($login);
                $objResponse->addScrip("document.location='/contacts/';");
            }
        }
        if ($passive) {
            $objResponse->assign("folder" . $folder_id, "className", "active");
            $objResponse->assign("vfolder" . $folder_id, "className", "active");
        } else {
            $objResponse->assign("folder" . $folder_id, "className", "");
            $objResponse->assign("vfolder" . $folder_id, "className", "passive");
        }
    }
    return $objResponse;
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:46,代码来源:contacts.server.php


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