當前位置: 首頁>>代碼示例>>PHP>>正文


PHP messages::isNeedUseCaptcha方法代碼示例

本文整理匯總了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']);
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:index.php

示例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;
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:dialog.php


注:本文中的messages::isNeedUseCaptcha方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。