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


PHP qa_handle_email_filter函数代码示例

本文整理汇总了PHP中qa_handle_email_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP qa_handle_email_filter函数的具体用法?PHP qa_handle_email_filter怎么用?PHP qa_handle_email_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: qa_post_text

if (qa_clicked('dosaveprofile') && !$isblocked) {
    require_once QA_INCLUDE_DIR . 'qa-app-users-edit.php';
    $inhandle = $changehandle ? qa_post_text('handle') : $useraccount['handle'];
    $inemail = qa_post_text('email');
    $inmessages = qa_post_text('messages');
    $inwallposts = qa_post_text('wall');
    $inmailings = qa_post_text('mailings');
    $inavatar = qa_post_text('avatar');
    $inprofile = array();
    foreach ($userfields as $userfield) {
        $inprofile[$userfield['fieldid']] = qa_post_text('field_' . $userfield['fieldid']);
    }
    if (!qa_check_form_security_code('account', qa_post_text('code'))) {
        $errors['page'] = qa_lang_html('misc/form_security_again');
    } else {
        $errors = qa_handle_email_filter($inhandle, $inemail, $useraccount);
        if (!isset($errors['handle'])) {
            qa_db_user_set($userid, 'handle', $inhandle);
        }
        if (!isset($errors['email'])) {
            if ($inemail != $useraccount['email']) {
                qa_db_user_set($userid, 'email', $inemail);
                qa_db_user_set_flag($userid, QA_USER_FLAGS_EMAIL_CONFIRMED, false);
                $isconfirmed = false;
                if ($doconfirms) {
                    qa_send_new_confirm($userid);
                }
            }
        }
        if (qa_opt('allow_private_messages')) {
            qa_db_user_set_flag($userid, QA_USER_FLAGS_NO_MESSAGES, !$inmessages);
开发者ID:netham91,项目名称:question2answer,代码行数:31,代码来源:qa-page-account.php

示例2: array

            if (!is_array($queries)) {
                $queries = array($queries);
            }
            foreach ($queries as $query) {
                qa_db_upgrade_query($query);
            }
        }
        $success .= 'The ' . $modulename . ' ' . $moduletype . ' module has completed database initialization.';
    }
    if (qa_clicked('super')) {
        require_once QA_INCLUDE_DIR . 'qa-db-users.php';
        require_once QA_INCLUDE_DIR . 'qa-app-users-edit.php';
        $inemail = qa_post_text('email');
        $inpassword = qa_post_text('password');
        $inhandle = qa_post_text('handle');
        $fielderrors = array_merge(qa_handle_email_filter($inhandle, $inemail), qa_password_validate($inpassword));
        if (empty($fielderrors)) {
            require_once QA_INCLUDE_DIR . 'qa-app-users.php';
            $userid = qa_create_new_user($inemail, $inpassword, $inhandle, QA_USER_LEVEL_SUPER);
            qa_set_logged_in_user($userid, $inhandle);
            qa_set_option('feedback_email', $inemail);
            $success .= "Congratulations - Your Question2Answer site is ready to go!\n\nYou are logged in as the super administrator and can start changing settings.\n\nThank you for installing Question2Answer.";
        }
    }
}
if (is_resource(qa_db_connection(false)) && !@$pass_failure_from_install) {
    $check = qa_db_check_tables();
    // see where the database is at
    switch ($check) {
        case 'none':
            if (@$pass_failure_errno == 1146) {
开发者ID:mostafiz93,项目名称:PrintfScanf,代码行数:31,代码来源:qa-install.php


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