/var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php
return '/code.php?user=' . _SAPE_USER . '&host=' . $this->_host;
}
protected function _set_data($data)
{
if ($this->_ignore_case) {
$this->_links = array_change_key_case($data);
} else {
$this->_links = $data;
}
if (isset($this->_links['__sape_delimiter__'])) {
$this->_links_delimiter = $this->_links['__sape_delimiter__'];
}
// определяем кодировку кеша
if (isset($this->_links['__sape_charset__'])) {
$this->_sape_charset = $this->_links['__sape_charset__'];
} else {
$this->_sape_charset = '';
}
if (@array_key_exists($this->_request_uri, $this->_links) && is_array($this->_links[$this->_request_uri])) {
$this->_links_page = $this->_links[$this->_request_uri];
} else {
if (isset($this->_links['__sape_new_url__']) && strlen($this->_links['__sape_new_url__'])) {
if ($this->_is_our_bot || $this->_force_show_code) {
$this->_links_page = $this->_links['__sape_new_url__'];
}
}
}
if (@array_key_exists($this->_request_uri, $this->_links['__sape_teasers__']) && is_array($this->_links['__sape_teasers__'][$this->_request_uri])) {
$this->_teasers_page = $this->_links['__sape_teasers__'][$this->_request_uri];
}
//Есть ли обязательный вывод
if (isset($this->_links['__sape_page_obligatory_output__'])) {
$this->_page_obligatory_output = $this->_links['__sape_page_obligatory_output__'];
}
// Есть ли флаг блочных ссылок
if (isset($this->_links['__sape_show_only_block__'])) {
Arguments
"array_key_exists(): Argument #2 ($array) must be of type array, bool given"
/var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php
$data_new = @serialize($hash);
if ($data_new) {
$data = $data_new;
}
$this->_write($this->_db_file, $data);
break;
}
}
}
}
}
// Убиваем PHPSESSID
if (strlen(session_id())) {
$session = session_name() . '=' . session_id();
$this->_request_uri = str_replace(array('?' . $session, '&' . $session), '', $this->_request_uri);
}
$this->_set_data(@unserialize($data));
return true;
}
protected function _return_obligatory_page_content()
{
$s_globals = new SAPE_globals();
$html = '';
if (isset($this->_page_obligatory_output) && !empty($this->_page_obligatory_output)
&& false == $s_globals->page_obligatory_output_shown()
) {
$s_globals->page_obligatory_output_shown(true);
$html = $this->_page_obligatory_output;
}
return $html;
}
/**
/var/www/fastuser/data/www/cybertorrent.pro/25327be6be125af26d26d2de473ad5a3/sape.php
{
protected $_links_delimiter = '';
protected $_links = array();
protected $_links_page = array();
protected $_teasers_page = array();
protected $_user_agent = 'SAPE_Client PHP';
protected $_show_only_block = false;
protected $_block_tpl = '';
protected $_block_tpl_options = array();
protected $_block_uri_idna = array();
protected $_return_links_calls;
protected $_teasers_css_showed = false;
public function __construct($options = null)
{
parent::__construct($options);
$this->_load_data();
}
/**
* Обработка html для массива ссылок
*
* @param string $html
* @param null|array $options
*
* @return string
*/
protected function _return_array_links_html($html, $options = null)
{
if (empty($options)) {
$options = array();
}
// если запрошена определенная кодировка, и известна кодировка кеша, и они разные, конвертируем в заданную
if (
strlen($this->_charset) > 0
/var/www/fastuser/data/www/cybertorrent.pro/library/includes/page_footer.php
echo $client_lnk->build_links();
if (!defined('BLOCK_FILE'))
include_once($_SERVER['DOCUMENT_ROOT'].'/putslinkshere/mainlink.php');
$o['USERNAME'] = '88D26BB7517D8C0F4C196662EE0938C6';
// код Маинлинка
*/
// sape
if (!defined('_SAPE_USER'))
define('_SAPE_USER', '25327be6be125af26d26d2de473ad5a3');
require_once(realpath($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php'));
$o = array();
$o['multi_site'] = true; //Указывает скрипту наличие нескольких сайтов
$o['charset'] = 'utf-8';
$o['force_show_code'] = true;
$sape = new SAPE_client($o);
echo $sape->return_links();
if (!defined('BB_ROOT')) {
die(basename(__FILE__));
}
global $bb_cfg, $userdata, $template, $DBS, $lang;
if (!empty($template)) {
$template->assign_vars([
'SIMPLE_FOOTER' => !empty($gen_simple_header),
'POWERED' => 'Fueled by <a target="_blank" href="https://github.com/torrentpier/torrentpier">TorrentPier</a> © 2005-' . date('Y'),
'SHOW_ADMIN_LINK' => (IS_ADMIN && !defined('IN_ADMIN')),
'ADMIN_LINK_HREF' => 'admin/index.php',
]);
$template->set_filenames(['page_footer' => 'page_footer.tpl']);
$template->pparse('page_footer');
}
/var/www/fastuser/data/www/cybertorrent.pro/library/includes/functions.php
* 'no_footer'
*/
function print_page($args, $type = '', $mode = '')
{
global $template, $gen_simple_header;
$tpl = (is_array($args) && !empty($args['tpl'])) ? $args['tpl'] : $args;
$tpl = ($type === 'admin') ? ADMIN_TPL_DIR . $tpl : $tpl;
$gen_simple_header = (is_array($args) && !empty($args['simple']) or $type === 'simple') ? true : $gen_simple_header;
if ($mode !== 'no_header') {
require(PAGE_HEADER);
}
$template->set_filenames(['body' => $tpl]);
$template->pparse('body');
if ($mode !== 'no_footer') {
require(PAGE_FOOTER);
}
}
function caching_output($enabled, $mode, $cache_var_name, $ttl = 300)
{
if (!$enabled || !CACHE('bb_cache')->used) {
return;
}
if ($mode == 'send') {
if ($cached_contents = CACHE('bb_cache')->get($cache_var_name)) {
exit($cached_contents);
}
} elseif ($mode == 'store') {
if ($output = ob_get_contents()) {
CACHE('bb_cache')->set($cache_var_name, $output, $ttl);
}
}
}
Arguments
"/var/www/fastuser/data/www/cybertorrent.pro/library/includes/page_footer.php"
/var/www/fastuser/data/www/cybertorrent.pro/viewforum.php
$template->assign_vars([
'PAGE_URL' => $pg_url,
'PAGE_URL_TPP' => url_arg($pg_url, 'tpp', null),
'FOUND_TOPICS' => $found_topics,
'AUTH_MOD' => $is_auth['auth_mod'],
'SESSION_ADMIN' => $userdata['session_admin'],
'MOD_REDIRECT_URL' => $mod_redirect_url,
'MODERATION_ON' => $moderation,
'PRUNE_DAYS' => $forum_data['prune_days'],
'CAT_ID' => $forum_data['cat_id'],
'CAT_TITLE' => $forums['cat_title_html'][$forum_data['cat_id']],
'U_VIEWCAT' => CAT_URL . $forum_data['cat_id'],
'PARENT_FORUM_HREF' => ($parent_id = $forum_data['forum_parent']) ? FORUM_URL . $forum_data['forum_parent'] : '',
'PARENT_FORUM_NAME' => ($parent_id = $forum_data['forum_parent']) ? $forums['forum_name_html'][$parent_id] : '',
]);
print_page('viewforum.tpl');