Plugin Directory

Changeset 851647


Ignore:
Timestamp:
02/05/2014 12:21:30 AM (12 years ago)
Author:
Bilbud
Message:

pushing tag 1.0.8.

  • fixed too generic css issue
  • fixed issue with unsecure content for HTTPS admin area
  • disabled "delete all" and "export to csv" buttons when there are no errors
Location:
404-error-monitor
Files:
14 added
7 edited

Legend:

Unmodified
Added
Removed
  • 404-error-monitor/trunk/css/admin.css

    r689566 r851647  
    4242}
    4343
    44 .postbox .inside { padding-top: 5px; padding-left: 30px;}
     44.error_monitor_plugin .postbox .inside { padding-top: 5px; padding-left: 30px;}
    4545
    46 .postbox .inside li { list-style: square; }
     46.error_monitor_plugin .postbox .inside li { list-style: square; }
    4747
    4848#error_monitor-export-form {
  • 404-error-monitor/trunk/includes/Error.php

    r700846 r851647  
    8383    {
    8484        global $wpdb;
    85         $url = str_replace(get_bloginfo('url'),'',$url);
    8685
    8786        if(!$this->errorExists($url)){
     
    9190                'count' => 1,
    9291                'referer' => wp_get_referer(),
    93                 'last_error' => date("Y-m-d H:i:s"),
     92                'last_error' => current_time( 'mysql' ),
    9493            );
    9594            return $wpdb->insert( errorMonitor_DataTools::getTableName(), $data ); 
  • 404-error-monitor/trunk/includes/errorList.php

    r700846 r851647  
    4444   
    4545?>
    46 <div class="wrap"> 
     46<div class="wrap error_monitor_plugin"> 
    4747    <div class="icon32" id="icon-edit"><br></div><h2>404 Error Monitor - Error list</h2>
    4848    <div class="error_monitor-message"></div>
     
    5151           
    5252            <div class="metabox-holder" id="dashboard-widgets">
    53 
    54 
    55        
    56 
    57            
    58 
    59 
    60 
    6153
    6254                <?php if(
     
    10395    <br class="clear" />
    10496    <h3>Error list</h3>
    105     <form id="error_monitor-export-form" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php" method="post">
    106         <input type="button" value="Export to csv" class="button-primary" id="export_btn" item-id="<?php echo $blog_id;?>" name="export_btn">
    107     </form>
     97    <?php
     98    $errorsRowset = $error->getErrorList($blog_id);
     99    $errorCount = count($errorsRowset);
     100   
     101    ?>
     102    <?php if($errorCount != 0):?>
     103        <form id="error_monitor-export-form" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php" method="post">
     104            <input type="button" value="Export to csv" class="button-primary" id="export_btn" item-id="<?php echo $blog_id;?>" name="export_btn">
     105        </form>
     106    <?php endif;?>
    108107    <table class="widefat error_monitor-error-list" cellspacing="0">
    109108        <thead>
     
    114113                <th>Last Error</th>
    115114                <th style="width: 65px;">
    116                     <?php if(!$blog_id):?>
    117                         <a id="" class="button-primary error_monitor-delete-all" href="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php">Delete all</a>
    118                     <?php else:?>
    119                         <span class="error_monitor-delete-all-blog"><a id="<?php echo $blog_id;?>" class="button-primary" href="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php">Delete all</a></span>
    120                     <?php endif;?>
     115                    <?php if($errorCount != 0):?>
     116                        <?php if(!$blog_id):?>
     117                            <a id="" class="button-primary error_monitor-delete-all" href="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php">Delete all</a>
     118                        <?php else:?>
     119                            <span class="error_monitor-delete-all-blog"><a id="<?php echo $blog_id;?>" class="button-primary" href="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php">Delete all</a></span>
     120                        <?php endif;?>
     121                    <?php else:?>
     122                      <?php echo "--";?>
     123                    <?php endif;?>
    121124                </th>
    122125            </tr>
     
    124127        <tbody>
    125128            <?php
    126             $errorsRowset = $error->getErrorList($blog_id);
    127             if(sizeof($errorsRowset) == 0){ ?>
     129           
     130            if($errorCount == 0){ ?>
    128131                <tr>
    129132                    <td colspan="5" style="text-align:center;">No errors (minimum hit count: <?php  echo errorMonitor_DataTools::getPluginOption("min_hit_count",null);?>)</td>
     
    162165        </tbody>
    163166    </table>
     167    <?php if($errorCount != 0):?>
    164168    <form id="error_monitor-export-form" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php" method="post">
    165169        <input type="button" value="Export to csv" class="button-primary" id="export_btn" item-id="<?php echo $blog_id;?>" name="export_btn">
    166170    </form>
     171    <?php endif;?>
    167172</div><?php
  • 404-error-monitor/trunk/includes/postbox.php

    r599688 r851647  
    1717 */
    1818?>
    19 <div style="width:19%;" class="postbox-container">
     19<div style="width:19%;" class="postbox-container error_monitor_plugin">
    2020    <div class="meta-box-sortables ui-sortable" style="min-height: 120px;"  id="side-sortables">
    2121        <div class="postbox" id="">
  • 404-error-monitor/trunk/includes/settings.php

    r662942 r851647  
    3737?>
    3838
    39 <div class="wrap">
     39<div class="wrap error_monitor_plugin">
    4040    <div class="icon32" id="icon-tools"><br></div>
    4141    <h2>404 Error Monitor - Settings</h2>
  • 404-error-monitor/trunk/index.php

    r700846 r851647  
    2020 *     Plugin URI: http://www.php-geek.fr/plugin-wordpress-404-error-monitor.html
    2121 *     Description: This plugin logs 404 (Page Not Found) errors on your WordPress site. It also logs useful informations like referrer, user address, and error hit count. It is fully compatible with a multisite configuration.
    22  *     Version: 1.0.7
     22 *     Version: 1.0.8
    2323 *     Author: Bruce Delorme
    2424 *     Author URI: http://www.php-geek.fr
     
    4242define( 'ERROR_REPORT_PLUGIN_NAME', '404-error-monitor' );     
    4343define( 'ERROR_REPORT_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . ERROR_REPORT_PLUGIN_NAME );
    44 define( 'ERROR_REPORT_PLUGIN_URL', WP_PLUGIN_URL . '/' . ERROR_REPORT_PLUGIN_NAME );
     44define( 'ERROR_REPORT_PLUGIN_URL', plugins_url() . '/' . ERROR_REPORT_PLUGIN_NAME );
    4545
    4646include_once(ERROR_REPORT_PLUGIN_DIR.'/includes/Error.php');
     
    189189        if ( function_exists( 'is_404' ) && is_404() ){
    190190            $error = new errorMonitor_Error();
    191             $error->add($this->curPageURL());
     191            $error->add($_SERVER["REQUEST_URI"]);
    192192            $error->clean();
    193193        }
     
    293293        die;
    294294    }
    295 
    296     /**
    297      *
    298      * Enter description here ...
    299      */
    300     function curPageURL() {
    301          $pageURL = 'http';
    302          if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
    303          $pageURL .= "://";
    304          if ($_SERVER["SERVER_PORT"] != "80") {
    305           $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
    306          } else {
    307           $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
    308          }
    309          return $pageURL;
    310     }
    311 
    312 
    313 
     295   
    314296} // end class
    315297endif;
  • 404-error-monitor/trunk/readme.txt

    r700846 r851647  
    55Requires at least: 3.2.1
    66Tested up to: 3.5.1
    7 Stable tag: 1.0.7
     7Stable tag: 1.0.8
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5050= 1.0.7 =
    5151* corrected display of url in error list page for single site installations.
     52
     53= 1.0.8 =
     54* fixed too generic css issue
     55* fixed issue with unsecure content for HTTPS admin area
     56* disabled "delete all" and "export to csv" buttons when there are no errors
Note: See TracChangeset for help on using the changeset viewer.