Plugin Directory

Changeset 553115


Ignore:
Timestamp:
06/04/2012 07:14:31 PM (14 years ago)
Author:
moallemi
Message:
 
Location:
wordpress-link-ranker/trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • wordpress-link-ranker/trunk/lib/class.seostats.config.php

    r553077 r553115  
    4040    define('SEOMOZ_SECRET_KEY',
    4141        '7145d56a1279285be92e6e4875bba8ee');
     42
     43    define('ERR_LOG_ENABLED', true);
     44    define('ERR_LOG_PATH', 'errlog.txt');
    4245?>
  • wordpress-link-ranker/trunk/lib/class.seostats.php

    r553077 r553115  
    11<?php
    22    /************************************************************************
    3      * PHP Class SEOstats 2.0.9
     3     * PHP Class SEOstats 2.1.0
    44     *=======================================================================
    55     * PHP class to request a bunch of SEO data, such as Backlinkdetails,
    66     * Traffic Statistics, Pageauthority and much more.
    77     *=======================================================================
    8      * @package     class.seostats.2.0.9
     8     * @package     class.seostats.2.1.0
    99     * @link        https://github.com/eyecatchup/SEOstats/
    10      * @updated     2012/01/30
     10     * @updated     2012/05/12
    1111     * @author      Stephan Schmitz <eyecatchup@gmail.com>
    1212     * @copyright   2010-present, Stephan Schmitz
     
    3131     *                                  Updated constant
    3232     *                                              PAGERANK_CHECKSUM_API_URI
     33     * 2012/05/12   Stephan Schmitz     Initial commit of new child class:
     34     *                                              SEOstats_SEMRush()   
    3335     *=======================================================================
    3436     * Note: The above changelog is related to this file only. Each file of
     
    7274class SEOstats
    7375{
    74     const BUILD_NO                     = '2.0.9';
     76    const BUILD_NO                  = '2.1.0';
    7577    const PAGERANK_CHECKSUM_API_URI = 'http://www.nahklick.de/api/pagerank/prch.php?url=';
    7678
     
    127129    }
    128130
     131    /**
     132     * Logs an error to the error log file
     133     *
     134     * @param  String $errtxt The error message to log
     135     */
    129136    function errlogtxt($errtxt)
    130137    {
    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        }
    136144    }
    137145
     
    445453        return SEOstats_Bing::bingSiteindexArray($this->host);
    446454    }
     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    }
    447466
    448467    /**
  • wordpress-link-ranker/trunk/lib/modules.php

    r553077 r553115  
    44     *
    55     *  @package    class.seostats
    6      *  @updated    2011/04/29
     6     *  @updated    2012/05/12
    77     *  @author     Stephan Schmitz <eyecatchup@gmail.com>
    88     *  @copyright  2010-present, Stephan Schmitz
     
    1414include_once('seostats.google.php');
    1515include_once('seostats.yahoo.php');
     16include_once('seostats.semrush.php');
    1617include_once('seostats.seomoz.php');
    1718include_once('seostats.alexa.php');
  • wordpress-link-ranker/trunk/lib/seostats.google.php

    r553077 r553115  
    2323     *                                  performanceAnalysis: Updated request URL.
    2424     *                                  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>.
    2527     */
    2628
     
    160162            $ch = (($ch >> 23) & 0x1ff) | $ch << 9;
    161163        }
     164        // On 64-bit platforms, mask and re-complement to 32-bit
     165        if (PHP_INT_MAX != 2147483647) { $ch = -(~($ch & 0xFFFFFFFF) + 1); }
    162166        return sprintf('8%x', $ch);
    163167    }   
     
    182186            $c = self::zerofill($c, 23) | $c << 9;
    183187        }
     188    // On 64-bit platforms, mask and re-complement to 32-bit
     189    if (PHP_INT_MAX != 2147483647) { $c = -(~($c & 0xFFFFFFFF) + 1); }
    184190        return '8' . self::hexencode($c);
    185191    }
  • wordpress-link-ranker/trunk/lib/seostats.twitter.php

    r553077 r553115  
    2929     * @return       integer            Returns the total of twitter mentions for a single page.
    3030     */
    31     function getTweetCount($url) {
     31    public static function getTweetCount($url) {
    3232        $url = urlencode($url);
    3333        $twitterEndpoint = "http://urls.api.twitter.com/1/urls/count.json?url=%s";
  • wordpress-link-ranker/trunk/readme.txt

    r553084 r553115  
    3434== Changelog ==
    3535
     36= 0.2 =
     37* Fixed a bug when google page rank checker faild to generate hash code
     38
    3639= 0.1 =
    3740* base version
  • wordpress-link-ranker/trunk/wp-links-ranker.php

    r553077 r553115  
    44  Plugin URI: http://www.moallemi.ir/blog
    55  Description: This plugin adds the Google Page Rank and Alexa Rank to Links Page in WordPress admin panel
    6   Version: 0.1
     6  Version: 0.2
    77  Author: Reza Moallemi
    88  Author URI: http://www.moallemi.ir/blog
Note: See TracChangeset for help on using the changeset viewer.