本文整理汇总了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;
示例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;
}