示例#1
0
    }
    $subject = qa_opt('badge_email_subject');
    $body = qa_opt('badge_email_body');
    $body = preg_replace('/\\^if_post_text="([^"]*)"/', $oid ? '$1' : '', $body);
    // if post text
    $site_url = qa_opt('site_url');
    $profile_url = qa_path_html('user/' . $handle, null, $site_url);
    if ($oid) {
        $post = qa_db_read_one_assoc(qa_db_query_sub('SELECT * FROM ^posts WHERE postid=#', $oid), true);
        if ($post['parentid']) {
            $parent = qa_db_read_one_assoc(qa_db_query_sub('SELECT * FROM ^posts WHERE postid=#', $post['parentid']), true);
        }
        if (isset($parent)) {
            $anchor = urlencode(qa_anchor($post['basetype'], $oid));
            $post_title = $parent['title'];
            $post_url = qa_path_html(qa_q_request($parent['postid'], $parent['title']), null, qa_opt('site_url'), null, $anchor);
        } else {
            $post_title = $post['title'];
            $post_url = qa_path_html(qa_q_request($post['postid'], $post['title']), null, qa_opt('site_url'));
        }
    }
    $subs = array('^badge_name' => qa_opt('badge_' . $badge_slug . '_name'), '^post_title' => @$post_title, '^post_url' => @$post_url, '^profile_url' => $profile_url, '^site_url' => $site_url);
    qa_send_notification($uid, '@', $handle, $subject, $body, $subs);
}
qa_register_plugin_module('event', 'qa-priv-check.php', 'priv_check', 'Priv Check');
qa_register_plugin_module('module', 'qa-priv-admin.php', 'qa_priv_admin', 'Priv Admin');
//qa_register_plugin_module('page', 'qa-priv-page.php', 'qa_priv_page', 'Privileges');
qa_register_plugin_layer('qa-priv-layer.php', 'Priv Layer');
/*
	Omit PHP closing tag to help avoid accidental output
*/
/*
	Plugin Name: History
	Plugin URI: https://github.com/NoahY/q2a-history
	Plugin Description: Adds complete activity history list to user profile
	Plugin Version: 1.9
	Plugin Date: 2011-10-26
	Plugin Author: NoahY
	Plugin Author URI: http://www.question2answer.org/qa/user/NoahY
	Plugin License: GPLv3
	Plugin Minimum Question2Answer Version: 1.4
	Plugin Update Check URI: https://github.com/NoahY/q2a-history/raw/master/qa-plugin.php

	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')) {
    header('Location: ../../');
    exit;
}
qa_register_plugin_layer('qa-history-layer.php', 'History Layer');
qa_register_plugin_module('event', 'qa-history-check.php', 'history_check', 'History Check');
qa_register_plugin_module('module', 'qa-history-admin.php', 'history_admin', 'History Admin');
示例#3
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
*/
示例#4
0
        Plugin Author: NoahY
        Plugin Author URI: 
        Plugin License: GPLv2
        Plugin Minimum Question2Answer Version: 1.5
		Plugin Update Check URI: https://github.com/NoahY/q2a-badges/raw/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('event', 'qa-badge-check.php', 'badge_check', 'Badge Check');
qa_register_plugin_module('module', 'qa-badge-admin.php', 'qa_badge_admin', 'Badge Admin');
qa_register_plugin_module('page', 'qa-badge-page.php', 'qa_badge_page', 'Badges');
qa_register_plugin_module('widget', 'qa-badge-widget.php', 'qa_badge_widget', 'Recent Badge Widget');
qa_register_plugin_layer('qa-badge-layer.php', 'Badge Notification Layer');
qa_register_plugin_phrases('qa-badge-lang-*.php', 'badges');
function qa_badge_lang($string)
{
    return qa_lang($string);
}
function qa_get_badge_list()
{
    // badges - add to this list to add a new badge, it will be imported when you run this function.  Don't change existing slugs!
    $badges = array();
    if (!QA_FINAL_EXTERNAL_USERS) {
        $badges['verified'] = array('type' => 0);
        $badges['profiler'] = array('type' => 0);
        $badges['avatar'] = array('type' => 0);
    }
    $badges['nice_question'] = array('var' => 2, 'type' => 0);
示例#5
0
	Plugin URI: https://github.com/NoahY/q2a-admin-plus
	Plugin Update Check URI: https://raw.github.com/NoahY/q2a-admin-plus/master/qa-plugin.php
	Plugin Description: Provides admin additions
	Plugin Version: 1.8
	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);
示例#6
0
	
	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: My followers page
	Plugin URI: 
	Plugin Description: Provides page of my followers
	Plugin Version: 1.1
	Plugin Date: 2013-03-28
	Plugin Author: Question2Answer + CMSBOX
	Plugin Author URI: http://www.question2answer.org/
	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_phrases('qa-my-followers-page-lang-*.php', 'myfollowerspage');
qa_register_plugin_module('page', 'qa-my-followers-page.php', 'qa_my_followers_page', 'My Followers Page');
qa_register_plugin_layer('qa-my-followers-page-layer.php', 'My Followers Page');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#7
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: Mouseover Layer
	Plugin URI: 
	Plugin Description: Shows question content on mouse over in question lists
	Plugin Version: 1.0.1
	Plugin Date: 2011-12-06
	Plugin Author: Question2Answer
	Plugin Author URI: http://www.question2answer.org/
	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_layer('qa-mouseover-layer.php', 'Mouseover Layer');
qa_register_plugin_module('module', 'qa-mouseover-admin-form.php', 'qa_mouseover_admin_form', 'Mouseover Layer');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#8
0
<?php

/*              
        Plugin Name: Ajax Comment Form
        Plugin URI: https://github.com/NoahY/q2a-comment-ajax
        Plugin Description: Ajax comment submission form
        Plugin Version: 1.01b
        Plugin Date: 2011-08-14
        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-comment-admin.php', 'qa_ajax_comment_admin', 'Ajax Comment Admin');
qa_register_plugin_layer('qa-comment-layer.php', 'Ajax Comment Layer');
/*                              
        Omit PHP closing tag to help avoid accidental output
*/
<?php

/*
        Plugin Name: Role Markers
        Plugin URI: https://github.com/NoahY/q2a-roles
        Plugin Update Check URI: https://github.com/NoahY/q2a-roles/master/qa-plugin.php
        Plugin Description: Adds role markers to avatars and usernames
        Plugin Version: 1.1
        Plugin Date: 2011-12-29
        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_layer('qa-marker-layer.php', 'Marker Layer');
qa_register_plugin_module('module', 'qa-marker-admin.php', 'qa_marker_admin', 'Role Markers');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#10
0
	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 2
	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: OpenSearch Support
	Plugin URI:
	Plugin Description: Allows OpenSearch clients to search Q2A site directly
	Plugin Version: 1.0
	Plugin Date: 2012-08-21
	Plugin Author: Question2Answer
	Plugin Author URI: http://www.question2answer.org/
	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_layer('qa-opensearch-layer.php', 'OpenSearch Layer');
qa_register_plugin_module('page', 'qa-opensearch-page.php', 'qa_opensearch_xml', 'OpenSearch XML');
示例#11
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
*/
示例#12
0
<?php

/*              
        Plugin Name: Bookmarks
        Plugin URI: https://github.com/NoahY/q2a-bookmarks
        Plugin Description: Bookmarking
        Plugin Version: 1.0b
        Plugin Date: 2011-09-11
        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-bookmarks-admin.php', 'qa_bookmarks_admin', 'Bookmarks Admin');
qa_register_plugin_layer('qa-bookmarks-layer.php', 'Bookmarks Layer');
/*                              
        Omit PHP closing tag to help avoid accidental output
*/
示例#13
0
<?php

/*              
        Plugin Name: Smilies
        Plugin URI: https://github.com/NoahY/q2a-smilies
        Plugin Update Check URI: https://raw.github.com/NoahY/q2a-smilies/master/qa-plugin.php
        Plugin Description: Embed Smilies
        Plugin Version: 1.4
        Plugin Date: 2011-08-24
        Plugin Author: NoahY
        Plugin Author URI:                              
        Plugin License: GPLv2                           
        Plugin Minimum Question2Answer Version: 1.3
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('module', 'qa-smilies-admin.php', 'qa_smilies_admin', 'Smilies Admin');
qa_register_plugin_layer('qa-smilies-layer.php', 'Smilies Replacement Layer');
/*                              
        Omit PHP closing tag to help avoid accidental output
*/
示例#14
0
<?php

/*
	Plugin Name: Tabs Widget
	Plugin URI: https://github.com/Towhidn/Q2A-Tab-Widget
	Plugin Description: Popular & Recent questions tab
	Plugin Version: 1.1
	Plugin Date: 
	Plugin Author: QA-Themes.com
	Plugin Author URI: http://qa-themes.com/
	Plugin License: GPLv3+
	Plugin Minimum Question2Answer Version: 1.6
	Plugin Update Check URI: https://raw.github.com/Towhidn/Q2A-Tab-Widget/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_layer('qa-tabs-layer.php', 'Tabs Layer');
qa_register_plugin_module('widget', 'qa-tabs-widget.php', 'qa_tabs_widget', 'Tabs Widget');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#15
0
	Plugin Description: Markdown editor plugin for simple text-based markup
	Plugin Version: 2.3
	Plugin Date: 2012-06-14
	Plugin Author: Scott Vivian
	Plugin Author URI: http://codelair.co.uk/
	Plugin Contributors: NoahY
	Plugin License: GPLv3
	Plugin Minimum Question2Answer Version: 1.4
	Plugin Update Check URI: https://raw.github.com/svivian/q2a-markdown-editor/master/qa-plugin.php

	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')) {
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('editor', 'qa-markdown-editor.php', 'qa_markdown_editor', 'Markdown Editor');
qa_register_plugin_module('viewer', 'qa-markdown-viewer.php', 'qa_markdown_viewer', 'Markdown Viewer');
qa_register_plugin_module('event', 'qa-md-events.php', 'qa_markdown_events', 'Markdown events');
qa_register_plugin_layer('qa-md-layer.php', 'Markdown Editor layer');
示例#16
0
	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);
        }
    }
}
/*
	as published by the Free Software Foundation; either version 2
	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: Google Analytics
	Plugin URI: 
	Plugin Description: Inserts Analytics code in the <head> and can skip for admin
	Plugin Version: 1.0
	Plugin Date: 2011-03-17
	Plugin Author: Ivan
	Plugin Author URI: http://patuvame.net
	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('google-analytics-layer.php', 'Google Analytics');
qa_register_plugin_module('module', 'google-analytics-admin-form.php', 'google_analytics_admin_form', 'Google Analytics');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#18
0
		Plugin Update Check URI: https://raw.github.com/NoahY/q2a-comment-voting/master/qa-plugin.php
		Plugin Description: Vote on comments
		Plugin Version: 1.4
		Plugin Date: 2011-08-15
		Plugin Author: NoahY
		Plugin Author URI:							  
		Plugin License: GPLv2						   
		Plugin Minimum Question2Answer Version: 1.3
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('module', 'qa-comment-voting-admin.php', 'qa_comment_voting_admin', 'Comment Voting Admin');
qa_register_plugin_layer('qa-comment-voting-layer.php', 'Comment Voting Layer');
if (function_exists('qa_register_plugin_phrases')) {
    qa_register_plugin_overrides('qa-cv-overrides.php');
    qa_register_plugin_phrases('qa-cv-lang-*.php', 'comment_voting');
}
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
示例#19
0
	GNU General Public License for more details.

	More about this license: http://www.question2answer.org/license.php
*/
/*
	Plugin Name: Facebook Login
	Plugin URI: 
	Plugin Description: Allows users to log in via Facebook
	Plugin Version: 1.1.5
	Plugin Date: 2012-09-13
	Plugin Author: Question2Answer
	Plugin Author URI: http://www.question2answer.org/
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.5
	Plugin Minimum PHP Version: 5
	Plugin Update Check URI:
*/
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_module('login', 'qa-facebook-login.php', 'qa_facebook_login', 'Facebook Login');
    qa_register_plugin_module('page', 'qa-facebook-login-page.php', 'qa_facebook_login_page', 'Facebook Login Page');
    qa_register_plugin_layer('qa-facebook-layer.php', 'Facebook Login Layer');
}
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#20
0
/*
	Plugin Name: Blog Post
	Plugin URI: http://tujuane.net/websmata/qtoa/plugins/12-blog-post.html
	Plugin Description: The Blog module allows registered users to maintain an online journal, or blog. The blog entries are displayed by creation time in descending order.
	Plugin Version: 2.5
	Plugin Date: 2014-04-01
	Plugin Author: Jackson Silla
	Plugin Author URI: http://question2answer.org/qa/user/jaxila
	Plugin License: GPLv3
	Plugin Minimum Question2Answer Version: 1.5
	Plugin Update Check URI: http://tujuane.net/websmata/qtoa/plugins/12-blog-post.html
*/
if (!defined('QA_VERSION')) {
    header('Location: ../../');
    exit;
}
// language file
qa_register_plugin_phrases('qa-blog-lang-*.php', 'qa_blog_lang');
// latest articles page
qa_register_plugin_module('page', 'qa-blog.php', 'qa_blog', 'Blog Post');
// new article page
qa_register_plugin_module('page', 'qa-articles.php', 'qa_articles', 'blog');
// edit article page
qa_register_plugin_module('page', 'qa-edit.php', 'qa_edit', 'blog edit');
// users layer
qa_register_plugin_layer('qa-users-layer.php', 'Blog Post layer');
// admin
qa_register_plugin_module('module', 'qa-blog-admin.php', 'qa_blog_admin', 'Blog Admin');
/*
	Omit PHP closing tag to help avoid accidental output
*/
<?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
*/
<?php

/*
	Plugin Name: Expandable Question Lists
	Plugin URI: http://brunovandekerkhove.com
	Plugin Description: Makes question lists expandable. 
	Plugin Version: 1.0
	Plugin Date: 2015-01-27
	Plugin Author: Bruno Vandekerkhove
	Plugin Author URI: http://brunovandekerkhove.com
	Plugin License: none
	Plugin Minimum Question2Answer Version: 1.6
*/
if (!defined('QA_VERSION')) {
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('page', 'qa-eql-homepage.php', 'qa_expandable_homepage', 'Expandable Homepage');
qa_register_plugin_layer('qa-eql-layer.php', 'Expandable Question Lists Layer');
qa_register_plugin_module('module', 'qa-eql-admin.php', 'qa_eql_admin', 'Expandable Question Lists Admin');
qa_register_plugin_module('event', 'qa-eql-logger.php', 'qa_eql_logger', 'Expandable Question Lists Logger');
qa_register_plugin_overrides('qa-eql-overrides.php');
    Plugin Author URI: http://QA-Themes.com
    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;
示例#24
0
	Plugin Version: 0.2
	Plugin Date: 2011-10-15
	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-merge-layer.php', 'Merge Layer');
qa_register_plugin_module('module', 'qa-php-widget.php', 'qa_merge_admin', 'Merge Admin');
// merge button on duplicate question page (only for admin)
qa_register_plugin_layer('qa-merge-layer-ondup.php', 'Merge Button for Duplicate Question');
function qa_merge_do_merge()
{
    qa_opt('merge_question_merged', qa_post_text('merge_question_merged'));
    $from = (int) qa_post_text('merge_from');
    $to = (int) qa_post_text('merge_to');
    $titles = qa_db_read_all_assoc(qa_db_query_sub("SELECT postid,title,acount FROM ^posts WHERE postid IN (#,#)", qa_post_text('merge_from'), qa_post_text('merge_to')));
    if (count($titles) != 2) {
        $error1 = null;
        $error2 = null;
        if (empty($titles)) {
            $error1 = 'Post not found.';
            $error2 = $error1;
        } else {
            if ($titles[0]['postid'] == $from) {
                $error2 = 'Post not found.';
示例#25
0
<?php

/*              
        Plugin Name: Embed
        Plugin URI: https://github.com/NoahY/q2a-embed
        Plugin Update Check URI: https://raw.github.com/NoahY/q2a-embed/master/qa-plugin.php
        Plugin Description: Embed Video, Images and MP3 files
        Plugin Version: 1.7
        Plugin Date: 2011-07-30
        Plugin Author: NoahY
        Plugin Author URI:                              
        Plugin License: GPLv2                           
        Plugin Minimum Question2Answer Version: 1.3
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('module', 'qa-embed-admin.php', 'qa_embed_admin', 'Embed Admin');
qa_register_plugin_layer('qa-embed-layer.php', 'Embed Replacement Layer');
/*                              
        Omit PHP closing tag to help avoid accidental output
*/
示例#26
0
        Plugin Version: 2.3
        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
示例#27
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)
{
    qa_db_query_sub('UPDATE ^ra_userevent SET `read` = 1 WHERE effecteduserid=# AND event NOT IN ("u_wall_post", "u_message")', $uid);
示例#28
0
    header('Location: ../../');
    exit;
}
define('QW_CONTROL_DIR', dirname(__FILE__));
define('QW_CONTROL_ADDON_DIR', QW_CONTROL_DIR . '/addons');
define('QW_BASE_URL', get_base_url());
define('QW_CONTROL_URL', QW_BASE_URL . '/qa-plugin/ra-option-panel');
define('Q_THEME_URL', QW_BASE_URL . '/qa-theme/dude');
define('Q_THEME_DIR', QA_THEME_DIR . '/dude');
qa_register_plugin_module('event', 'inc/init.php', 'qw_init', 'QW Init');
qa_register_plugin_module('event', 'inc/cs-event-logger.php', 'qw_event_logger', 'QW Event Logger');
qa_register_plugin_module('event', 'inc/cs-user-events.php', 'qw_user_event_logger', 'QW User Event Logger');
// register plugin language
qa_register_plugin_phrases('language/dude-lang-*.php', 'dude');
qa_register_plugin_module('module', 'ra-option-admin.php', 'ra_option_admin', 'ra_theme_option');
qa_register_plugin_layer('ra-option-layer.php', 'RA Option Layer');
//load all addons
qw_load_addons();
//register addons language
if (qw_hook_exist('register_language')) {
    $lang_file_array = qw_apply_filter('register_language', array());
    if (isset($lang_file_array) && is_array($lang_file_array)) {
        foreach ($lang_file_array as $key => $file) {
            qa_register_phrases($file, $key);
        }
    }
}
function get_base_url()
{
    /* First we need to get the protocol the website is using */
    $protocol = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';
<?php

/*
	Plugin Name: Faq Page
	Plugin URI: https://github.com/NoahY/q2a-faq
	Plugin Update Check URI: https://github.com/NoahY/q2a-faq/raw/master/qa-plugin.php
	Plugin Description: Adds custom faq page
	Plugin Version: 0.3
	Plugin Date: 2011-10-20
	Plugin Author: NoahY
	Plugin Author URI: http://www.question2answer.org/
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.3
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('page', 'qa-faq-page.php', 'qa_faq_page', 'FAQ Page');
qa_register_plugin_layer('qa-faq-layer.php', 'FAQ Layer');
qa_register_plugin_module('module', 'qa-faq-admin.php', 'qa_faq_admin', 'Faq Admin');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#30
0
<?php

/*              
        Plugin Name: Close Question
        Plugin URI: https://github.com/NoahY/q2a-Close
        Plugin Description: Close questions
        Plugin Version: 1.0b
        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-close-admin.php', 'qa_close_admin', 'Close Admin');
qa_register_plugin_module('event', 'qa-close-check.php', 'close_check', 'Close Check');
qa_register_plugin_layer('qa-close-layer.php', 'Close Layer');
/*                              
        Omit PHP closing tag to help avoid accidental output
*/