Changeset 700846
- Timestamp:
- 04/20/2013 07:34:19 PM (13 years ago)
- Location:
- 404-error-monitor/trunk
- Files:
-
- 5 edited
-
includes/DataTools.php (modified) (2 diffs)
-
includes/Error.php (modified) (1 diff)
-
includes/errorList.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
404-error-monitor/trunk/includes/DataTools.php
r662942 r700846 101 101 $wpdb->errorReportTable = $wpdb->prefix . self::LOG_TABLE; 102 102 } 103 if ( $wpdb->get_var("SHOW TABLES LIKE '{$wpdb->errorReportTable}'") != $wpdb->errorReportTable) {103 if ( !self::_tableExist($wpdb->errorReportTable) ) { 104 104 $wpdb->query( "CREATE TABLE IF NOT EXISTS `{$wpdb->errorReportTable}` ( 105 105 `id` bigint(20) NOT NULL auto_increment, … … 111 111 PRIMARY KEY (`id`) 112 112 );" ); 113 } 114 } 115 116 public static function _tableExist($tableName) 117 { 118 global $wpdb; 119 if($wpdb->get_var("SHOW TABLES LIKE '{$tableName}'") == $tableName){ 120 return true; 121 } else { 122 return false; 113 123 } 114 124 } -
404-error-monitor/trunk/includes/Error.php
r689566 r700846 167 167 { 168 168 global $wpdb; 169 if(is_object($errorRow)){ 170 return $wpdb->get_var("SELECT domain FROM ".errorMonitor_DataTools::getTableName('blogs')." WHERE blog_id = ".$errorRow->blog_id.";"); 169 170 $tableName = errorMonitor_DataTools::getTableName('blogs'); 171 if(errorMonitor_DataTools::isNetworkInstall() && errorMonitor_DataTools::_tableExist($tableName)){ 172 if(is_object($errorRow)){ 173 return $wpdb->get_var("SELECT domain FROM ".$tableName." WHERE blog_id = ".$errorRow->blog_id.";"); 174 } 175 } else { 176 return str_replace(array('http://','https://'),'',get_bloginfo( 'wpurl')); 171 177 } 172 178 } -
404-error-monitor/trunk/includes/errorList.php
r689566 r700846 130 130 </tr> 131 131 <?php } 132 133 $previousBlogId = ''; 132 134 foreach($errorsRowset as $row){ 133 135 $domain = $error->getDomain($row); -
404-error-monitor/trunk/index.php
r689566 r700846 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. 622 * Version: 1.0.7 23 23 * Author: Bruce Delorme 24 24 * Author URI: http://www.php-geek.fr … … 300 300 function curPageURL() { 301 301 $pageURL = 'http'; 302 if ( $_SERVER["HTTPS"] == "on") {$pageURL .= "s";}302 if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";} 303 303 $pageURL .= "://"; 304 304 if ($_SERVER["SERVER_PORT"] != "80") { -
404-error-monitor/trunk/readme.txt
r689566 r700846 5 5 Requires at least: 3.2.1 6 6 Tested up to: 3.5.1 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 47 47 * added export fonctionnality. 48 48 * improved extension filters. 49 50 = 1.0.7 = 51 * corrected display of url in error list page for single site installations.
Note: See TracChangeset
for help on using the changeset viewer.