Changeset 615069
- Timestamp:
- 10/20/2012 11:37:52 PM (13 years ago)
- Location:
- 404-error-monitor/trunk
- Files:
-
- 4 edited
-
includes/Error.php (modified) (2 diffs)
-
includes/errorList.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
404-error-monitor/trunk/includes/Error.php
r601098 r615069 59 59 public function add($url) 60 60 { 61 //@todo devrai trouver le main domaine et ajouter une seule erreur pour test.com/dsds et test.fr/dsdsd62 61 global $wpdb; 63 62 $url = str_replace(get_bloginfo('url'),'',$url); … … 74 73 } else { 75 74 $referer = wp_get_referer(); 76 if($referer!='' ){75 if($referer!='' && strpos($referer, get_bloginfo('url').'/wp-admin') === false){ 77 76 return $wpdb->query("UPDATE ".errorMonitor_DataTools::getTableName()." SET count=count+1, last_error = '".date("Y-m-d H:i:s")."', referer='".$referer."' WHERE url = '$url'"); 78 77 } else { -
404-error-monitor/trunk/includes/errorList.php
r615051 r615069 138 138 ?> 139 139 <tr class="error_monitor-error-row" id="<?php echo $row->blog_id;?>"> 140 <td><a target="_blank" href=" http://<?php echo$domain.$row->url;?>"><?php echo $row->url;?></a></td>140 <td><a target="_blank" href="<?php echo (substr($row->url, 0, strlen('http://')) === 'http://')?$row->url:'http://'.$domain.$row->url;?>"><?php echo $row->url;?></a></td> 141 141 <td><?php echo $row->count;?></td> 142 142 <td> -
404-error-monitor/trunk/index.php
r615051 r615069 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. 222 * Version: 1.0.3 23 23 * Author: Bruce Delorme 24 24 * Author URI: http://www.php-geek.fr -
404-error-monitor/trunk/readme.txt
r601098 r615069 5 5 Requires at least: 3.2.1 6 6 Tested up to: 3.4.2 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 33 33 = 1.0.2 = 34 34 * for network install only: fixed mininum hit count setting problem. 35 36 = 1.0.3 = 37 * fixed referer issue: referer is not saved if is a wp admin page.
Note: See TracChangeset
for help on using the changeset viewer.