Changeset 3047822
- Timestamp:
- 03/08/2024 12:49:22 PM (2 years ago)
- Location:
- wp-tech-lookup/trunk
- Files:
-
- 6 edited
-
classes/wtl-cron-info.php (modified) (5 diffs)
-
classes/wtl-database-info.php (modified) (2 diffs)
-
classes/wtl-filepermisions-info.php (modified) (2 diffs)
-
classes/wtl-server-info.php (modified) (30 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-tech-lookup.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tech-lookup/trunk/classes/wtl-cron-info.php
r1692273 r3047822 9 9 $crons = get_option('cron'); 10 10 $timeFormate = get_option('date_format') . ' ' . get_option('time_format'); 11 12 11 foreach ($crons as $key => $cron) { 13 12 if (is_numeric($key)) { … … 26 25 } 27 26 } 28 29 27 add_action('wp_ajax_wtl_cron_delete', array($this, 'wtl_cron_delete')); 30 28 add_action('wp_ajax_nopriv_wtl_cron_delete', array($this, 'wtl_cron_delete')); … … 33 31 function display_info() { 34 32 35 foreach ($this->details as $info) { 36 ?> 33 foreach ($this->details as $info) { ?> 37 34 <div class="cron-schedules" id="<?php echo $info['event_name']; ?>"> 38 35 <div class="cron-action"><strong>Event Action: </strong><?php echo $info['event_name']; ?> </div> … … 43 40 <div class="cron-argu"><strong>Arguments: </strong> <?php echo $info['event_argu']; ?></div> 44 41 </div> 45 <?php 46 } 42 <?php } 47 43 } 48 44 49 45 function wtl_cron_delete() { 46 if (!current_user_can( 'manage_options' ) ) { 47 return wp_send_json( array( 'result' => 'Authentication error' ) ); 48 } 50 49 $time = intval($_POST['event_time']); 51 50 $hook = $_POST['event_hook']; … … 64 63 exit(); 65 64 } 66 67 65 } 68 69 66 $wtl_cron_info = new wtl_cron_info(); 70 67 } -
wp-tech-lookup/trunk/classes/wtl-database-info.php
r1692273 r3047822 33 33 function display_info() { 34 34 35 foreach ($this->details as $info) { 36 ?> 35 foreach ($this->details as $info) { ?> 37 36 <tr> 38 37 <td><span><?php echo $info['title']; ?></span></td> … … 42 41 <td><span><?php echo $info['size']; ?> KB</span></td> 43 42 </tr> 44 <?php 45 } 43 <?php } 46 44 } 47 48 45 } 49 50 46 } -
wp-tech-lookup/trunk/classes/wtl-filepermisions-info.php
r1692273 r3047822 41 41 function display_info() { 42 42 43 foreach ($this->details as $info) { 44 ?> 43 foreach ($this->details as $info) { ?> 45 44 <tr> 46 45 <td><span><?php echo $info['title']; ?></span></td> … … 50 49 <td class="wtl-status-<?php echo strtolower($info['status']); ?>"><span class="status"></span></td> 51 50 </tr> 52 <?php 53 } 51 <?php } 54 52 } 55 53 -
wp-tech-lookup/trunk/classes/wtl-server-info.php
r1692273 r3047822 16 16 'heading' => true 17 17 ); 18 19 18 // Server Hostname 20 19 $this->details[] = array( … … 26 25 'status' => '' 27 26 ); 28 29 27 // Server IP 30 28 $this->details[] = array( … … 36 34 'status' => '' 37 35 ); 38 39 36 // Server Protocol 40 37 $this->details[] = array( … … 46 43 'status' => '' 47 44 ); 48 49 45 // OS 50 46 $this->details[] = array( … … 56 52 'status' => '' 57 53 ); 58 59 54 // Server Web Port 60 55 $this->details[] = array( … … 66 61 'status' => '' 67 62 ); 68 69 63 if (isset($_SERVER['GATEWAY_INTERFACE'])) { 70 64 // CGI Version … … 78 72 ); 79 73 } 80 81 74 // OS 82 75 $this->details[] = array( … … 89 82 ); 90 83 91 92 93 84 // PHP title 94 85 $this->details[] = array( … … 96 87 'heading' => true 97 88 ); 98 99 89 // PHP version 100 90 $this->details[] = array( … … 106 96 'status' => $this->check_status($this->min_php_version, phpversion(), 'version') 107 97 ); 108 109 98 // REGISTER GLOBALS 110 99 $this->details[] = array( … … 116 105 'status' => $this->check_status('disabled', ($this->ini_get_bool('register_globals') === true) ? 'enabled' : 'disabled') 117 106 ); 118 119 107 // MAGIC QUOTES GPC 120 108 $this->details[] = array( … … 126 114 'status' => $this->check_status('disabled', ($this->ini_get_bool('magic_quotes_gpc') === true) ? 'enabled' : 'disabled') 127 115 ); 128 129 116 // MAGIC QUOTES RUNTIME 130 117 $this->details[] = array( … … 136 123 'status' => $this->check_status('disabled', ($this->ini_get_bool('magic_quotes_runtime') === true) ? 'enabled' : 'disabled') 137 124 ); 138 139 125 // SAFE MODE 140 126 $this->details[] = array( … … 146 132 'status' => $this->check_status('disabled', ($this->ini_get_bool('safe_mode') === true) ? 'enabled' : 'disabled') 147 133 ); 148 149 134 // PHP Max execution time 150 135 $this->details[] = array( … … 156 141 'status' => $this->check_status(30, ini_get('max_execution_time'), 'number') 157 142 ); 158 159 143 // MEMORY LIMIT 160 144 $memoryLimit = $this->check_memory_limit(); … … 167 151 'status' => $memoryLimit 168 152 ); 169 170 153 $this->details[] = array( 171 154 'title' => 'PHP Max Upload Size', … … 175 158 'tip' => '', 176 159 'status' => '' 177 ); 178 160 ); 179 161 $this->details[] = array( 180 162 'title' => 'Post Max Size', … … 185 167 'status' => $this->check_status(8, ini_get('post_max_size'), 'number') 186 168 ); 187 188 169 $this->details[] = array( 189 170 'title' => 'PHP Max Input Vars', … … 200 181 'heading' => true 201 182 ); 202 203 183 // SQL 204 205 184 $this->details[] = array( 206 185 'title' => 'Database Software', … … 211 190 'status' => '' 212 191 ); 213 214 192 $this->details[] = array( 215 193 'title' => 'Max No. Of Connection', … … 220 198 'status' => ''/* $this->check_status(1, $this->database_max_no_connection(), 'number') */ 221 199 ); 222 223 200 global $wpdb; 224 201 $this->details[] = array( … … 234 211 function check_status($require, $current, $compare = 'string') { 235 212 $status = 'WARNING'; 236 237 213 if ($compare == 'number' && $require <= $current) { 238 214 $status = "OK"; … … 254 230 } 255 231 } 256 257 232 $ok = ($memory_limit >= 128 * 1024 * 1024); // at least 64M? 258 259 233 return ($ok ? 'OK' : 'WARNING'); 260 234 } … … 263 237 264 238 foreach ($this->details as $info) { 265 if (isset($info['heading'])): 266 ?> 267 <tr class="wtl-table-heading"> 239 if (isset($info['heading'])): ?> 240 <tr class="wtl-table-head 268 241 <td colspan="5"><strong><span><?php echo $info['title']; ?></span></strong></td> 269 242 </tr> 270 <?php else: 271 ?> 243 <?php else: ?> 272 244 <tr> 273 245 <td><span><?php echo $info['title']; ?></span></td> … … 277 249 <td class="wtl-status-<?php echo strtolower($info['status']); ?>"><span class="status"></span></td> 278 250 </tr> 279 <?php 280 endif; 251 <?php endif; 281 252 } 282 253 } … … 289 260 case 'true': 290 261 return 'assert.active' !== $a; 291 292 262 case 'stdout': 293 263 case 'stderr': 294 264 return 'display_errors' === $a; 295 296 265 default: 297 266 return (bool) (int) $b; … … 302 271 303 272 $db_software = get_transient('wpss_db_software'); 304 305 273 if ($db_software === FALSE) { 306 274 global $wpdb; … … 315 283 } 316 284 } 317 318 285 return $db_software; 319 286 } … … 322 289 323 290 $db_max_connection = get_transient('wpss_db_max_connection'); 324 325 291 if ($db_max_connection === FALSE) { 326 292 global $wpdb; … … 334 300 } 335 301 } 336 337 302 return $db_max_connection; 338 303 } -
wp-tech-lookup/trunk/readme.txt
r2095742 r3047822 3 3 Donate link: http://freelancer-coder.com 4 4 Tags: server information, server monitor, php information, mysql information, wordpress information, file permissions, os information 5 Requires at least: 3.46 Tested up to: 5.2.17 Requires PHP: 5.5.98 Stable tag: 1. 05 Requires at least: 4.7 6 Tested up to: 6.4.3 7 Requires PHP: 7.4 8 Stable tag: 1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 97 97 98 98 == Changelog == 99 * Initial release of this plugin 99 100 = 1.1 = 101 * Improved security and tested plugin with the latest WP version 100 102 101 103 = 1.0 = -
wp-tech-lookup/trunk/wp-tech-lookup.php
r1692273 r3047822 5 5 * Plugin URI: http://wordpress.org/extend/plugins/wp-tech-lookup/ 6 6 * Description: WP Tech Lookup plugin is to see all the necessary information about server at one place. 7 * Version: 1. 07 * Version: 1.1 8 8 * Author: Ashish Ajani 9 9 * Author URI: http://freelancer-coder.com … … 14 14 15 15 // define required contastants 16 @define('WP_TECH_LOOKUP_VERSION', '1.0');16 define('WP_TECH_LOOKUP_VERSION', '1.1'); 17 17 18 18 // Define plugin constants
Note: See TracChangeset
for help on using the changeset viewer.