Changeset 1531302
- Timestamp:
- 11/10/2016 12:10:09 AM (9 years ago)
- Location:
- satellite
- Files:
-
- 2 edited
-
tags/1.2.1/satellite-optimization-monitoring.php (modified) (14 diffs)
-
trunk/satellite-optimization-monitoring.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
satellite/tags/1.2.1/satellite-optimization-monitoring.php
r1531294 r1531302 3 3 Plugin Name: Satellite Optimization Monitoring 4 4 Plugin URI: https://satellite.fm 5 Description: Actionable WordPress Optimization for non developers. After activating this plugin go to satellite.fm to enable this service.6 Version: 1.2 5 Description: Actionable WordPress Optimization for non developers. After activating this plugin, click the Satellite link in your WordPress admin. 6 Version: 1.2.1 7 7 Author: Satellite.fm 8 8 Author URI: https://satellite.fm/ … … 10 10 */ 11 11 12 define( 'SATELLITE_VERSION', '1.2 ' );12 define( 'SATELLITE_VERSION', '1.2.1' ); 13 13 14 14 define( 'SATELLITE_SITE', 'https://satellite.fm/' ); … … 37 37 header( 'Access-Control-Allow-Origin: *' ); 38 38 // Activation check 39 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'client_ok' ) : 39 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'client_ok' ) : 40 40 print json_encode( array( 'client' => 'ok' ) ); 41 41 endif; 42 42 // Version check 43 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'plugin_version' ) : 43 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'plugin_version' ) : 44 44 print json_encode( array( 'version' => SATELLITE_VERSION ) ); 45 45 endif; … … 114 114 endif; 115 115 return str_replace( '\\', '/', $home_path ); 116 } 116 } 117 117 endif; 118 118 … … 133 133 $the_path = $folder_path . $result; 134 134 if ( is_dir( $the_path ) ) : 135 $size+= satellite_get_folder_size( $the_path . '/' ); 135 $size+= satellite_get_folder_size( $the_path . '/' ); 136 136 elseif ( is_file( $the_path ) ) : 137 137 $size+= filesize( $the_path ); … … 209 209 endforeach; 210 210 endif; 211 211 212 212 // Get themes report 213 $themes = wp_get_themes(); 213 $themes = wp_get_themes(); 214 214 $themes_found = array(); 215 215 $themes_info = array(); … … 226 226 endforeach; 227 227 endif; 228 228 229 229 // Getting the current permalink structure 230 230 $permalink_structure = ''; … … 246 246 'permalink_structure' => $permalink_structure, 247 247 ); 248 248 249 249 } 250 250 endif; … … 325 325 // Output 326 326 return array( 327 'total' => $total, 328 'spam' => $spam 327 'total' => $total, 328 'spam' => $spam 329 329 ); 330 330 } … … 342 342 // Output 343 343 return array( 344 'total' => $total, 345 'spam' => $spam 344 'total' => $total, 345 'spam' => $spam 346 346 ); 347 347 } … … 359 359 // Output 360 360 return array( 361 'total' => $total, 362 'spam' => $spam 361 'total' => $total, 362 'spam' => $spam 363 363 ); 364 364 } … … 376 376 // Output 377 377 return array( 378 'total' => $total, 379 'spam' => $spam 378 'total' => $total, 379 'spam' => $spam 380 380 ); 381 381 } … … 399 399 $output[] = array( 400 400 'post_type' => $post_type->post_type, 401 'total' => $total, 401 'total' => $total, 402 402 'trash' => $trash, 403 403 ); … … 449 449 /*****/ 450 450 451 /* 451 /* 452 452 This program is free software; you can redistribute it and/or modify 453 it under the terms of the GNU General Public License, version 2, as 453 it under the terms of the GNU General Public License, version 2, as 454 454 published by the Free Software Foundation. 455 455 -
satellite/trunk/satellite-optimization-monitoring.php
r1531272 r1531302 3 3 Plugin Name: Satellite Optimization Monitoring 4 4 Plugin URI: https://satellite.fm 5 Description: Actionable WordPress Optimization for non developers. After activating this plugin go to satellite.fm to enable this service.6 Version: 1.2 5 Description: Actionable WordPress Optimization for non developers. After activating this plugin, click the Satellite link in your WordPress admin. 6 Version: 1.2.1 7 7 Author: Satellite.fm 8 8 Author URI: https://satellite.fm/ … … 10 10 */ 11 11 12 define( 'SATELLITE_VERSION', '1.2 ' );12 define( 'SATELLITE_VERSION', '1.2.1' ); 13 13 14 14 define( 'SATELLITE_SITE', 'https://satellite.fm/' ); … … 37 37 header( 'Access-Control-Allow-Origin: *' ); 38 38 // Activation check 39 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'client_ok' ) : 39 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'client_ok' ) : 40 40 print json_encode( array( 'client' => 'ok' ) ); 41 41 endif; 42 42 // Version check 43 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'plugin_version' ) : 43 if ( isset( $_REQUEST['get'] ) && $_REQUEST['get'] == 'plugin_version' ) : 44 44 print json_encode( array( 'version' => SATELLITE_VERSION ) ); 45 45 endif; … … 114 114 endif; 115 115 return str_replace( '\\', '/', $home_path ); 116 } 116 } 117 117 endif; 118 118 … … 133 133 $the_path = $folder_path . $result; 134 134 if ( is_dir( $the_path ) ) : 135 $size+= satellite_get_folder_size( $the_path . '/' ); 135 $size+= satellite_get_folder_size( $the_path . '/' ); 136 136 elseif ( is_file( $the_path ) ) : 137 137 $size+= filesize( $the_path ); … … 209 209 endforeach; 210 210 endif; 211 211 212 212 // Get themes report 213 $themes = wp_get_themes(); 213 $themes = wp_get_themes(); 214 214 $themes_found = array(); 215 215 $themes_info = array(); … … 226 226 endforeach; 227 227 endif; 228 228 229 229 // Getting the current permalink structure 230 230 $permalink_structure = ''; … … 246 246 'permalink_structure' => $permalink_structure, 247 247 ); 248 248 249 249 } 250 250 endif; … … 325 325 // Output 326 326 return array( 327 'total' => $total, 328 'spam' => $spam 327 'total' => $total, 328 'spam' => $spam 329 329 ); 330 330 } … … 342 342 // Output 343 343 return array( 344 'total' => $total, 345 'spam' => $spam 344 'total' => $total, 345 'spam' => $spam 346 346 ); 347 347 } … … 359 359 // Output 360 360 return array( 361 'total' => $total, 362 'spam' => $spam 361 'total' => $total, 362 'spam' => $spam 363 363 ); 364 364 } … … 376 376 // Output 377 377 return array( 378 'total' => $total, 379 'spam' => $spam 378 'total' => $total, 379 'spam' => $spam 380 380 ); 381 381 } … … 399 399 $output[] = array( 400 400 'post_type' => $post_type->post_type, 401 'total' => $total, 401 'total' => $total, 402 402 'trash' => $trash, 403 403 ); … … 449 449 /*****/ 450 450 451 /* 451 /* 452 452 This program is free software; you can redistribute it and/or modify 453 it under the terms of the GNU General Public License, version 2, as 453 it under the terms of the GNU General Public License, version 2, as 454 454 published by the Free Software Foundation. 455 455
Note: See TracChangeset
for help on using the changeset viewer.