本文整理汇总了PHP中messages::isNeedUseCaptcha方法的典型用法代码示例。如果您正苦于以下问题:PHP messages::isNeedUseCaptcha方法的具体用法?PHP messages::isNeedUseCaptcha怎么用?PHP messages::isNeedUseCaptcha使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类messages
的用法示例。
在下文中一共展示了messages::isNeedUseCaptcha方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trim
}
$page = trim($_GET['p']);
//phpinfo(); exit;
if ($page == 'view_attach') {
include 'view_attach.php';
exit;
}
$draft_id = intval(__paramInit('int', 'draft_id', 'draft_id'));
switch ($action) {
// case "accept_new_rules":
// splash_screens::setViewed(splash_screens::SPLASH_MESSAGES);
// header("Location: {$_GET['url']}");
// exit;
// break;
case "post_msg":
$isNeedUseCaptcha = messages::isNeedUseCaptcha(get_uid(false));
$chat_user = new users();
$chat_user->GetUser($chat_with);
if ($chat_user->is_banned && !hasPermissions('users')) {
$error_flag = 1;
$alert[3] = "Этот пользователь заблокирован. Вы не можете отправить ему личное сообщение";
}
//Разрешено ли пользователю отправлять сообщения
if (!isset($error_flag) && is_emp($chat_user->role) && !messages::isAllowed($chat_user->uid, $uid)) {
$chat_with = '';
break;
}
$msg = antispam(__paramInit('html', NULL, 'msg'));
$prjname = __paramInit('string', NULL, 'prjname');
$attachedfiles_session = __paramInit('string', NULL, 'attachedfiles_session');
//$attach = new CFile($_FILES['attach']);
示例2: messages
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/payed.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/mess_folders.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/messages.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/drafts.php";
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stop_words.php';
$stop_words = new stop_words(false);
$is_pro1 = payed::CheckPro($user->login);
$cf = new mess_folders();
$cf->from_id = get_uid();
$folders = $cf->GetAll();
$msgs = new messages();
$users_folders = $msgs->GetContactFolders(get_uid(), $dlg_user, $err);
$isNeedUseCaptcha = $msgs->isNeedUseCaptcha(get_uid(false));
if ($isNeedUseCaptcha) {
$SESSION['need_captcha_messages'] = 1;
}
if ($draft_id) {
$draft = drafts::getDraft($draft_id, get_uid(), 2);
if ($draft['msg']) {
$msg = $draft['msg'];
}
}
$userNotBeSpam = array_merge($GLOBALS['usersNotBeIgnored'], $GLOBALS['ourUserLoginsInCatalog']);
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/contacts.common.php";
$xajax->printJavascript('/xajax/');
?>
<script type="text/javascript">
<!--
var inner = false;