Changeset 553115
- Timestamp:
- 06/04/2012 07:14:31 PM (14 years ago)
- Location:
- wordpress-link-ranker/trunk
- Files:
-
- 1 added
- 7 edited
-
lib/class.seostats.config.php (modified) (1 diff)
-
lib/class.seostats.php (modified) (5 diffs)
-
lib/modules.php (modified) (2 diffs)
-
lib/seostats.google.php (modified) (3 diffs)
-
lib/seostats.semrush.php (added)
-
lib/seostats.twitter.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
wp-links-ranker.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-link-ranker/trunk/lib/class.seostats.config.php
r553077 r553115 40 40 define('SEOMOZ_SECRET_KEY', 41 41 '7145d56a1279285be92e6e4875bba8ee'); 42 43 define('ERR_LOG_ENABLED', true); 44 define('ERR_LOG_PATH', 'errlog.txt'); 42 45 ?> -
wordpress-link-ranker/trunk/lib/class.seostats.php
r553077 r553115 1 1 <?php 2 2 /************************************************************************ 3 * PHP Class SEOstats 2. 0.93 * PHP Class SEOstats 2.1.0 4 4 *======================================================================= 5 5 * PHP class to request a bunch of SEO data, such as Backlinkdetails, 6 6 * Traffic Statistics, Pageauthority and much more. 7 7 *======================================================================= 8 * @package class.seostats.2. 0.98 * @package class.seostats.2.1.0 9 9 * @link https://github.com/eyecatchup/SEOstats/ 10 * @updated 2012/0 1/3010 * @updated 2012/05/12 11 11 * @author Stephan Schmitz <eyecatchup@gmail.com> 12 12 * @copyright 2010-present, Stephan Schmitz … … 31 31 * Updated constant 32 32 * PAGERANK_CHECKSUM_API_URI 33 * 2012/05/12 Stephan Schmitz Initial commit of new child class: 34 * SEOstats_SEMRush() 33 35 *======================================================================= 34 36 * Note: The above changelog is related to this file only. Each file of … … 72 74 class SEOstats 73 75 { 74 const BUILD_NO = '2.0.9';76 const BUILD_NO = '2.1.0'; 75 77 const PAGERANK_CHECKSUM_API_URI = 'http://www.nahklick.de/api/pagerank/prch.php?url='; 76 78 … … 127 129 } 128 130 131 /** 132 * Logs an error to the error log file 133 * 134 * @param String $errtxt The error message to log 135 */ 129 136 function errlogtxt($errtxt) 130 137 { 131 $fp = fopen('errlog.txt','a+'); //ouvrir le fichier 132 $newerr = date('Y-m-d\TH:i:sP') .' : ' . $errtxt."\r\n"; //creation du texte de l'erreur 133 fwrite($fp,$newerr); //edition du fichier texte 134 fclose($fp); //fermeture du fichier texte 135 echo $newerr; 138 if (ERR_LOG_ENABLED) { 139 $fp = fopen(ERR_LOG_PATH,'a+'); 140 $newerr = date('Y-m-d\TH:i:sP') .' : ' . $errtxt."\r\n"; 141 fwrite($fp,$newerr); 142 fclose($fp); 143 } 136 144 } 137 145 … … 445 453 return SEOstats_Bing::bingSiteindexArray($this->host); 446 454 } 455 456 /** 457 * @access public 458 * @param string $db Specifies the SEMRush database, which actualy defines 459 * the Google server location, as a basis of computation. 460 * @return array Returns array, containing the SEMRush Main Report (/w description). 461 */ 462 public function SEMRush($db="us") 463 { 464 return SEOstats_SEMRush::semrushMainReport($this->host, $db); 465 } 447 466 448 467 /** -
wordpress-link-ranker/trunk/lib/modules.php
r553077 r553115 4 4 * 5 5 * @package class.seostats 6 * @updated 201 1/04/296 * @updated 2012/05/12 7 7 * @author Stephan Schmitz <eyecatchup@gmail.com> 8 8 * @copyright 2010-present, Stephan Schmitz … … 14 14 include_once('seostats.google.php'); 15 15 include_once('seostats.yahoo.php'); 16 include_once('seostats.semrush.php'); 16 17 include_once('seostats.seomoz.php'); 17 18 include_once('seostats.alexa.php'); -
wordpress-link-ranker/trunk/lib/seostats.google.php
r553077 r553115 23 23 * performanceAnalysis: Updated request URL. 24 24 * pageSpeedScore: Updated request URL. 25 * 2012/05/25 Stephan Schmitz Merged fix for left shift issue in genhash(). 26 * Fix provided by James Wade <hm2k@php.net>. 25 27 */ 26 28 … … 160 162 $ch = (($ch >> 23) & 0x1ff) | $ch << 9; 161 163 } 164 // On 64-bit platforms, mask and re-complement to 32-bit 165 if (PHP_INT_MAX != 2147483647) { $ch = -(~($ch & 0xFFFFFFFF) + 1); } 162 166 return sprintf('8%x', $ch); 163 167 } … … 182 186 $c = self::zerofill($c, 23) | $c << 9; 183 187 } 188 // On 64-bit platforms, mask and re-complement to 32-bit 189 if (PHP_INT_MAX != 2147483647) { $c = -(~($c & 0xFFFFFFFF) + 1); } 184 190 return '8' . self::hexencode($c); 185 191 } -
wordpress-link-ranker/trunk/lib/seostats.twitter.php
r553077 r553115 29 29 * @return integer Returns the total of twitter mentions for a single page. 30 30 */ 31 function getTweetCount($url) {31 public static function getTweetCount($url) { 32 32 $url = urlencode($url); 33 33 $twitterEndpoint = "http://urls.api.twitter.com/1/urls/count.json?url=%s"; -
wordpress-link-ranker/trunk/readme.txt
r553084 r553115 34 34 == Changelog == 35 35 36 = 0.2 = 37 * Fixed a bug when google page rank checker faild to generate hash code 38 36 39 = 0.1 = 37 40 * base version -
wordpress-link-ranker/trunk/wp-links-ranker.php
r553077 r553115 4 4 Plugin URI: http://www.moallemi.ir/blog 5 5 Description: This plugin adds the Google Page Rank and Alexa Rank to Links Page in WordPress admin panel 6 Version: 0. 16 Version: 0.2 7 7 Author: Reza Moallemi 8 8 Author URI: http://www.moallemi.ir/blog
Note: See TracChangeset
for help on using the changeset viewer.