Plugin Directory

Changeset 1125402


Ignore:
Timestamp:
04/01/2015 02:05:59 PM (11 years ago)
Author:
samface
Message:

version 0.5.4 - db collation check routine and js logging bugfix

Location:
angry-creative-logger/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • angry-creative-logger/trunk/classes/inspector.php

    r943414 r1125402  
    22/*
    33Class name: AC Inspector
    4 Version: 0.5.0
     4Version: 0.5.1
    55Author: Sammy Nordström, Angry Creative AB
    66*/
     
    196196            return true;
    197197
     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            }
    198211        }
    199212
  • angry-creative-logger/trunk/classes/settings.php

    r958566 r1125402  
    22/*
    33Class name: ACI Settings
    4 Version: 0.3.1
     4Version: 0.3.2
    55Depends: AC Inspector 0.5.x
    66Author: Sammy Nordström, Angry Creative AB
     
    8989
    9090            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);
    9193
    9294            wp_enqueue_script('aci-tabs-script', plugins_url('js/tabs.js', ACI_PLUGIN_FILE), array('jquery-ui-tabs'), '20140115', true);
     
    154156                                                array_push($lines, $line);
    155157
    156                                                 if (count($lines)>25) {
     158                                                if (count($lines)>999) {
    157159                                                   array_shift($lines);
    158160                                                }
     
    189191
    190192                                <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>
    192195                                    <button class="button button-primary" name="inspect" value="true" />Inspect now!</button>
    193196                                </form>
     
    256259                if ( isset( $_POST['clear_log'] ) ) {
    257260                    parent::clear_log();
     261                }
     262                if ( isset( $_POST['download_log'] ) ) {
     263                    parent::download_log();
    258264                }
    259265            }
     
    364370        public function validate_options( $input = array() ) {
    365371
     372            if ( $_REQUEST['download_log_file'] ) {
     373                $this->download_log_file();
     374                exit;
     375            }
     376
    366377            if ( empty( $input ) && $_SERVER['REQUEST_METHOD'] == "POST" && isset( $_POST['aci_options'] ) ) {
    367378                $input = $_POST['aci_options'];
     
    566577            echo '</table>';
    567578
    568         }   
     579        }
    569580
    570581    }
  • angry-creative-logger/trunk/plugin.php

    r960428 r1125402  
    44Plugin URI: http://angrycreative.se
    55Description: Inspects and logs possible issues with your Wordpress installation.
    6 Version: 0.5.3
     6Version: 0.5.4
    77Author: Robin Björklund, Sammy Nordström, Angry Creative AB
    88*/
    99
    10 define( 'ACI_PLUGIN_VERSION', '0.5.3' );
     10define( 'ACI_PLUGIN_VERSION', '0.5.4' );
    1111
    1212define( 'ACI_PLUGIN_DIR', dirname( __FILE__ ) );
  • angry-creative-logger/trunk/readme.txt

    r960428 r1125402  
    22Contributors: ac-robin, samface, angrycreative
    33Tags: inspect, inspection, monitor, monitoring, log, logging, check, checking, validate, validation, permissions, install, installation
    4 Requires at least: 3.0.1
    5 Tested up to: 3.9.1
    6 Stable tag: 0.5.3
     4Requires at least: 4.0
     5Tested up to: 4.1.1
     6Stable tag: 0.5.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424= 0.5.x =
     25* New routine for checking mysql database collations
    2526* New routine for logging javascript errors
    2627* New routine for logging user capability changes
Note: See TracChangeset for help on using the changeset viewer.