示例#1
0
	Plugin License: GPLv2
	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);
        }
    }
示例#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 Minimum Question2Answer Version: 1.6
	Plugin Update Check URI: 
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
define('IT_DIR', dirname(__FILE__));
define('IT_URL', it_get_base_url() . '/qa-plugin/Infinity-Plugin');
define('IT_THEME_URL', it_get_base_url() . '/qa-theme/Infinity-Theme');
define('IT_THEME_DIR', QA_THEME_DIR . '/Infinity-Theme');
define('IT_VERSION', 1);
require_once IT_DIR . '/functions.php';
// register plugin language
qa_register_plugin_phrases('language/it-lang-*.php', 'Infinity');
qa_register_plugin_module('page', 'options.php', 'it_options', 'Infinity Options');
qa_register_plugin_overrides('overrides.php');
qa_register_plugin_layer('it-layer.php', 'Infinity Plugin Layer');
qa_register_plugin_module('event', 'it-event.php', 'it_event', 'Infinity Plugin Event');
qa_register_plugin_module('process', 'it-process.php', 'it_process', 'Infinity Plugin Process');
function it_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 {
        $path = $_SERVER['PHP_SELF'];
示例#4
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
*/
示例#5
0
        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);
    $badges['good_question'] = array('var' => 5, 'type' => 1);
	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: Example Page
	Plugin URI: 
	Plugin Description: Example of page plugin
	Plugin Version: 1.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_module('page', 'qa-example-page.php', 'qa_example_page', 'Example Page');
qa_register_plugin_phrases('qa-example-lang-*.php', 'example_page');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#7
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
*/
	Plugin Author URI: http://www.q2apro.com/
	Plugin License: GPLv3
	Plugin Minimum Question2Answer Version: 1.6
	Plugin Update Check URI: https://raw.githubusercontent.com/q2apro/q2apro-on-site-notifications/master/qa-plugin.php
	
	This program is free software. You can redistribute and modify it 
	under the terms of the GNU General Public License.
	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;
}
// language file
qa_register_plugin_phrases('q2apro-onsitenotifications-lang-*.php', 'q2apro_onsitenotifications_lang');
// page for ajax
qa_register_plugin_module('page', 'q2apro-onsitenotifications-page.php', 'q2apro_onsitenotifications_page', 'On-Site-Notifications Page');
// layer
qa_register_plugin_layer('q2apro-onsitenotifications-layer.php', 'q2apro On-Site-Notifications Layer');
// admin
qa_register_plugin_module('module', 'q2apro-onsitenotifications-admin.php', 'q2apro_onsitenotifications_admin', 'q2apro On-Site-Notifications Admin');
// track events
qa_register_plugin_module('event', 'q2apro-history-check.php', 'q2apro_history_check', 'Q2APRO History Check Mod');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#9
0
	More about this license: http://www.question2answer.org/license.php
*/
/*
	Plugin Name: Q2A Breadcrumbs
	Plugin URI: https://github.com/amiyasahu/q2a-breadcrumbs
	Plugin Description: Provides a basic widget for displaying breadcrumbs 
	Plugin Version: 1.2
	Plugin Date: 2014-07-06
	Plugin Author: Amiya Sahu
	Plugin Author URI: http://www.amiyasahu.com/
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.6
	Plugin Update Check URI: https://raw.githubusercontent.com/amiyasahu/q2a-breadcrumbs/master/qa-plugin.php
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
define('AMI_BREADCRUMBS_DIR', dirname(__FILE__));
define('AMI_BREADCRUMBS_FOLDER', basename(dirname(__FILE__)));
require_once AMI_BREADCRUMBS_DIR . "/qa-breadcrumbs-utils.php";
require_once AMI_BREADCRUMBS_DIR . '/qa-breadcrumbs-admin.php';
qa_register_plugin_layer('qa-breadcrumbs-layer.php', 'Breadcrumbs Layer');
qa_register_plugin_module('module', 'qa-breadcrumbs-admin.php', 'q2a_breadcrumbs_admin', 'Breadcrumbs');
qa_register_plugin_module('widget', 'qa-breadcrumbs-widget.php', 'q2a_breadcrumbs_widget', 'Breadcrumbs');
qa_register_plugin_phrases('lang/qa-breadcrumbs-lang-*.php', 'breadcrumbs');
/*
	Omit PHP closing tag to help avoid accidental output
*/
        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());
            }
示例#11
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: Facebook Like Box
    Plugin URI: https://github.com/amiyasahu/q2a-facebook-like-box
    Plugin Description: Provides a basic widget for displaying Facebook Like Box
    Plugin Version: 1.2.1
    Plugin Date: 2015-07-26
    Plugin Author: Amiya Sahu
    Plugin Author URI: http://www.amiyasahu.com/
    Plugin License: GPLv2
    Plugin Minimum Question2Answer Version: 1.6
    Plugin Update Check URI: https://raw.githubusercontent.com/amiyasahu/q2a-facebook-like-box/master/qa-plugin.php
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
define('AMI_FB_LIKE_BOX_DIR', dirname(__FILE__));
qa_register_plugin_module('module', 'qa-facebook-like-box-admin.php', 'qa_facebook_like_box_admin', 'Facebook LikeBox Admin');
qa_register_plugin_module('widget', 'qa-facebook-like-box.php', 'q2a_facebook_like_box', 'Facebok Like Box');
qa_register_plugin_phrases('qa-flb-lang-*.php', 'flb_like_box');
/*
    Omit PHP closing tag to help avoid accidental output
*/
        Plugin Date: 2015-03-14
        Plugin Author: Bruno Vandekerkhove
        Plugin Author URI: http://brunovandekerkhove.com                          
        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-cp-admin.php', 'qa_cp_admin', 'Community Posts Admin');
qa_register_plugin_module('event', 'qa-cp-check.php', 'qa_cp_event', 'Community Posts Admin');
qa_register_plugin_module('page', 'qa-cp-page.php', 'qa_cp_page', 'Community Posts Page');
qa_register_plugin_layer('qa-cp-layer.php', 'Community Posts Layer');
if (function_exists('qa_register_plugin_phrases')) {
    qa_register_plugin_overrides('qa-cp-overrides.php');
    qa_register_plugin_phrases('qa-cp-lang-*.php', 'cp');
}
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
*/
示例#13
0
	Plugin Version: 2.3.2
	Plugin Date: 2015-07-30
	Plugin Author: Scott Vivian
	Plugin Author URI: http://codelair.com/
	Plugin Contributors: NoahY
	Plugin License: GPLv3
	Plugin Minimum Question2Answer Version: 1.5
	Plugin Minimum PHP Version: 5.2
	Plugin Update Check URI: https://raw.githubusercontent.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')) {
    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');
qa_register_plugin_phrases('qa-md-lang-*.php', 'markdown');
	Plugin License: GPLv2
	Plugin Minimum Question2Answer Version: 1.5
	
	
	File: qa-plugin/open-questions/qa-plugin.php
	Version: 1.0
	Description: Initializes the "Open Questions" plugin


	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
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
qa_register_plugin_module('page', 'qa-open-questions.php', 'qa_open_qustions', 'Open Questions');
qa_register_plugin_phrases('qa-open-questions-lang-*.php', 'open_questions');
/*
	Omit PHP closing tag to help avoid accidental output
*/
示例#15
0
		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
*/
/*
	Plugin Name: User Activity Plus
	Plugin URI: https://github.com/svivian/q2a-user-activity-plus
	Plugin Description: Shows all questions and answers of a user
	Plugin Version: 1.0
	Plugin Date: 2011-08-23
	Plugin Author: Scott Vivian
	Plugin Author URI: http://codelair.co.uk/
	Plugin License: GPLv3
	Plugin Minimum Question2Answer Version: 1.4

	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('page', 'qa-user-activity.php', 'qa_user_activity', 'User Activity Plus');
qa_register_plugin_layer('qa-uact-layer.php', 'User Activity Layer');
qa_register_plugin_phrases('qa-uact-lang-*.php', 'useractivity');
示例#17
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: Q2A Delete Hidden Posts
        Plugin URI: https://github.com/amiyasahu/q2a-delete-hidden-posts
        Plugin Update Check URI: https://raw.github.com/amiyasahu/q2a-delete-hidden-posts/master/qa-plugin.php
        Plugin Description: To All Delete Hidden Posts with dependencies
        Plugin Version: 1.1
        Plugin Date: 2015-05-30
        Plugin Author: Amiya Sahu
        Plugin Author URI: http://amiyasahu.com
        Plugin License: GPLv2
        Plugin Minimum Question2Answer Version: 1.6
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
/*global variable declaration */
$ami_dhp_posts_deleted = array();
@define('AMI_DHP_DIR', dirname(__FILE__));
@define('AMI_DHP_DIR_NAME', basename(dirname(__FILE__)));
require_once AMI_DHP_DIR . '/qa-dhp-utils.php';
require_once AMI_DHP_DIR . '/qa-dhp-admin.php';
qa_register_plugin_module('module', 'qa-dhp-admin.php', 'qa_dhp_admin', 'Delete Hidden Posts Admin');
qa_register_plugin_layer('qa-dhp-layer.php', 'Delete Hidden Posts Layer');
qa_register_plugin_phrases('lang/qa-dhp-lang-*.php', 'ami_dhp');
/*
    Omit PHP closing tag to help avoid accidental output
*/
示例#19
0
    Plugin Name: Donut theme Admin Panel
    Plugin URI: https://github.com/amiyasahu/Donut/
    Plugin Description: Provides customization support for Donut theme
    Plugin Version: 1.6.3
    Plugin Date: 2015-10-25
    Plugin Author: Amiya Sahu
    Plugin Author URI: http://www.amiyasahu.com/
    Plugin License: GPLv2
    Plugin Minimum Question2Answer Version: 1.6
    Plugin Update Check URI: https://github.com/amiyasahu/Donut/blob/master/qa-plugin/Donut-admin/metadata.json
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    exit;
}
//Define global constants
@define('DONUT_ADMIN_PLUGIN_DIR', dirname(__FILE__));
@define('DONUT_ADMIN_PLUGIN_FOLDER', basename(dirname(__FILE__)));
@define('DONUT_CURR_DB_VERSION', 1);
//Helps in updating new mandatory options
require_once DONUT_ADMIN_PLUGIN_DIR . '/functions.php';
require_once DONUT_ADMIN_PLUGIN_DIR . '/admin/options.php';
require_once DONUT_ADMIN_PLUGIN_DIR . '/admin/admin-routing.php';
//register override module
qa_register_plugin_overrides('overrides/overrides.php');
qa_register_plugin_phrases('lang/donut-lang-*.php', 'donut');
qa_register_plugin_phrases('lang/donut-options-lang-*.php', 'donut_options');
qa_register_plugin_module('event', 'install/install.php', 'donut_theme_install', 'Donut theme Installation Module');
/*
    Omit PHP closing tag to help avoid accidental output
*/
<?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
*/
示例#21
0
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    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()
{
示例#22
0
<?php

/*
 Plugin Name: Offline caching
 Plugin URI: https://github.com/sama55/q2a-caching
 Plugin Description: Cache offline pages
 Plugin Version: 1.0
 Plugin Date: 2015-08-08
 Plugin Author: sama55 (Original: Vadim Kr. bndr)
 Plugin License: http://creativecommons.org/licenses/by-sa/3.0/legalcode
 Plugin Minimum Question2Answer Version: 1.6
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
/**
 * Register the plugin
 */
qa_register_plugin_phrases('lang/qa-caching-lang-*.php', 'qa_caching');
qa_register_plugin_module('module', 'qa-caching-admin.php', 'qa_caching', 'Q2A Caching 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');
<?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
*/
        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) {
            $navcats[$cat['categoryid']] = $cat;
        }
    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 {
        $path = $_SERVER['PHP_SELF'];
        $path_parts = pathinfo($path);
        $directory = $path_parts['dirname'];
        $directory = $directory == "/" ? "" : $directory;
    }
    $directory = $directory == "\\" ? "" : $directory;
	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;
}
// language file
qa_register_plugin_phrases('q2apro-popular-questions-lang-*.php', 'q2apro_popularqu_lang');
// widget
qa_register_plugin_module('widget', 'q2apro-popular-questions-widget.php', 'q2apro_popular_questions_widget', 'q2apro Popular Questions Widget');
// admin
qa_register_plugin_module('module', 'q2apro-popular-questions-admin.php', 'q2apro_popular_questions_admin', 'Popular Questions Admin');
function q2apro_save_most_viewed_questions()
{
    // save checktime of cache
    qa_opt('q2apro_popularqu_checktime', time());
    $maxquestions = qa_opt('q2apro_popularqu_maxqu');
    $lastdays = qa_opt('q2apro_popularqu_lastdays');
    $ourTopQuestions = qa_db_read_all_assoc(qa_db_query_sub('SELECT postid, title, acount FROM `^posts` 
											WHERE `created` > NOW() - INTERVAL # DAY
											AND `type` = "Q"
											AND `closedbyid` IS NULL
											ORDER BY views DESC
示例#27
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
*/
Plugin Author URI: http://hoangweb.com
Plugin License: GPLv2
Plugin Minimum Question2Answer Version: 1.6
*/
if (!defined('QA_VERSION')) {
    // don't allow this page to be requested directly from browser
    header('Location: ../../');
    exit;
}
define('HWIMGUR_PLUGIN_DIR', dirname(__FILE__));
//include PHP Hooks
include_once dirname(__FILE__) . '/lib/PHP-Hooks/php-hooks.php';
global $hooks;
include_once 'functions.php';
//function ultilities
$hooks->add_action('before_render_page', 'hw_register_iflychat');
function hw_register_iflychat()
{
    //  Make sure to use the above code before printing any content via PHP,
    if (qa_opt('hw_enable_iflychat')) {
        global $iflychat_userinfo;
        require_once QA_BASE_DIR . 'hw-libs/iflychat/iflychat-php/iflychatsettings.php';
        require_once QA_BASE_DIR . 'hw-libs/iflychat/iflychat-php/iflychatuserdetails.php';
        require_once QA_BASE_DIR . 'hw-libs/iflychat/iflychat-php/iflychat.php';
        //init user
        hw_init_current_userlogin();
    }
}
qa_register_plugin_phrases('qa-imgur-lang.php', 'hw_lang');
qa_register_plugin_module('page', 'qa-imgur-page.php', 'hw_admin_page', 'Hoangweb Plugin');
qa_register_plugin_layer('qa-imgur-layer.php', 'Hoangweb layer');