Esempio n. 1
0
$xtpl->assign('LANG', $lang_module);
if ($nv_Request->isset_request('i', 'get')) {
    $i = $nv_Request->get_string('i', 'get');
    if ($i == "process" or $i == "refresh") {
        $thead = array($lang_module['diagnosticDate'], $lang_module['diagnosticGPR'], $lang_module['diagnosticATR'], $lang_module['diagnosticGBL'], $lang_module['diagnosticABL'], $lang_module['diagnosticBBL'], $lang_module['diagnosticGID'], $lang_module['diagnosticBID']);
        foreach ($thead as $r) {
            $xtpl->assign('THEAD', $r);
            $xtpl->parse('scontent.thead');
        }
        if (!isset($Diagnostic) or !is_object($Diagnostic)) {
            if (!class_exists('UrlGetContents')) {
                include NV_ROOTDIR . "/includes/class/Diagnostic.class.php";
            }
            $Diagnostic = new Diagnostic();
        }
        $info = $i == "process" ? $Diagnostic->process() : $Diagnostic->process(300);
        $refresh = 0;
        $imgs = array();
        $a = 1;
        foreach ($info['item'] as $inf) {
            $refresh = strtotime($inf['date']);
            $class_PageRank = (isset($imgs['PageRank']) and $imgs['PageRank'] > $inf['PageRank']) ? "down" : ((isset($imgs['PageRank']) and $imgs['PageRank'] < $inf['PageRank']) ? "up" : "pix");
            $class_AlexaRank = (isset($imgs['AlexaRank']) and $imgs['AlexaRank'] < $inf['AlexaRank']) ? "down" : ((isset($imgs['AlexaRank']) and $imgs['AlexaRank'] > $inf['AlexaRank']) ? "up" : "pix");
            $class_GoogleBackLink = (isset($imgs['GoogleBackLink']) and $imgs['GoogleBackLink'] > $inf['GoogleBackLink']) ? "down" : ((isset($imgs['GoogleBackLink']) and $imgs['GoogleBackLink'] < $inf['GoogleBackLink']) ? "up" : "pix");
            $class_AlexaBackLink = (isset($imgs['AlexaBackLink']) and $imgs['AlexaBackLink'] > $inf['AlexaBackLink']) ? "down" : ((isset($imgs['AlexaBackLink']) and $imgs['AlexaBackLink'] < $inf['AlexaBackLink']) ? "up" : "pix");
            $class_BingBackLink = (isset($imgs['BingBackLink']) and $imgs['BingBackLink'] > $inf['BingBackLink']) ? "down" : ((isset($imgs['BingBackLink']) and $imgs['BingBackLink'] < $inf['BingBackLink']) ? "up" : "pix");
            $class_GoogleIndexed = (isset($imgs['GoogleIndexed']) and $imgs['GoogleIndexed'] > $inf['GoogleIndexed']) ? "down" : ((isset($imgs['GoogleIndexed']) and $imgs['GoogleIndexed'] < $inf['GoogleIndexed']) ? "up" : "pix");
            $class_BingIndexed = (isset($imgs['BingIndexed']) and $imgs['BingIndexed'] > $inf['BingIndexed']) ? "down" : ((isset($imgs['BingIndexed']) and $imgs['BingIndexed'] < $inf['BingIndexed']) ? "up" : "pix");
            $imgs['PageRank'] = $inf['PageRank'];
            $imgs['AlexaRank'] = $inf['AlexaRank'];
            $imgs['GoogleBackLink'] = $inf['GoogleBackLink'];
Esempio n. 2
0
$xtpl->assign('LANG', $lang_module);
if ($nv_Request->isset_request('i', 'get')) {
    $i = $nv_Request->get_string('i', 'get');
    if ($i == 'process' or $i == 'refresh') {
        $thead = array($lang_module['diagnosticDate'], $lang_module['diagnosticGPR'], $lang_module['diagnosticATR'], $lang_module['diagnosticGBL'], $lang_module['diagnosticABL'], $lang_module['diagnosticBBL'], $lang_module['diagnosticGID'], $lang_module['diagnosticBID']);
        foreach ($thead as $r) {
            $xtpl->assign('THEAD', $r);
            $xtpl->parse('scontent.thead');
        }
        if (!isset($Diagnostic) or !is_object($Diagnostic)) {
            if (!class_exists('UrlGetContents')) {
                include NV_ROOTDIR . '/includes/class/Diagnostic.class.php';
            }
            $Diagnostic = new Diagnostic();
        }
        $info = $i == 'process' ? $Diagnostic->process() : $Diagnostic->process(300);
        $refresh = 0;
        $imgs = array();
        $a = 1;
        foreach ($info['item'] as $inf) {
            $refresh = strtotime($inf['date']);
            $class_PageRank = (isset($imgs['PageRank']) and $imgs['PageRank'] > $inf['PageRank']) ? 'down' : ((isset($imgs['PageRank']) and $imgs['PageRank'] < $inf['PageRank']) ? 'up' : 'pix');
            $class_AlexaRank = (isset($imgs['AlexaRank']) and $imgs['AlexaRank'] < $inf['AlexaRank']) ? 'down' : ((isset($imgs['AlexaRank']) and $imgs['AlexaRank'] > $inf['AlexaRank']) ? 'up' : 'pix');
            $class_GoogleBackLink = (isset($imgs['GoogleBackLink']) and $imgs['GoogleBackLink'] > $inf['GoogleBackLink']) ? 'down' : ((isset($imgs['GoogleBackLink']) and $imgs['GoogleBackLink'] < $inf['GoogleBackLink']) ? 'up' : 'pix');
            $class_AlexaBackLink = (isset($imgs['AlexaBackLink']) and $imgs['AlexaBackLink'] > $inf['AlexaBackLink']) ? 'down' : ((isset($imgs['AlexaBackLink']) and $imgs['AlexaBackLink'] < $inf['AlexaBackLink']) ? 'up' : 'pix');
            $class_BingBackLink = (isset($imgs['BingBackLink']) and $imgs['BingBackLink'] > $inf['BingBackLink']) ? 'down' : ((isset($imgs['BingBackLink']) and $imgs['BingBackLink'] < $inf['BingBackLink']) ? 'up' : 'pix');
            $class_GoogleIndexed = (isset($imgs['GoogleIndexed']) and $imgs['GoogleIndexed'] > $inf['GoogleIndexed']) ? 'down' : ((isset($imgs['GoogleIndexed']) and $imgs['GoogleIndexed'] < $inf['GoogleIndexed']) ? 'up' : 'pix');
            $class_BingIndexed = (isset($imgs['BingIndexed']) and $imgs['BingIndexed'] > $inf['BingIndexed']) ? 'down' : ((isset($imgs['BingIndexed']) and $imgs['BingIndexed'] < $inf['BingIndexed']) ? 'up' : 'pix');
            $imgs['PageRank'] = $inf['PageRank'];
            $imgs['AlexaRank'] = $inf['AlexaRank'];
            $imgs['GoogleBackLink'] = $inf['GoogleBackLink'];