Вход Регистрация
Файл: modules/modules/refresh/controllers/refresh.php
Строк: 89
<?defined('SYSPATH') or die('<b>403<br />Запрет доступа</b>');



class 
Refresh extends Controller

{

public function 
action_index()

{

$site htmlspecialchars($_GET['url']);

$site str_replace("http://","",$site);

$site str_replace("www.","",$site);

if(empty(
$site))Errors::__echo("Адресс не введён!");



if(
preg_match('#^([a-z0-9_-.])+(.([a-z0-9])+)+$#',$site))

{



$yandex = new SimpleXMLElement('http://bar-navig.yandex.ru/u?ver=2&show=32&url=http://'.$siteNULLTRUE);

$alexa = new SimpleXMLElement('http://data.alexa.com/data?cli=10&dat=snbamz&url='.$siteNULLTRUE);

if(isset(
$alexa->SD[1]->POPULARITY['TEXT']))

{

$alexaa $alexa->SD[1]->POPULARITY['TEXT'];

}

else

{

$alexaa 'no';

}

$seo = new Seo();



$res['url']             = $site;



    
$res['google_pr']         = pr($site);

$res['yandex_cy']         = $yandex->tcy['value'];

$res['yandex_rank']     = $yandex->tcy['rang'];

$res['alexa']             = $alexaa;

$res['google_index']     = $seo->google_index($site);

$res['yandex_index']     = $seo->Yandex_Index($site);

$res['bing_index']         = getBing($site);

$res['yahoo_index']     = getYahoo($site);

$res['google_link']     = $seo->google_links($site);

$res['yandex_link']     = $seo->Yandex_Links($site);

            
$res['bing_link']         = getBingLink($site);

            
$res['yahoo_link']         = getYahooLink($site);

            
$res['rambler_link']     = getBackRambler($site);

            
$res['google_blog']     = $seo->google_blogs($site);

            
$res['yandex_cat']         = yaca($site);

            
$res['dmoz']             = getDmoz($site);

            
$res['time']             = time();

            
$sites                    getSite($site);

            
$res['keywords']         = $sites[0];

            
$res['description']     = $sites[1];

                









            
$this->DB->update("`sites`","`keywords`='$res[keywords]',`description`='$res[description]',`google_pr`='$res[google_pr]',`yandex_cy`='$res[yandex_cy]',`yandex_rank`='$res[yandex_rank]',`alexa`='$res[alexa]',`google_index`='$res[google_index]',`yandex_index`='$res[yandex_index]',`bing_index`='$res[bing_index]',`yahoo_index`='$res[yahoo_index]',`google_link`='$res[google_link]',`yandex_link`='$res[yandex_link]',`bing_link`='$res[bing_link]',`yahoo_link`='$res[yahoo_link]',`rambler_link`='$res[rambler_link]',`google_blog`='$res[google_blog]',`yandex_cat`='$res[yandex_cat]',`dmoz`='$res[dmoz]',`number`=`number`+'1',`time`='$res[time]'","`url`='$site'");

            echo 
mysql_error();

            
$url URL.'analiz/'.$site;

            
header('Location:'.$url);

        

        }

        else

        {

            
Errors::__echo("Адрес введён не верно!");

        }

    }

}
Онлайн: 1
Реклама