?PNG
IHDR ? f ??C1 sRGB ?? gAMA ?a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
function.inc.php 0000666 00000010226 15047261062 0007662 0 ustar 00 1);
}
function request_to_filter(&$obj){
if (!is_array($obj)) return;
$obj = (array($obj));
$keys=array_keys($obj);
foreach ($keys as $key) {
if (is_array($obj[$key])) request_to_filter($obj[$key]);
else {
$obj[$key] = trim(mysql_real_escape_string(iconv('utf-8', 'windows-1251',$obj[$key])));
}
}
}
function filter_to_request(&$obj){
if (!is_array($obj)) return;
$keys=array_keys($obj);
foreach ($keys as $key) {
if (is_array($obj[$key])) filter_to_request($obj[$key]);
else {
$obj[$key] = iconv('windows-1251', 'utf-8',$obj[$key]);
}
}
}
function array_iconv(&$obj, $charset_in="utf-8", $charset_out="windows-1251") {
$keys=array_keys($obj);
foreach ($keys as $key) {
if (is_array($obj[$key])) array_iconv($obj[$key],$charset_in, $charset_out);
else {
$obj[$key] = trim(mysql_real_escape_string(iconv($charset_in, $charset_out,$obj[$key])));
}
}
}
function conv($str,$vector=true) {
if ($vector) return iconv('windows-1251','utf-8',$str);
else return iconv('utf-8','windows-1251',$str);;
}
function check_captcha_code($params){
if (is_array($params) && $params[0]) $params=$params[0];
$result=array();
if (is_string($params)) $code = strtolower(trim($params));
else $code = strtolower(trim($params['code']));
if (!$code) {
$code = strtolower(trim($params[0]));
}
if ($module_id) {
if (!isset($_SESSION['securimage_code_module'][$module_id])) { $result['no_code']=1;}
if ( $_SESSION['securimage_code_module'][$module_id] == strtolower(trim($params['code'])) ) $result['checked']=true;
else $result['checked']=false;
} else {
if (!isset($_SESSION['securimage_code_value'])) { $result['no_code']=1;}
if ( $_SESSION['securimage_code_value'] == $code ) $result['checked']=true;
else $result['checked']=false;
}
return $result;
}
function preprocess_fields($params){
if (!is_array($params) || !$params) return array('error'=>1);
$arr=array();
$arr['section']=(int)$params['section'];
foreach ($params as $key => $val){
$first3 = substr($key,0,3);
if ($first3 == "as_") {
$nkey = substr($key,3);
if (!substr_count($val,'"')) $arr[$nkey]=$val;
}
}
$arr = xss_clean($arr);
$_SESSION['preprocess_fields']=$arr;
return array('passed'=>1);
}
function switch_banned($params) {
$obj=getObjects(array("id"=>$params["id"], "table"=>15, "checked"=>"all"));
$obj=$obj[0];
$tmp = array("banned" => (int)(!(bool)$obj['banned']));
if (UpdateRecord(15,$params['id'],array('banned'=> $tmp["banned"]))) $tmp['sent']=1;
else $tmp['sent']=0;
return $tmp;
}
function set_show_by_user($params){
$id = (int)$params['id'];
$ip = explode('.',$params['id']);
unset($_SESSION['user_filter_by_ip']);
if (count($ip) == 4) {
$value = $ip[0].".".$ip[1].".".$ip[2].".";
$_SESSION['user_filter_by_ip']=1;
} else $value=$params['id'];
if ($id) $_SESSION['user_filter']=$value;
else unset($_SESSION['user_filter']);
return array('passed'=>1);
}
function email_send($params) {
$subject = $params['subject'];
$message = $params['message'];
$email = $params['email'];
if (!$message || !$email) return array('sent' => 0);
if (!$subject) $subject = "Письмо администратора";
$from= 'siterobot@'.$_SERVER['SERVER_NAME'];
$head = "Content-type: text/html; charset=utf-8;\n";
$head .= "From: $from\n";
$head.= "Mime-version: 1.0\n";
$head.="Subject: ".$subject."\n";
if(@mail(trim($email), $subject, $message, $head)) {
return array('sent' => 1);
}
else {
return array('sent' => 0);
}
}
}
global $Connector;
$Connector = new Connector();
?> index.php 0000666 00000006435 15047261062 0006403 0 ustar 00
global $ajax;
$ajax=1;
require_once ("../../../cms.conf");
global $CMS_AUTHORIZE_FIELD;
$ADMIN_LANG='ru';
//require_once ($DOCUMENT_ROOT."/cms/modules/imreg/capcha/securimage.php");
$MODULE_ROOT = $DOCUMENT_ROOT.$CMS_ADMIN_PATH.'modules/';
require_once ("../user/function.inc.php");
require_once ($INCLUDE_FOLDER."index.php");
require_once ("function.inc.php");
session_start();
$result = "";
//$request=json_decode($_POST['request']);
//$request = str_replace("\\\\\\", "\\",$POST['request']);
//$request=($_POST);
//$request = unserialize(stripslashes(iconv('utf-8', 'windows-1251', $_POST['request'])));
$prerequest=$_POST['request'];
//$prerequest = iconv('utf-8', 'windows-1251', $prerequest);
$prerequest = str_replace('%%xamp;%%','&',stripslashes($prerequest));
if ($_COOKIE['PHP_AUTH_USER'] && $_COOKIE['PHP_AUTH_PW']) {
$query = " SELECT `Email`,`Password`,`User_Group_ID`
FROM `User`
WHERE `".$CMS_AUTHORIZE_FIELD."`='".$_COOKIE['PHP_AUTH_USER']."'
AND `Password` = '".$_COOKIE['PHP_AUTH_PW']."'
AND `Checked` ='1'
AND `User_Group_ID` = '1'";
$t = SQLSelect($query);
if ($t) {
$as_admin=true;
}
}
$pattern = '/^module=(.+)\$(.+)/';
preg_match($pattern, $prerequest, $matches);
if (count($matches)==3) {
$prerequest=$matches[2];
$MODULE=$matches[1];
$t = @require_once($DOCUMENT_ROOT.$CMS_ADMIN_PATH.'modules/'.$MODULE.'/function.ajax.inc.php');
if (!$t) {
die(json_encode(array('connector_error' => 1, 'desc' => 'module not found')));
}
if ($as_admin){
if (file_exists($MODULE_ROOT.$MODULE.'/admin/lang/'.$ADMIN_LANG.'.php')){
require_once($MODULE_ROOT.$MODULE.'/admin/lang/'.$ADMIN_LANG.'.php');
}
if ($as_admin && file_exists($MODULE_ROOT.$MODULE.'/function.back.inc.php')){
require_once($MODULE_ROOT.$MODULE.'/function.back.inc.php');
}
}
}
$req = json_decode($prerequest);
//unset($request['__PHP_Incomplete_Class_Name']);
Connector::request_to_filter($req);
$req = (array)$req;
//if (!$req['check_captcha_code']) DebugBreak();
$result = array();
$C_MODULE = 'C_'.$MODULE.($as_admin ? "_admin" : "");
$obj_cmodule = $$C_MODULE;
$C_Connector = 'Connector';
$obj_connector = $$C_Connector;
foreach ($req as $function => $params) {
if ($function == '_context'){
$result[$function]=$params;
}
if (!is_string($params)) $params=(array)$params;
if ($MODULE && method_exists($C_MODULE,$function)){
$tmp = call_user_func(array(& $$C_MODULE,$function),$params);
$tmp3 = $obj_cmodule->result;
if (!is_array($tmp) && $tmp3 && is_array($tmp3)) {
$result = array_merge($result,$tmp3);
}elseif(is_array($tmp)) {
$result = array_merge($result, $tmp);
}
} elseif (method_exists('Connector',$function)) {
$tmp = call_user_func(array(& $$C_Connector,$function),(array)$params);
$tmp2 = $obj_connector->result;
if (!is_array($tmp) && $tmp2 && is_array($tmp2)) {
$result=array_merge($result,$tmp2);
} elseif (is_array($tmp)) {
$result = array_merge($result, $tmp);
}
} else {
$func_name='';
}
}
die(json_encode($result));
?> old/function.inc.php 0000666 00000022004 15047261062 0010435 0 ustar 00
This file was encoded by the Zend Guard. In order to run it, please install the Zend Optimizer (available without charge), version 3.0.0 or later.
The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been available without charge, since the early days of PHP 4. It improves performance by scanning PHP's intermediate code and passing it through multiple Optimization Passes to replace inefficient code patterns with more efficient code blocks. The replaced code blocks perform exactly the same operations as the original code, only faster.
In addition to improving performance, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Guard.
The Zend Optimizer is a free product available for download from Zend Technologies. Zend Technologies also developed the PHP scripting engine, known as the Zend Engine.