Changeset 1425926
- Timestamp:
- 05/28/2016 05:40:00 AM (10 years ago)
- Location:
- wordpress-php-info/trunk
- Files:
-
- 1 added
- 3 edited
-
css/thisismyurl-admin.css (modified) (1 diff)
-
js (added)
-
readme.txt (modified) (1 diff)
-
wordpress-php-info.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-php-info/trunk/css/thisismyurl-admin.css
r1370242 r1425926 20 20 position: relative; 21 21 } 22 #email_phpinfo { 23 width: 365px; 24 cursor: pointer; 25 margin: 0 auto; 26 padding: 25px; 27 font-size: 25px; 28 font-weight: bold; 29 text-align: center; 30 background: #777BB4; 31 color: #FFF; 32 border-radius: 10px; 33 } 34 #bgpopup { 35 background-color:rgba(0, 0, 0, 0.5); 36 width: 100%; 37 height: 100%; 38 z-index: 99998; 39 position: fixed; 40 top: 0; 41 left: 0; 42 display: none; 43 } 44 #emailme { 45 width: 350px; 46 padding: 15px; 47 background: pink; 48 margin: 0 auto; 49 z-index: 99999; 50 position: fixed; 51 top: 100px; 52 display: none; 53 left: 0; 54 right: 0; 55 } 56 #emailsent { 57 height: 30px; 58 background: #FFF; 59 border: solid 1px #000; 60 padding: 15px; 61 margin: 20px; 62 } -
wordpress-php-info/trunk/readme.txt
r1370242 r1425926 5 5 Tags: simple, php, admin, phpinfo,debugging, configuration, server, support, troubleshooting 6 6 Requires at least: 3.2.0 7 Tested up to: 4.5 8 Stable tag: 1 4.27 Tested up to: 4.5.2 8 Stable tag: 15 9 9 10 10 It's important for a non technical administrator to be able to diagnose server related problems in WordPress. -
wordpress-php-info/trunk/wordpress-php-info.php
r1370242 r1425926 5 5 Description: This simple plugin adds an option to an adminstrator's Tools menu which displays standard phpinfo() feedback details to the user. 6 6 Author: Chris Flannagan 7 Version: 1 4.27 Version: 15 8 8 Author URI: http://whoischris.com/ 9 9 */ … … 72 72 wp_register_style( 'thisismyurl-wpphpinfo', plugin_dir_url( __FILE__ ) . 'css/thisismyurl-admin.css', false, '14.12' ); 73 73 wp_enqueue_style( 'thisismyurl-wpphpinfo' ); 74 wp_enqueue_script( 'flannyjs', plugin_dir_url( __FILE__ ) . 'js/phpinfo-js.js', array( 'jquery' ) ); 74 75 75 76 } … … 92 93 93 94 function thisismyurl_wpphpinfo_page() { 95 96 if( isset( $_REQUEST['sendtoemail'] ) ) { 97 $to = $_REQUEST['sendtoemail']; 98 $subject = 'WordPress User Submitted PHP Info()'; 99 $body = $this->phpinfo_output_noecho(); 100 $headers = array('Content-Type: text/html; charset=UTF-8'); 101 102 wp_mail( $to, $subject, $body, $headers ); 103 104 echo '<div id="emailsent"><h2>Email SENT! Be sure to tell receiver they may need to check their junk/spam folders for this information.</h2></div>'; 105 } 106 94 107 ?> 108 109 <div id="bgpopup"></div> 110 <div id="emailme"> 111 <form action="" method="post"> 112 <table> 113 <tr> 114 <td>Send to: </td> 115 <td><input type="text" name="sendtoemail" /></td> 116 <td><input type="submit" value="Send it!" /></td> 117 </tr> 118 </table> 119 </form> 120 <button id="closeemail" style="font-size:20px;font-weight:bold;background:#e968ff;color:#FFF;"> 121 Close This Window 122 </button>