예제 #1
0
    Plugin License: copy lifted                           
    Plugin Minimum Question2Answer Version: 1.5
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
define('USEO_DIR', dirname(__FILE__));
define('USEO_URL', useo_get_base_url() . '/qa-plugin/q2a-ultimate-seo');
define('USEO_VERSION', 1);
require_once QA_INCLUDE_DIR . 'qa-util-string.php';
require_once USEO_DIR . '/library/functions.php';
qa_register_plugin_module('page', 'options.php', 'useo_options', 'Ultimate SEO Options');
qa_register_plugin_layer('layer.php', 'Ultimate SEO Layer');
qa_register_plugin_overrides('overrides.php');
qa_register_plugin_module('page', '/library/scalable-xml-sitemaps.php', 'useo_scalable_xml_sitemaps', 'Ultimate SEO Scalable XML Sitemaps');
qa_register_plugin_module('page', 'tag-editor-page.php', 'useo_tag_editor_page', 'Ultimate SEO Tag Description Editor');
qa_register_plugin_module('page', 'category-editor-page.php', 'useo_category_editor_page', 'Ultimate SEO Category Description Editor');
qa_register_plugin_module('widget', 'tag-widget.php', 'useo_tag_widget', 'Ultimate SEO - Tag Descriptions');
qa_register_plugin_module('widget', 'category-widget.php', 'useo_category_widget', 'Ultimate SEO - Category Descriptions');
qa_register_plugin_phrases('languages/useo-lang-*.php', 'useo');
function useo_get_base_url()
{
    /* First we need to get the protocol the website is using */
    $protocol = strtolower(substr($_SERVER["SERVER_PROTOCOL"], 0, 5)) == 'https' ? 'https://' : 'http://';
    /* returns /myproject/index.php */
    if (QA_URL_FORMAT_NEAT == 0 || strpos($_SERVER['PHP_SELF'], '/index.php/') !== false) {
        $path = strstr($_SERVER['PHP_SELF'], '/index', true);
        $directory = $path;
    } else {
예제 #2
0
	Plugin Date: 2011-08-10
	Plugin Author: NoahY
	Plugin Author URI: http://www.question2answer.org/qa/user/NoahY
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.4
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_layer('qa-admin-layer.php', 'Admin Layer');
qa_register_plugin_module('module', 'qa-php-widget.php', 'qa_admin_plus_admin', 'Admin Plus');
qa_register_plugin_module('event', 'qa-admin-check.php', 'qa_admin_plus_check', 'Admin Plus Check');
//qa_register_plugin_module('page', 'qa-admin-page.php', 'qa_admin_page', 'Options Page');
if (function_exists('qa_register_plugin_phrases')) {
    qa_register_plugin_phrases('qa-admin-lang-*.php', 'admin_plus');
    qa_register_plugin_overrides('qa-admin-overrides.php');
}
// dev dump
function qa_error_log($x)
{
    ob_start();
    var_dump($x);
    $contents = ob_get_contents();
    ob_end_clean();
    error_log($contents);
}
/*
	Omit PHP closing tag to help avoid accidental output
*/
예제 #3
0
        Plugin Date: 2011-09-05
        Plugin Author: NoahY
        Plugin Author URI:                              
        Plugin License: GPLv2                           
        Plugin Minimum Question2Answer Version: 1.5
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('module', 'qa-poll-admin.php', 'qa_poll_admin', 'Poll Admin');
qa_register_plugin_module('event', 'qa-poll-check.php', 'qa_poll_event', 'Poll Admin');
qa_register_plugin_module('page', 'qa-poll-page.php', 'qa_poll_page', 'Poll page');
qa_register_plugin_layer('qa-poll-layer.php', 'Poll Layer');
if (function_exists('qa_register_plugin_phrases')) {
    qa_register_plugin_overrides('qa-poll-overrides.php');
    qa_register_plugin_phrases('qa-poll-lang-*.php', 'polls');
}
if (!function_exists('qa_permit_check')) {
    function qa_permit_check($opt)
    {
        if (qa_opt($opt) == QA_PERMIT_POINTS) {
            return qa_get_logged_in_points() >= qa_opt($opt . '_points');
        }
        return !qa_permit_value_error(qa_opt($opt), qa_get_logged_in_userid(), qa_get_logged_in_level(), qa_get_logged_in_flags());
    }
}
/*                              
        Omit PHP closing tag to help avoid accidental output
*/
예제 #4
0
<?php

/*              
        Plugin Name: Signatures
        Plugin URI: https://github.com/NoahY/q2a-signatures
        Plugin Description: Signatures
        Plugin Version: 3.3
        Plugin Date: 2011-08-16
        Plugin Author: NoahY
        Plugin Author URI:                              
        Plugin License: GPLv2                           
        Plugin Minimum Question2Answer Version: 1.5
        Plugin Update Check URI: https://raw.github.com/NoahY/q2a-signatures/master/qa-plugin.php
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('module', 'qa-sig-admin.php', 'qa_signatures_admin', 'Signatures Admin');
qa_register_plugin_layer('qa-sig-layer.php', 'Signature Layer');
qa_register_plugin_overrides('qa-sig-overrides.php');
qa_register_plugin_phrases('qa-sig-lang-*.php', 'signature_plugin');
/*                              
        Omit PHP closing tag to help avoid accidental output
*/
예제 #5
0
        Plugin Description: Sends out a regularly scheduled newsletter with top questions and answers
        Plugin Version: 0.3
        Plugin Date: 2012-08-12
        Plugin Author: NoahY
        Plugin Author URI:                              
        Plugin License: GPLv3+                           
        Plugin Minimum Question2Answer Version: 1.5
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_layer('qa-news-layer.php', 'News Layer');
qa_register_plugin_module('module', 'qa-news-admin.php', 'qa_news_admin', 'Newsletter');
qa_register_plugin_overrides('qa-news-overrides.php');
qa_register_plugin_phrases('qa-news-lang-*.php', 'newsletter');
function qa_news_plugin_createNewsletter($send)
{
    $news = qa_opt('news_plugin_template');
    // static replacements
    $news = str_replace('[css]', qa_opt('news_plugin_css'), $news);
    $lastdate = time() - qa_opt('news_plugin_send_days') * 24 * 60 * 60;
    if (qa_opt('news_plugin_max_q') > 0) {
        $selectspec = "SELECT postid, BINARY title AS title, BINARY content AS content, format, netvotes, userid FROM ^posts WHERE type='Q' AND FROM_UNIXTIME(#) <= created AND netvotes > 0 ORDER BY netvotes DESC, created ASC LIMIT " . (int) qa_opt('news_plugin_max_q');
        $sub = qa_db_query_sub($selectspec, $lastdate);
        while (($post = qa_db_read_one_assoc($sub, true)) !== null) {
            $qcontent = '';
            if (!empty($post['content'])) {
                $viewer = qa_load_viewer($post['content'], $post['format']);
                $content = $viewer->get_html($post['content'], $post['format'], array());
예제 #6
0
	Plugin Minimum Question2Answer Version: 1.6.3
	Plugin Minimum PHP Version: 5
	Plugin Update Check URI: https://raw.github.com/alixandru/q2a-open-login/master/qa-plugin.php
*/
/*
	Based on Facebook Login plugin
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
if (!QA_FINAL_EXTERNAL_USERS) {
    // login modules don't work with external user integration
    qa_register_plugin_phrases('qa-open-lang-*.php', 'plugin_open');
    qa_register_plugin_overrides('qa-open-overrides.php');
    qa_register_plugin_layer('qa-open-layer.php', 'OAuth/OpenID Layer');
    qa_register_plugin_module('page', 'qa-open-page-logins.php', 'qa_open_logins_page', 'Open Login Configuration');
    qa_register_plugin_module('widget', 'qa-open-widget.php', 'qa_open_logins_widget', 'Open Login Providers');
    // sice we're not allowed to access the database at this step, take the information from a local file
    // note: the file providers.php will be automatically generated when the configuration of the plugin
    // is updated on the Administration page
    $providers = @(include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'providers.php');
    if ($providers) {
        // loop through all active providers and register them
        $providerList = explode(',', $providers);
        foreach ($providerList as $provider) {
            qa_register_plugin_module('login', 'qa-open-login.php', 'qa_open_login', $provider);
        }
    }
}
예제 #7
0
        Plugin Description: Makes boook from top questions and answers
        Plugin Version: 0.7
        Plugin Date: 2012-03-05
        Plugin Author: NoahY
        Plugin Author URI:                              
        Plugin License: GPLv2                           
        Plugin Minimum Question2Answer Version: 1.5
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('module', 'qa-book-admin.php', 'qa_book_admin', 'Book Export');
//qa_register_plugin_layer('qa-book-layer.php', 'Book Layer');
qa_register_plugin_overrides('qa-book-overrides.php');
qa_register_plugin_module('widget', 'qa-book-widget.php', 'qa_book_widget', 'Book Widget');
qa_register_plugin_phrases('qa-book-lang-*.php', 'book');
function qa_book_plugin_createBook($return = false)
{
    $book = qa_opt('book_plugin_template');
    // static replacements
    $book = str_replace('[css]', qa_opt('book_plugin_css'), $book);
    $book = str_replace('[front]', qa_opt('book_plugin_template_front'), $book);
    $book = str_replace('[back]', qa_opt('book_plugin_template_back'), $book);
    $iscats = qa_opt('book_plugin_cats');
    // categories
    if ($iscats) {
        $cats = qa_db_read_all_assoc(qa_db_query_sub('SELECT * FROM ^categories' . (qa_opt('book_plugin_catex') ? ' WHERE categoryid NOT IN (' . qa_opt('book_plugin_catex') . ')' : '')));
        $navcats = array();
        foreach ($cats as $cat) {
예제 #8
0
<?php

/*
	Plugin Name: XML-RPC
	Plugin URI: https://github.com/NoahY/q2a-xml-rpc
	Plugin Update Check URI: https://raw.github.com/NoahY/q2a-xml-rpc/master/qa-plugin.php
	Plugin Description: Provides xml-rpc capabilities
	Plugin Version: 0.9.3
	Plugin Date: 2013-05-21
	Plugin Author: NoahY
	Plugin Author URI: http://www.question2answer.org/qa/user/NoahY
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.5
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_layer('qa-rpc-layer.php', 'XML RPC Layer');
qa_register_plugin_module('module', 'qa-rpc-admin.php', 'qa_rpc_admin', 'XML-RPC Admin');
qa_register_plugin_overrides('qa-rpc-overrides.php');
qa_register_plugin_phrases('qa-rpc-lang-*.php', 'xmlrpc');
function qa_xml_rpc_start_server()
{
    include 'qa-xml-rpc-server.php';
}
/*
	Omit PHP closing tag to help avoid accidental output
*/
<?php

/*
	Plugin Name: Terms of Service
	Plugin URI: https://github.com/Towhidn/Q2A-Terms-of-Service
	Plugin Update Check URI: https://github.com/Towhidn/Q2A-Terms-of-Service/master/qa-plugin.php
	Plugin Description: Admin can add "Term of Service" or "Terms & Condition" to registration page
	Plugin Version: 1.0.2
	Plugin Date: 2014-02-11
	Plugin Author: QA-Themes.com
	Plugin Author URI: http://QA-Themes.com
	Plugin License: Copylefted
	Plugin Minimum Question2Answer Version: 1.6
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_layer('qa-tos-layer.php', 'TOS Layer');
qa_register_plugin_module('module', 'qa-tos-admin-form.php', 'qa_tos_admin_form', 'TOS Admin Layer');
qa_register_plugin_overrides('tos-pages.php');
/*
	Omit PHP closing tag to help avoid accidental output
*/
예제 #10
0
파일: qa-plugin.php 프로젝트: GitFuture/bmf
<?php

/*
	Plugin Name: Tag Descriptions Tutorial
	Plugin URI: 
	Plugin Description: Allows tag descriptions to be displayed as tooltips
	Plugin Version: 1.0
	Plugin Date: 2015-05-27
	Plugin Author:future
	Plugin Author URI:
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.5
	Plugin Update Check URI: 
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('widget', 'qa-tag-desc-widget.php', 'qa_tag_descriptions_widget', 'Tag Descriptions');
qa_register_plugin_module('page', 'qa-tag-desc-edit.php', 'qa_tag_descriptions_edit_page', 'Tag Description Edit Page');
qa_register_plugin_overrides('qa-tag-desc-overrides.php');
예제 #11
0
<?php

/*              
        Plugin Name: Expert Questions
        Plugin URI: https://github.com/NoahY/q2a-expert
        Plugin Update Check URI: https://raw.github.com/NoahY/q2a-expert/master/qa-plugin.php
        Plugin Description: Ask expert questions
        Plugin Version: 2.2
        Plugin Date: 2011-09-05
        Plugin Author: NoahY
        Plugin Author URI:                              
        Plugin License: GPLv2                           
        Plugin Minimum Question2Answer Version: 1.4
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('module', 'qa-expert-admin.php', 'qa_expert_question_admin', 'Expert Admin');
qa_register_plugin_module('event', 'qa-expert-check.php', 'qa_expert_question_event', 'Expert Event');
qa_register_plugin_module('page', 'qa-expert-page.php', 'qa_expert_question_page', 'Expert Questions Page');
qa_register_plugin_layer('qa-expert-layer.php', 'Expert Layer');
if (function_exists('qa_register_plugin_phrases')) {
    qa_register_plugin_overrides('qa-expert-overrides.php');
    qa_register_plugin_phrases('qa-expert-lang-*.php', 'expert_question');
}
/*                              
        Omit PHP closing tag to help avoid accidental output
*/
예제 #12
0
        return true;
    }
    if (strpos(strtolower($_SERVER['ALL_HTTP']), 'OperaMini') > 0) {
        return true;
    }
    if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows') > 0) {
        return false;
    }
    return false;
}
qa_register_plugin_module('module', 'qa-theme-admin.php', 'qa_theme_admin', 'Theme Admin');
//		qa_register_plugin_module('process', 'qa-theme-process.php', 'qa_theme_process', 'Theme Process');
qa_register_plugin_layer('qa-theme-layer.php', 'Theme Layer');
if (function_exists('qa_register_plugin_overrides')) {
    // 1.5
    qa_register_plugin_overrides('qa-theme-overrides.php');
} else {
    // 1.4
    if (qa_opt('theme_switch_enable')) {
        $this_user_theme = qa_theme_chooser();
        qa_opt('site_theme', $this_user_theme ? $this_user_theme : qa_opt('theme_switch_default'));
    } else {
        if (qa_opt('theme_switch_enable_mobile')) {
            // for mobile switching links
            require_once QA_INCLUDE_DIR . 'qa-app-users.php';
            $theme_choice = null;
            if ($userid = qa_get_logged_in_userid()) {
                $theme_choice = qa_db_read_one_value(qa_db_query_sub('SELECT meta_value FROM ^usermeta WHERE user_id=# AND meta_key=$', $userid, 'custom_theme'), true);
            } else {
                $theme_choice = @$_COOKIE['qa_theme_switch'];
                $qa_theme_switch_is_mobile = $theme_choice == qa_opt('theme_switch_mobile');
	Plugin URI: 
	Plugin Description: All files uploaded will be stored with date structure, e.g. folders 2016/10/12/blobid.jpg
	Plugin Version: 0.1
	Plugin Date: 2016-01-30
	Plugin Author: q2apro
	Plugin Author URI: http://www.q2apro.com
	Plugin License: GPLv3
	Plugin Minimum Question2Answer Version: 1.7
	Plugin Update Check URI:
	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	More about this license: http://www.gnu.org/licenses/gpl.html
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
// core function overrides
qa_register_plugin_overrides('q2apro-better-upload-folders-overrides.php');
/*
	Omit PHP closing tag to help avoid accidental output
*/
예제 #14
0
	of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	More about this license: http://www.question2answer.org/license.php
*/
/*
	Plugin Name: Email Formating
	Plugin URI: https://github.com/ruuttt/q2a-email-formating
	Plugin Description: enables you to apply html based formatting to all e-mails send out.
	Plugin Version: 1.0
	Plugin Date: 2012-12-20
	Plugin Author: Ecofys/Ruut Brandsma
	Plugin Author URI: http://www.ecofys.com/
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.5
	Plugin Update Check URI: 
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_overrides('qa-email-formating.php');
qa_register_plugin_module('module', 'qa-email-formating-admin.php', 'qa_email_formating_admin', 'E-mail formating Admin');
/*
	Omit PHP closing tag to help avoid accidental output
*/
<?php

/*
	Plugin Name: Question2Answer chinese URI conversion
	Plugin URI: https://github.com/memoryboxes/Question2Answer-chineselish-URLs
	Plugin Description: Converts all chinese locale chars to the corrensponding latin ones, thus avoiding the conversion to encoded URLs.
	Plugin Version: 1.0
	Plugin Date: 2015-02-02
	Plugin Author: memoryboxes
	Plugin Author URI: http://memoryboxes.github.io
	Plugin License: BSD2
	Plugin Minimum Question2Answer Version: 1.5
	Plugin Update Check URI:
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_overrides('qa-q-request-overrides.php');
예제 #16
0
	Class:qw_notification_layer
	Version:1.0
	Author: Rahul Aryan
	Description:For showing ajax users notification
*/
/* don't allow this page to be requested directly from browser */
if (!defined('QA_VERSION')) {
    header('Location: /');
    exit;
}
global $qa_modules;
//unset Q2A Event Notify so that we can override it
unset($qa_modules['event']['Q2A Event Notify']);
//if this is set to true , the email will be written to the log file
define('QW_SEND_EMAIL_DEBUG_MODE', FALSE);
qa_register_plugin_overrides('addons/notification/overrides.php');
$qw_notification_addon = new Qw_Notification_Addon();
qa_register_plugin_layer('addons/notification/notification-layer.php', 'QW Notification Layer');
qa_register_plugin_module('page', 'addons/notification/notification-page.php', 'qw_notification_page', 'QW Notification Page');
qa_register_plugin_module('page', 'addons/notification/notification-settings.php', 'qw_notification_setting_page', 'QW Notification Settings');
include_once QW_CONTROL_DIR . '/addons/notification/default-email-notify.php';
include_once QW_CONTROL_DIR . '/addons/notification/email-events.php';
include_once QW_CONTROL_DIR . '/addons/notification/default-email-notify.php';
require_once QW_CONTROL_DIR . '/addons/notification/functions.php';
function qw_set_notification_as_read($id)
{
    if (qa_is_logged_in()) {
        qa_db_query_sub('UPDATE ^ra_userevent SET `read` = 1 WHERE id=# AND effecteduserid=#', (int) $id, qa_get_logged_in_userid());
    }
}
function qw_set_all_activity_as_read($uid)
예제 #17
0
 Plugin Version: 0.5
 Plugin Date: 2015-07-24
 Plugin Author: Vadim Kr. bndr + sama55 + stevenev
 Plugin License: http://creativecommons.org/licenses/by-sa/3.0/legalcode
 Plugin Minimum Question2Answer Version: 1.7
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
//register a special module that resets the session flag if logging in
qa_register_plugin_module('event', 'qa-caching-event.php', 'qa_caching_session_reset_event', 'q2a Caching Plugin Session Reset Event Handler');
if (isset($_SESSION['cache_use_off'])) {
    return;
    //just get out! this is for anon users who have posted something, don't exec. any of the cache code, see event that turns this status off
}
/**
 * Include the caching for registered users
 */
include_once dirname(__FILE__) . '/qa-caching-registered.php';
/**
 * Register the plugin
 */
qa_register_plugin_module('process', 'qa-caching-main.php', 'qa_caching_main', 'q2a Caching Plugin');
qa_register_plugin_module('event', 'qa-caching-event.php', 'qa_caching_event', 'q2a Caching Plugin Event Handler');
qa_register_plugin_layer('qa-caching-layer.php', 'q2a Caching Plugin Layer');
qa_register_plugin_overrides('qa-caching-overrides.php');
/*
	Omit PHP closing tag to help avoid accidental output
*/
예제 #18
0
<?php

/*
	Plugin Name: Q2APRO User Rules Overrides
	Plugin URI: 
	Plugin Description: Set custom rules for editing
	Plugin Version: 0.1
	Plugin Date: 2015-07-16
	Plugin Author: q2apro.com
	Plugin Author URI: http://www.q2apro.com
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.6
	Plugin Update Check URI:
	Licence: Copyright © q2apro.com - All rights reserved
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
// core function overrides
qa_register_plugin_overrides('q2apro-userrules-overrides.php');
/*
	Omit PHP closing tag to help avoid accidental output
*/
예제 #19
0
/*
	Plugin Name: qa Connect
	Plugin URI: http://www.smyx.net/qa-connect.html
	Plugin Description: Allows users to log in via sina, qq, qqweibo etc.
    Plugin Version: 1.0
    Plugin Date: 2012-12-12
    Plugin Author: 水脉烟香
    Plugin Author URI: http://www.smyx.net/
    Plugin License: GPLv2
    Plugin Minimum Question2Answer Version: 1.5
    Plugin Minimum PHP Version: 5.2
    Plugin Update Check URI:
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
$zend_loader_enabled = function_exists('zend_loader_enabled');
if ($zend_loader_enabled) {
    $zend_loader_version = function_exists('zend_loader_version') ? zend_loader_version() : '';
    if (version_compare($zend_loader_version, '3.3', '>=')) {
        $php_version = version_compare(PHP_VERSION, '5.3', '>=') ? 'zend/' : '';
        if (!QA_FINAL_EXTERNAL_USERS) {
            // login modules don't work with external user integration
            qa_register_plugin_module('login', $php_version . 'qa-connect.php', 'qa_connect', 'qa Connect');
        }
        // 将所有链接的相对地址设置为绝对地址,使用社交网络头像等
        qa_register_plugin_overrides('override-function.php');
    }
}