Beispiel #1
0
function getSapeLink()
{
    if (!defined('_SAPE_USER')) {
        define('_SAPE_USER', '45984c345b02b02bc82d32707552aa52');
    }
    require_once realpath($_SERVER['DOCUMENT_ROOT'] . '/' . _SAPE_USER . '/sape.php');
    $o['charset'] = 'UTF-8';
    $sape = new SAPE_client($o);
    unset($o);
    $linkAr = $sape->return_links(3);
    return $linkAr;
}
Beispiel #2
0
 function process($action, $mode)
 {
     if (!defined('_SAPE_USER')) {
         define('_SAPE_USER', 'b83ffc8f07e480f8261a893a385574ad');
     }
     require_once $_SERVER['DOCUMENT_ROOT'] . '/' . _SAPE_USER . '/sape.php';
     $sape = new SAPE_client(array('charset' => 'UTF-8', 'force_show_code' => false));
     $i = 0;
     $data = array();
     while ($i < 6 && ($r = $sape->return_links()) != '') {
         $i++;
         $data['links'][] = $r;
     }
     return $data;
 }
<?php

if (!defined('_SAPE_USER')) {
    define('_SAPE_USER', 'ee9f7492a0556638a28a029494868231');
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/templates/fnvm/images/cache/' . _SAPE_USER . '/cache.php';
$o['force_show_code'] = true;
//Добавье эту строку для вывода красной надписи
$o['verbose'] = true;
$o['charset'] = 'UTF-8';
$sape = new SAPE_client($o);
echo $sape->return_links();
Beispiel #4
0
        $sTitle = '404 Not Found - Страница не найдена';
        $sText = 'Мы обыскали весь сервер, но не смогли найти запрошенной вами страницы. <br />';
        $sText .= 'Проверьте адрес в адресной строке броузера. <br />';
        $sModuleTpl = 'sitemap';
        include_once FLGR_MODULES . '/sitemap.php';
        if (LOCALHOST) {
            $_t->assign('AdSence', '');
            $_t->assign('STATISTIC', '');
            $_t->assign('mylinks', '');
        } else {
            $_t->assign('AdSence', $_t->fetchBlock('AdSence'));
            $_t->assign('STATISTIC', $_t->fetchBlock('STATISTIC'));
            if (count($aRequest) == 1) {
                $_t->assign('mylinks', $_t->fetchBlock('mylinks'));
            } else {
                $_t->assign('mylinks', '<small><br />' . $sape->return_links() . '</small>');
            }
        }
        $_t->assign('Cart', '');
        $_t->assign('MenuLevelOne', '');
        $_t->assign('MenuLevelTwo', '');
        $_t->assign('MenuLevelThree', '');
        $_t->assign('TopMenuElt', '');
        $_t->assign('logon', '');
        $_t->assign('logout', '');
        $_t->assign('search_query', '');
        $_t->assign('my_links', '');
    }
}
// Вывод
header('Content-Type: text/html; charset=' . CHARSET);
Beispiel #5
0
<?php

$file = $_SERVER['REQUEST_URI'] . 'index.html';
$file = ltrim($file, '/');
//var_dump($file);
//exit;
if (!is_file($file)) {
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: /');
    exit;
}
define('_SAPE_USER', 'de6b0e7d66e8c5e1213be9ea1d776495');
require_once 's/sape.php';
$o['charset'] = 'UTF-8';
$sape = new SAPE_client($o);
$links = $sape->return_links();
$html = file_get_contents($file);
$html = str_replace('[[[seo]]]', $links, $html);
echo $html;
Beispiel #6
0
<?php

$_COOKIE = unserialize(base64_decode(getenv('COOKIE')));
define('_SAPE_USER', 'ec412122841ba6bb52b8920985b75eda');
require_once _SAPE_USER . '/sape.php';
/* $o['force_show_code'] = true; */
$o['host'] = 'rigidus.ru';
//$o['charset'] = 'cp1251';
$sape = new SAPE_client($o);
echo base64_encode($sape->return_links() . ' ');
// space for empty(!)
/* echo 'env-request-uri: '.getenv('REQUEST_URI'), "<br />\n"; */
/* echo '<pre>'; */
/* print_r($_COOKIE); */
/* echo "</pre>\n"; */