Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
<?php | ||
|
||
/* | ||
Plugin Name: Admin | ||
Plugin URI: https://github.com/NoahY/q2a-admin-plus | ||
<?php | ||
|
||
/* | ||
Plugin Name: Admin | ||
Plugin URI: https://github.com/NoahY/q2a-admin-plus | ||
Plugin Update Check URI: https://github.com/NoahY/q2a-admin-plus/raw/master/qa-plugin.php | ||
Plugin Description: Provides admin additions | ||
Plugin Version: 1.3 | ||
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'); | ||
|
||
if(function_exists('qa_register_plugin_phrases')) | ||
qa_register_plugin_phrases('qa-admin-lang-*.php', 'admin_plus'); | ||
|
||
|
||
// 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 | ||
*/ | ||
Plugin Description: Provides admin additions | ||
Plugin Version: 1.4 | ||
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'); | ||
|
||
if(function_exists('qa_register_plugin_phrases')) | ||
qa_register_plugin_phrases('qa-admin-lang-*.php', 'admin_plus'); | ||
|
||
|
||
// 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 | ||
*/ |