Changeset 851647
- Timestamp:
- 02/05/2014 12:21:30 AM (12 years ago)
- Location:
- 404-error-monitor
- Files:
-
- 14 added
- 7 edited
-
tags/1.0.8 (added)
-
tags/1.0.8/COPYING.txt (added)
-
tags/1.0.8/css (added)
-
tags/1.0.8/css/admin.css (added)
-
tags/1.0.8/includes (added)
-
tags/1.0.8/includes/DataTools.php (added)
-
tags/1.0.8/includes/Error.php (added)
-
tags/1.0.8/includes/errorList.php (added)
-
tags/1.0.8/includes/postbox.php (added)
-
tags/1.0.8/includes/settings.php (added)
-
tags/1.0.8/index.php (added)
-
tags/1.0.8/js (added)
-
tags/1.0.8/js/admin.js (added)
-
tags/1.0.8/readme.txt (added)
-
trunk/css/admin.css (modified) (1 diff)
-
trunk/includes/Error.php (modified) (2 diffs)
-
trunk/includes/errorList.php (modified) (6 diffs)
-
trunk/includes/postbox.php (modified) (1 diff)
-
trunk/includes/settings.php (modified) (1 diff)
-
trunk/index.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
404-error-monitor/trunk/css/admin.css
r689566 r851647 42 42 } 43 43 44 . postbox .inside { padding-top: 5px; padding-left: 30px;}44 .error_monitor_plugin .postbox .inside { padding-top: 5px; padding-left: 30px;} 45 45 46 . postbox .inside li { list-style: square; }46 .error_monitor_plugin .postbox .inside li { list-style: square; } 47 47 48 48 #error_monitor-export-form { -
404-error-monitor/trunk/includes/Error.php
r700846 r851647 83 83 { 84 84 global $wpdb; 85 $url = str_replace(get_bloginfo('url'),'',$url);86 85 87 86 if(!$this->errorExists($url)){ … … 91 90 'count' => 1, 92 91 'referer' => wp_get_referer(), 93 'last_error' => date("Y-m-d H:i:s"),92 'last_error' => current_time( 'mysql' ), 94 93 ); 95 94 return $wpdb->insert( errorMonitor_DataTools::getTableName(), $data ); -
404-error-monitor/trunk/includes/errorList.php
r700846 r851647 44 44 45 45 ?> 46 <div class="wrap ">46 <div class="wrap error_monitor_plugin"> 47 47 <div class="icon32" id="icon-edit"><br></div><h2>404 Error Monitor - Error list</h2> 48 48 <div class="error_monitor-message"></div> … … 51 51 52 52 <div class="metabox-holder" id="dashboard-widgets"> 53 54 55 56 57 58 59 60 61 53 62 54 <?php if( … … 103 95 <br class="clear" /> 104 96 <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;?> 108 107 <table class="widefat error_monitor-error-list" cellspacing="0"> 109 108 <thead> … … 114 113 <th>Last Error</th> 115 114 <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;?> 121 124 </th> 122 125 </tr> … … 124 127 <tbody> 125 128 <?php 126 $errorsRowset = $error->getErrorList($blog_id);127 if( sizeof($errorsRowset)== 0){ ?>129 130 if($errorCount == 0){ ?> 128 131 <tr> 129 132 <td colspan="5" style="text-align:center;">No errors (minimum hit count: <?php echo errorMonitor_DataTools::getPluginOption("min_hit_count",null);?>)</td> … … 162 165 </tbody> 163 166 </table> 167 <?php if($errorCount != 0):?> 164 168 <form id="error_monitor-export-form" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php" method="post"> 165 169 <input type="button" value="Export to csv" class="button-primary" id="export_btn" item-id="<?php echo $blog_id;?>" name="export_btn"> 166 170 </form> 171 <?php endif;?> 167 172 </div><?php -
404-error-monitor/trunk/includes/postbox.php
r599688 r851647 17 17 */ 18 18 ?> 19 <div style="width:19%;" class="postbox-container ">19 <div style="width:19%;" class="postbox-container error_monitor_plugin"> 20 20 <div class="meta-box-sortables ui-sortable" style="min-height: 120px;" id="side-sortables"> 21 21 <div class="postbox" id=""> -
404-error-monitor/trunk/includes/settings.php
r662942 r851647 37 37 ?> 38 38 39 <div class="wrap ">39 <div class="wrap error_monitor_plugin"> 40 40 <div class="icon32" id="icon-tools"><br></div> 41 41 <h2>404 Error Monitor - Settings</h2> -
404-error-monitor/trunk/index.php
r700846 r851647 20 20 * Plugin URI: http://www.php-geek.fr/plugin-wordpress-404-error-monitor.html 21 21 * 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. 722 * Version: 1.0.8 23 23 * Author: Bruce Delorme 24 24 * Author URI: http://www.php-geek.fr … … 42 42 define( 'ERROR_REPORT_PLUGIN_NAME', '404-error-monitor' ); 43 43 define( 'ERROR_REPORT_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . ERROR_REPORT_PLUGIN_NAME ); 44 define( 'ERROR_REPORT_PLUGIN_URL', WP_PLUGIN_URL. '/' . ERROR_REPORT_PLUGIN_NAME );44 define( 'ERROR_REPORT_PLUGIN_URL', plugins_url() . '/' . ERROR_REPORT_PLUGIN_NAME ); 45 45 46 46 include_once(ERROR_REPORT_PLUGIN_DIR.'/includes/Error.php'); … … 189 189 if ( function_exists( 'is_404' ) && is_404() ){ 190 190 $error = new errorMonitor_Error(); 191 $error->add($ this->curPageURL());191 $error->add($_SERVER["REQUEST_URI"]); 192 192 $error->clean(); 193 193 } … … 293 293 die; 294 294 } 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 314 296 } // end class 315 297 endif; -
404-error-monitor/trunk/readme.txt
r700846 r851647 5 5 Requires at least: 3.2.1 6 6 Tested up to: 3.5.1 7 Stable tag: 1.0. 77 Stable tag: 1.0.8 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 50 50 = 1.0.7 = 51 51 * 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.