Changeset 1125402
- Timestamp:
- 04/01/2015 02:05:59 PM (11 years ago)
- Location:
- angry-creative-logger/trunk
- Files:
-
- 4 edited
-
classes/inspector.php (modified) (2 diffs)
-
classes/settings.php (modified) (7 diffs)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
angry-creative-logger/trunk/classes/inspector.php
r943414 r1125402 2 2 /* 3 3 Class name: AC Inspector 4 Version: 0.5. 04 Version: 0.5.1 5 5 Author: Sammy Nordström, Angry Creative AB 6 6 */ … … 196 196 return true; 197 197 198 } 199 200 public static function download_log() { 201 if ( file_exists( self::$log_path ) ) { 202 header( "Content-type: application/x-msdownload", true, 200 ); 203 header( "Content-Disposition: attachment; filename=ac_inspection.log" ); 204 header( "Pragma: no-cache" ); 205 header( "Expires: 0" ); 206 echo file_get_contents( self::$log_path ); 207 exit(); 208 } else { 209 self::log( 'Failed to download log file: File does not exist.' ); 210 } 198 211 } 199 212 -
angry-creative-logger/trunk/classes/settings.php
r958566 r1125402 2 2 /* 3 3 Class name: ACI Settings 4 Version: 0.3. 14 Version: 0.3.2 5 5 Depends: AC Inspector 0.5.x 6 6 Author: Sammy Nordström, Angry Creative AB … … 89 89 90 90 wp_enqueue_style('aci-tabs-style', plugins_url('css/tabs.css', ACI_PLUGIN_FILE), array(), '20140115'); 91 92 wp_enqueue_script('aci-main-script', plugins_url('js/main.js', ACI_PLUGIN_FILE), array('jquery'), '20140115', true); 91 93 92 94 wp_enqueue_script('aci-tabs-script', plugins_url('js/tabs.js', ACI_PLUGIN_FILE), array('jquery-ui-tabs'), '20140115', true); … … 154 156 array_push($lines, $line); 155 157 156 if (count($lines)> 25) {158 if (count($lines)>999) { 157 159 array_shift($lines); 158 160 } … … 189 191 190 192 <form name="post" action="<?php echo self::$_plugin_options_url; ?>" method="post" id="post"> 191 <button class="button" name="clear_log" value="true" />Clear log</button> 193 <button class="button" name="clear_log" value="true" />Clear log</button> 194 <button class="button" name="download_log" value="true" />Download log</button> 192 195 <button class="button button-primary" name="inspect" value="true" />Inspect now!</button> 193 196 </form> … … 256 259 if ( isset( $_POST['clear_log'] ) ) { 257 260 parent::clear_log(); 261 } 262 if ( isset( $_POST['download_log'] ) ) { 263 parent::download_log(); 258 264 } 259 265 } … … 364 370 public function validate_options( $input = array() ) { 365 371 372 if ( $_REQUEST['download_log_file'] ) { 373 $this->download_log_file(); 374 exit; 375 } 376 366 377 if ( empty( $input ) && $_SERVER['REQUEST_METHOD'] == "POST" && isset( $_POST['aci_options'] ) ) { 367 378 $input = $_POST['aci_options']; … … 566 577 echo '</table>'; 567 578 568 } 579 } 569 580 570 581 } -
angry-creative-logger/trunk/plugin.php
r960428 r1125402 4 4 Plugin URI: http://angrycreative.se 5 5 Description: Inspects and logs possible issues with your Wordpress installation. 6 Version: 0.5. 36 Version: 0.5.4 7 7 Author: Robin Björklund, Sammy Nordström, Angry Creative AB 8 8 */ 9 9 10 define( 'ACI_PLUGIN_VERSION', '0.5. 3' );10 define( 'ACI_PLUGIN_VERSION', '0.5.4' ); 11 11 12 12 define( 'ACI_PLUGIN_DIR', dirname( __FILE__ ) ); -
angry-creative-logger/trunk/readme.txt
r960428 r1125402 2 2 Contributors: ac-robin, samface, angrycreative 3 3 Tags: inspect, inspection, monitor, monitoring, log, logging, check, checking, validate, validation, permissions, install, installation 4 Requires at least: 3.0.15 Tested up to: 3.9.16 Stable tag: 0.5. 34 Requires at least: 4.0 5 Tested up to: 4.1.1 6 Stable tag: 0.5.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 24 24 = 0.5.x = 25 * New routine for checking mysql database collations 25 26 * New routine for logging javascript errors 26 27 * New routine for logging user capability changes
Note: See TracChangeset
for help on using the changeset viewer.