• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP qa_exit函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: qa_install_db_fail_handler

 function qa_install_db_fail_handler($type, $errno = null, $error = null, $query = null)
 {
     global $pass_failure_from_install;
     $pass_failure_type = $type;
     $pass_failure_errno = $errno;
     $pass_failure_error = $error;
     $pass_failure_query = $query;
     $pass_failure_from_install = true;
     require QA_INCLUDE_DIR . 'qa-install.php';
     qa_exit('error');
 }
开发者ID:mostafiz93,项目名称:PrintfScanf,代码行数:11,代码来源:qa-install.php


示例2: qa_page_db_fail_handler

function qa_page_db_fail_handler($type, $errno = null, $error = null, $query = null)
{
    if (qa_to_override(__FUNCTION__)) {
        $args = func_get_args();
        return qa_call_override(__FUNCTION__, $args);
    }
    $pass_failure_type = $type;
    $pass_failure_errno = $errno;
    $pass_failure_error = $error;
    $pass_failure_query = $query;
    require_once QA_INCLUDE_DIR . 'qa-install.php';
    qa_exit('error');
}
开发者ID:Trideon,项目名称:gigolo,代码行数:13,代码来源:qa-page.php


示例3: qa_feed_not_found

function qa_feed_not_found()
{
    header('HTTP/1.0 404 Not Found');
    echo qa_lang_html('misc/feed_not_found');
    qa_exit();
}
开发者ID:swuit,项目名称:swuit-q2a,代码行数:6,代码来源:qa-feed.php


示例4: qa_image_db_fail_handler

function qa_image_db_fail_handler()
{
    header('HTTP/1.1 500 Internal Server Error');
    qa_exit('error');
}
开发者ID:gogupe,项目名称:question2answer-releases,代码行数:5,代码来源:qa-image.php


示例5: qa_redirect_raw

function qa_redirect_raw($url)
{
    if (qa_to_override(__FUNCTION__)) {
        $args = func_get_args();
        return qa_call_override(__FUNCTION__, $args);
    }
    header('Location: ' . $url);
    qa_exit('redirect');
}
开发者ID:netham91,项目名称:question2answer,代码行数:9,代码来源:qa-base.php


示例6: array

        $qa_content['script_onloads'][] = array("qa_mailing_start('mailing_ok', 'domailingpause');");
    } else {
        // rudimentary non-Javascript version of mass mailing loop
        echo '<tt>';
        while (true) {
            qa_mailing_perform_step();
            $message = qa_mailing_progress_message();
            if (!isset($message)) {
                break;
            }
            echo qa_html($message) . str_repeat('    ', 1024) . "<br>\n";
            flush();
            sleep(1);
        }
        echo qa_lang_html('admin/mailing_complete') . '</tt><p><a href="' . qa_path_html('admin/mailing') . '">' . qa_lang_html('admin/admin_title') . ' - ' . qa_lang_html('admin/mailing_title') . '</a>';
        qa_exit();
    }
}
function qa_optionfield_make_select(&$optionfield, $options, $value, $default)
{
    $optionfield['type'] = 'select';
    $optionfield['options'] = $options;
    $optionfield['value'] = isset($options[qa_html($value)]) ? $options[qa_html($value)] : @$options[$default];
}
$indented = false;
foreach ($showoptions as $optionname) {
    if (empty($optionname)) {
        $indented = false;
        $qa_content['form']['fields'][] = array('type' => 'blank');
    } elseif (strpos($optionname, '/') !== false) {
        $qa_content['form']['fields'][] = array('type' => 'static', 'label' => qa_lang_html($optionname));
开发者ID:mostafiz93,项目名称:PrintfScanf,代码行数:31,代码来源:qa-page-admin-default.php


示例7: qa_ajax_db_fail_handler

function qa_ajax_db_fail_handler()
{
    echo "QA_AJAX_RESPONSE\n0\nA database error occurred.";
    qa_exit('error');
}
开发者ID:gogupe,项目名称:question2answer-releases,代码行数:5,代码来源:qa-ajax.php


示例8: qa_db_fail_error

/**
 * If a DB error occurs, call the installed fail handler (if any) otherwise report error and exit immediately.
 */
function qa_db_fail_error($type, $errno = null, $error = null, $query = null)
{
    if (qa_to_override(__FUNCTION__)) {
        $args = func_get_args();
        return qa_call_override(__FUNCTION__, $args);
    }
    global $qa_db_fail_handler;
    @error_log('PHP Question2Answer MySQL ' . $type . ' error ' . $errno . ': ' . $error . (isset($query) ? ' - Query: ' . $query : ''));
    if (function_exists($qa_db_fail_handler)) {
        $qa_db_fail_handler($type, $errno, $error, $query);
    } else {
        echo '<hr><font color="red">Database ' . htmlspecialchars($type . ' error ' . $errno) . '<p>' . nl2br(htmlspecialchars($error . "\n\n" . $query));
        qa_exit('error');
    }
}
开发者ID:ronkeizer,项目名称:question2answer,代码行数:18,代码来源:qa-db.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP qa_fatal_error函数代码示例发布时间:2022-05-15
下一篇:
PHP qa_email_validate函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap