WordPress.org

Plugin Directory

Changeset 730537


Ignore:
Timestamp:
06/23/13 20:05:21 (10 months ago)
Author:
Strictly Software
Message:

Updated code to give more messages about any REPAIR actions

Location:
strictly-system-check/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • strictly-system-check/trunk/strictly-system-check.class.php

    r289003 r730537  
    44class StrictlySystemCheck{ 
    55 
    6     protected $version              = "1.0.2"; 
     6    protected $version              = "1.0.3"; 
    77 
    88    private static $instance; 
     
    288288 
    289289            // do we need to check the DB? 
    290             if($checkDB){ 
     290            if($checkDB){            
    291291                 
    292292                // The following method will check all the tables and carry out REPAIR's on any that are corrupt 
    293293                $this->CheckDB();            
    294294 
    295             }            
     295            }else{ 
     296                $this->LogCheckMsg(__("The system did not need to check the REPAIR status of tables.","StrictlySystemCheck")); 
     297            } 
    296298 
    297299            // check the no of current DB connections to see if the DB is overloaded or consumed by long running queries 
     
    565567        $report =   "System Report: " . date('Y-m-d H:i:s',time()) . "\r\n\r\n". 
    566568                    $reportdata . "\r\n\r\n". 
     569                    "Report Completed At " . date('Y-m-d H:i:s',time()) . "\r\n\r\n". 
    567570                    "Strictly Software Plugins for Wordpress"; 
    568571 
     
    12481251        $check_type = ($this->checkmode == "FAST") ? "MEDIUM" : "EXTENDED"; 
    12491252 
     1253        set_time_limit(0); 
     1254 
    12501255        while($table = mysql_fetch_row($results)) { 
    12511256             
     
    12711276                        $repair_tables .=   $table[0] . ", "; 
    12721277 
    1273                         $this->LogCheckMsg(sprintf(__("Crashed Table: %s  %s","StrictlySystemCheck"),$table[0], $row->Msg_text));    
     1278                        $this->LogCheckMsg(sprintf(__("Crashed Table: %s - %s","StrictlySystemCheck"),$table[0], $row->Msg_text));   
     1279                    }else{ 
     1280                        $this->LogCheckMsg(sprintf(__("Table: %s does not need repairing","StrictlySystemCheck"),$table[0])); 
    12741281                    } 
    12751282                } 
     
    13091316        }else{ 
    13101317            $success = true; 
     1318 
     1319            $this->LogCheckMsg(__("No repairing of tables was required","StrictlySystemCheck")); 
    13111320        } 
    13121321 
     
    20012010                #StrictlySystemCheckAdmin div.report{ 
    20022011                    width:600px; 
    2003                     height:430px; 
     2012                    height:470px; 
    20042013                    overflow:auto; 
    20052014                } 
  • strictly-system-check/trunk/strictly-system-check.php

    r319881 r730537  
    33/** 
    44 * Plugin Name: Strictly System Check 
    5  * Version: 1.0.2 
     5 * Version: 1.0.3 
    66 * Plugin URI: http://www.strictly-software.com/plugins/strictly-system-check/ 
    77 * Description: This plugin will enable you to setup a cron job to periodically check the status of your wordpress site and auto fix any database related issues. This is useful for sites that import articles reguarly from feeds as you can experience corrupt tables on a regular basis especially after large bulk updates. 
Note: See TracChangeset for help on using the changeset viewer.