/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/viewtopic.php
if (!IS_GUEST) {
$notify_user = bf($userdata['user_opt'], 'user_opt', 'user_notify');
$template->assign_vars(['QR_NOTIFY_CHECKED' => ($notify_user) ? ($notify_user && $is_watching_topic) : $is_watching_topic]);
}
}
}
foreach ($is_auth as $name => $is) {
$template->assign_vars([strtoupper($name) => $is]);
}
$template->assign_vars(['PG_ROW_CLASS' => $pg_row_class ?? 'row1']);
if (IS_ADMIN) {
$template->assign_vars(['U_LOGS' => "admin/admin_log.php?t=$topic_id&db={$bb_cfg['log_days_keep']}"]);
}
print_page('viewtopic.tpl');