/
qa-plugin.php
48 lines (36 loc) · 1.3 KB
/
qa-plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/*
Plugin Name: Admin
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);
}
/*
Omit PHP closing tag to help avoid accidental output
*/