Version Description
Download this release
Release Info
Developer | christopherross |
Plugin | WordPress phpinfo() |
Version | 0.1.1 |
Comparing to | |
See all releases |
Version 0.1.1
- readme.txt +26 -0
- timu-phpinfo.php +67 -0
readme.txt
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Plugin Name ===
|
2 |
+
Contributors: christopherross
|
3 |
+
Plugin URI: http://www.thisismyurl.com/wordpress/plugins/wordpress-phpinfo/
|
4 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2805621
|
5 |
+
Tags: simple, php, admin, phpinfo
|
6 |
+
Requires at least: 2.0.0
|
7 |
+
Tested up to: 2.7.0
|
8 |
+
Stable tag: 0.1.1
|
9 |
+
|
10 |
+
It's important for a non technical administrator to be able to diagnose server related problems in WordPress but also rapidly retrieve feedback regarding their web server. This simple plugin adds an option to an adminstrator's Tools menu which displays standard phpinfo() feedback details to the user.
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
It's important for a non technical administrator to be able to diagnose server related problems in WordPress but also rapidly retrieve feedback regarding their web server. This simple plugin adds an option to an adminstrator's Tools menu which displays standard phpinfo() feedback details to the user.
|
15 |
+
|
16 |
+
This a very simple script, designed to help the non technical user get immediate feedback about their blog.
|
17 |
+
|
18 |
+
== Installation ==
|
19 |
+
|
20 |
+
To install the plugin, please upload the folder to your plugins folder and active the plugin.
|
21 |
+
|
22 |
+
== Updates ==
|
23 |
+
Updates to the plugin will be posted here, to [thisismyurl](http://www.thisismyurl.com/wordpress/plugins/wordpress-phpinfo/)
|
24 |
+
|
25 |
+
== Donations ==
|
26 |
+
If you would like to donate to help support future development of this tool, please visit [thisismyurl](http://www.thisismyurl.com/)
|
timu-phpinfo.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: WordPress PHP Info
|
4 |
+
Plugin URI: http://www.thisismyurl.com/wordpress/plugins/wordpress-phpinfo/
|
5 |
+
Description: This simple plugin adds an option to an adminstrator's Tools menu which displays standard phpinfo() feedback details to the user.
|
6 |
+
Author: Christopher Ross
|
7 |
+
Version: 0.1.1
|
8 |
+
Author URI: http://www.thisismyurl.com
|
9 |
+
*/
|
10 |
+
|
11 |
+
|
12 |
+
/* Copyright 2008 Christopher Ross (email : info@thisismyurl.com)
|
13 |
+
|
14 |
+
This program is free software; you can redistribute it and/or modify
|
15 |
+
it under the terms of the GNU General Public License as published by
|
16 |
+
the Free Software Foundation; either version 2 of the License, or
|
17 |
+
(at your option) any later version.
|
18 |
+
|
19 |
+
This program is distributed in the hope that it will be useful,
|
20 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
+
GNU General Public License for more details.
|
23 |
+
|
24 |
+
You should have received a copy of the GNU General Public License
|
25 |
+
along with this program; if not, write to the Free Software
|
26 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
+
*/
|
28 |
+
|
29 |
+
|
30 |
+
add_action('admin_menu', 'wordpressphpinfo_add_pages');
|
31 |
+
add_action('wp_head','addHeaderCode');
|
32 |
+
add_filter('plugin_action_links', 'wordpressphpinfo_action', -10, 2);
|
33 |
+
|
34 |
+
|
35 |
+
add_filter('plugin_action_links', 'wordpressphpinfo_action', -10, 2);
|
36 |
+
function wordpressphpinfo_action($links, $file) {
|
37 |
+
// adds the link to the settings page in the plugin list page
|
38 |
+
if ($file == plugin_basename(dirname(__FILE__).'/timu-phpinfo.php'))
|
39 |
+
$links[] = "<a href='edit.php?page=wordpressphpinfo'>" . __('Results', 'WordPress PHP Info') . "</a>";
|
40 |
+
return $links;
|
41 |
+
}
|
42 |
+
|
43 |
+
|
44 |
+
function wordpressphpinfo_add_pages() {
|
45 |
+
add_management_page('WordPress PHP Info', 'WordPress PHP Info', 8, 'wordpressphpinfo', 'wordpressphpinfo');
|
46 |
+
}
|
47 |
+
|
48 |
+
function wordpressphpinfo() {
|
49 |
+
echo '<div class="wrap">';
|
50 |
+
echo '<h2>phpinfo() Results</h2>';
|
51 |
+
|
52 |
+
|
53 |
+
if (function_exists("phpinfo")) {
|
54 |
+
echo phpinfo();
|
55 |
+
} else {
|
56 |
+
echo "Sorry, your server does not appear to have phpinfo() installed.";
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
echo "
|
61 |
+
<p><strong>Want to say thank you?</strong></p>
|
62 |
+
<p>Using this plug-in is free, but if you'd like to say thanks you can <a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2098421'>send me a small donation</a>.<br/>Even better, a simple link from your web site to mine (<em><a href='http://www.thisismyurl.com'>http://www.thisismyurl.com</a></em>).</p>";
|
63 |
+
|
64 |
+
echo '</small></div>';
|
65 |
+
}
|
66 |
+
|
67 |
+
?>
|