/**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::create(\PR::getConfig()['tables']['roles'], function (Blueprint $table) {
         $table->increments('id');
         $table->integer(\PR::getConfig()['link']['id'])->unsigned();
         $table->foreign(\PR::getConfig()['link']['id'])->references('id')->on(\PR::getConfig()['link']['table'])->onDelete('cascade');
         $table->integer(\PR::getConfig()['tables']['profiles'] . '_id')->unsigned();
         $table->foreign(\PR::getConfig()['tables']['profiles'] . '_id')->references('id')->on(\PR::getConfig()['tables']['profiles'])->onDelete('cascade');
         $table->timestamps();
     });
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::create(\PR::getConfig()['tables']['profiles'], function (Blueprint $table) {
         $table->increments('id');
         $table->string('name');
         $table->string('alias');
         $table->string('slug');
         $table->softDeletes();
         $table->timestamps();
     });
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::create(\PR::getConfig()['tables']['access'], function (Blueprint $table) {
         $table->increments('id');
         $table->integer(\PR::getConfig()['tables']['profiles'] . '_id')->unsigned();
         $table->foreign(\PR::getConfig()['tables']['profiles'] . '_id')->references('id')->on(\PR::getConfig()['tables']['profiles'])->onDelete('cascade');
         $table->string('route_action');
         $table->string('route_name');
         $table->string('route_path');
         $table->timestamps();
     });
 }
    ?>
      <div class="tit"><?php 
    _e('Info for subdomain', 'all_in_one');
    ?>
 (<?php 
    echo $sub_url;
    ?>
)</div>
      <div class="clear"></div><br />

      <div class="left"><?php 
    _e('PageRank', 'all_in_one');
    ?>
:</div>
      <div class="right"><?php 
    $pr = new PR();
    echo $pr->get_google_pagerank($sub_url);
    ?>
</div>
      <div class="clear"></div>

      <div class="left"><?php 
    _e('BackLinks', 'all_in_one');
    ?>
:</div>
      <div class="right"><?php 
    echo GoogleBL($sub_url);
    ?>
</div>
      <div class="clear"></div>
                 $Flag++;
             }
             $CheckByte %= 10;
             if (0 !== $CheckByte) {
                 $CheckByte = 10 - $CheckByte;
                 if (1 === $Flag % 2) {
                     if (1 === $CheckByte % 2) {
                         $CheckByte += 9;
                     }
                     $CheckByte >>= 1;
                 }
             }
             return '7' . $CheckByte . $HashStr;
         }
     }
     $pr = new PR();
     echo "{$url} has Google PageRank: " . "<b><font size='15' color='red'>" . $pr->get_google_pagerank($url) . "</font></b>";
 }
 if (isset($c3)) {
     echo "<p><b>Checking Domain {$url} Age</b></p>";
     class DomainAge
     {
         private $WHOIS_SERVERS = array("com" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), "net" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), "org" => array("whois.pir.org", "/Created On:(.*)/"), "info" => array("whois.afilias.info", "/Created On:(.*)/"), "biz" => array("whois.neulevel.biz", "/Domain Registration Date:(.*)/"), "us" => array("whois.nic.us", "/Domain Registration Date:(.*)/"), "uk" => array("whois.nic.uk", "/Registered on:(.*)/"), "ca" => array("whois.cira.ca", "/Creation date:(.*)/"), "tel" => array("whois.nic.tel", "/Domain Registration Date:(.*)/"), "ie" => array("whois.iedr.ie", "/registration:(.*)/"), "it" => array("whois.nic.it", "/Created:(.*)/"), "cc" => array("whois.nic.cc", "/Creation Date:(.*)/"), "ws" => array("whois.nic.ws", "/Domain Created:(.*)/"), "sc" => array("whois2.afilias-grs.net", "/Created On:(.*)/"), "mobi" => array("whois.dotmobiregistry.net", "/Created On:(.*)/"), "pro" => array("whois.registrypro.pro", "/Created On:(.*)/"), "edu" => array("whois.educause.net", "/Domain record activated:(.*)/"), "tv" => array("whois.nic.tv", "/Creation Date:(.*)/"), "travel" => array("whois.nic.travel", "/Domain Registration Date:(.*)/"), "in" => array("whois.inregistry.net", "/Created On:(.*)/"), "me" => array("whois.nic.me", "/Domain Create Date:(.*)/"), "cn" => array("whois.cnnic.cn", "/Registration Date:(.*)/"), "asia" => array("whois.nic.asia", "/Domain Create Date:(.*)/"), "ro" => array("whois.rotld.ro", "/Registered On:(.*)/"), "aero" => array("whois.aero", "/Created On:(.*)/"), "nu" => array("whois.nic.nu", "/created:(.*)/"));
         public function age($domain)
         {
             $domain = trim($domain);
             //remove space from start and end of domain
             if (substr(strtolower($domain), 0, 7) == "http://") {
                 $domain = substr($domain, 7);
             }
             // remove http:// if included
Beispiel #6
0
<?php

// content of somefile.php
include 'pr.php';
$url = 'http://goloskarpat.info/profile/novynyzakarpattya/';
$pr = new PR();
echo "{$url} has Google PageRank: " . $pr->get_google_pagerank($url);
// Author: Juan Chaves
// Email: juan.cha63@gmail.com
// URL: http://www.egeon.es
// @egeones
// Version: 0.0.1
///////////////////
//////////////////
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//////////////////
//include pagerank class
include_once '../class/page_rank_class.php';
//get dates api pagerank
echo '"URL","Rank"<br />';
$lista = nl2br($_POST['list']);
$lista = explode('<br />', $lista);
foreach ($lista as $datos) {
    $url = trim($datos);
    $pr = new PR();
    echo '"' . trim($datos) . '","' . trim($pr->get_google_pagerank($url)) . '"<br />';
}
 protected function getPR($topic_id)
 {
     $oTopic = $this->Topic_GetTopicById($topic_id);
     $pr = new PR();
     return $pr->get_google_pagerank($oTopic->getUrl());
 }