?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
PK P)[8UDc Dc main.inc.phpnu W+A
function LoadEnv() {
global $LinkID;
global $MODULE_VARS;
global $as_admin;
global $site, $section, $object;
global $current_site;
global $current_section;
global $current_object;
global $as_section_objects;
global $other_section_objects;
global $current_record;
global $main_pages;
global $system_table_fields, $user_table_mode, $user_table_env, $system_env;
global $as_section_data, $as_section_level,$lang;
LoadSystemSystem_Config ();
// Define $site, $section and $object
$main_pages=array();
$r=mysql_query("SELECT `Site_ID`,`Title_Section_ID` FROM `Site`;");
while ($t=mysql_fetch_row($r)){ $main_pages[$t[0]]=$t[1]; }
if (!$site) {
$res = mysql_query("SELECT Site_ID FROM Site ORDER BY Priority LIMIT 1",$LinkID);
list($site) = mysql_fetch_row($res);
mysql_free_result($res);
if (!$site) exit;
}
if (!$section) {
$res = mysql_query("SELECT Title_Section_ID FROM Site WHERE Site_ID='".$site."'",$LinkID);
list($section) = mysql_fetch_row($res);
mysql_free_result($res);
if (!$section) exit;
}
if (!$object) {
if (!$as_admin) $checked_only = " AND Checked=1";
$res = mysql_query("SELECT Section_Object_ID FROM Section_Object WHERE Section_ID=".$section.$checked_only." ORDER BY Priority LIMIT 1", $LinkID);
list($object) = mysql_fetch_row($res);
mysql_free_result($res);
}
// Load all section_class id's into array
$res = mysql_query("SELECT Section_Object_ID FROM Section_Object WHERE Section_ID='".$section."' ORDER BY Priority", $LinkID);
$i=0; while (list($as_section_objects[$i]) = mysql_fetch_row($res)) $i++;
mysql_free_result($res);
// Load system table field info
$res = mysql_query("SELECT b.System_Name, a.Object_Field_ID, a.Object_Field_Name, a.TypeOfData_ID, a.Inheritance, a.Format FROM Object_Field AS a, System AS b WHERE a.System_ID=b.System_ID ORDER BY a.System_ID,a.Priority", $LinkID);
$sys_name_tmp = ""; $i=0;
while (list($system_table_name,$field_id,$field_name,$field_type,$inheritance,$field_format) = mysql_fetch_row($res)) {
$i = ($sys_name_tmp!=$system_table_name) ? 0 : $i+1 ;
$system_table_fields[$system_table_name][$i]['id'] = $field_id;
$system_table_fields[$system_table_name][$i]['name'] = $field_name;
$system_table_fields[$system_table_name][$i]['type'] = $field_type;
$system_table_fields[$system_table_name][$i]['inheritance'] = $inheritance;
$system_table_fields[$system_table_name][$i]['format'] = $field_format;
$sys_name_tmp = $system_table_name;
}
mysql_free_result($res);
// Load environment
$as_section_level = 0;
$current_site = InheritSiteEnv($site);
$current_section = InheritSectionEnv($section);
$current_object = InheritSectionObjectEnv($object);
if (!isset($current_object['System_ID'])) $current_object['System_ID'] = 0;
if (!isset($current_section['Section_ID'])) $current_section['Section_ID'] = 0;
if ($current_object['System_ID'] || (isset($MODULE_VARS['users']['USER_MODIFY_SECTION']) && $current_section['Section_ID']==$MODULE_VARS['users']['USER_MODIFY_SECTION'])) $user_table_mode = true;
else $user_table_mode = false;
if ($user_table_mode) $user_table_env = LoadSystemTableObject("User");
$as_section_data[$as_section_level]["Section_Name"] = $current_site["Site_Name"];
$as_section_data[$as_section_level]["Hidden_URL"] = "/";
if ($table = (empty($current_object['Object_ID']) ? false : $current_object['Object_ID'])) {
$query = "SELECT * FROM `".(LOWER_CASE_TABLES ? "section_object" : "Section_Object")."` WHERE `Section_ID`= '".$current_section['Section_ID']."' AND `checked` = '1' AND `Object_ID` <> '".$table."' ORDER BY `Priority` ";
$res = mysql_query($query);
$other_section_objects=array();
while ($t = mysql_fetch_assoc($res)) {
$other_section_objects[$t['Object_ID']]=$t;
}
}
preg_match('/(\.html)$/', $_SERVER['REQUEST_URI'], $matches);
if ($matches && $table) {
$pos1 = strrpos($_SERVER['REQUEST_URI'], '/')+1;
$pos2 = strpos($_SERVER['REQUEST_URI'],".html")-$pos1;
$keyword = substr($_SERVER['REQUEST_URI'],$pos1,$pos2);
$query = "SELECT * FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."".$table."` WHERE (`Keyword`= '".$keyword."') OR (`Data_ID` = '".$keyword."');";
$res = mysql_query($query);
$current_record = mysql_fetch_assoc($res);
if (!$current_record && $other_section_objects) {
foreach ($other_section_objects as $table=>$obj) {
$query = "SELECT * FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."".$table."` WHERE `Keyword`= '".$keyword."';";
$res = mysql_query($query);
$current_record = mysql_fetch_assoc($res);
if ($current_record) break;
}
}
$priority = $current_record['Priority'];
$data_id = $current_record['Data_ID'];
$current_record = set_fields_to_property_set($current_record,$table);
$current_record['_class_ID']=$table;
$current_record['Data_ID'] = $data_id;
$current_record['Priority'] = $priority;
}
$lang=$current_site['Site_Lang'];
}
function InheritSiteEnv ($site) {
global $LinkID, $CMS_UPLOAD_PATH, $system_table_fields;
$res = mysql_query("SELECT * FROM `".(LOWER_CASE_TABLES ? "site" : "Site")."` WHERE `Site_ID`='".$site."'", $LinkID);
$site_env = mysql_fetch_assoc($res);
mysql_free_result($res);
$site_env = ConvertSystemVars($site_env,"Site");
return $site_env;
}
function InheritSectionEnv ($section) {
global $LinkID;
global $system_table_fields, $CMS_UPLOAD_PATH;
global $as_section_data, $as_section_level;
$query = "SELECT * FROM `".(LOWER_CASE_TABLES ? "section" : "Section")."` WHERE `Section_ID`='".$section."'";
$res = mysql_query($query, $LinkID);
$section_env = mysql_fetch_assoc($res);
mysql_free_result($res);
$section_env = ConvertSystemVars($section_env,"Section");
$as_section_data=array();
$as_section_level = 0;
$as_section_data[] = "";
$as_section_data[$as_section_level] = $section_env;
$as_section_level++;
$parent_section = $section_env["Parent_Section_ID"];
while ($parent_section) {
$res = mysql_query("SELECT * FROM `".(LOWER_CASE_TABLES ? "section" : "Section")."` WHERE `Section_ID`='".$parent_section."'", $LinkID);
$parent_section_env = mysql_fetch_assoc($res);
mysql_free_result($res);
$parent_section_env = ConvertSystemVars($parent_section_env,"Section");
if (!$section_env["Template_ID"]) $section_env["Template_ID"] = $parent_section_env["Template_ID"];
if (!$section_env["Read_Access_ID"]) $section_env["Read_Access_ID"] = $parent_section_env["Read_Access_ID"];
if (!$section_env["Write_Access_ID"]) $section_env["Write_Access_ID"] = $parent_section_env["Write_Access_ID"];
if (!$section_env["Edit_Access_ID"]) $section_env["Edit_Access_ID"] = $parent_section_env["Edit_Access_ID"];
if (!$section_env["Subscribe_Access_ID"]) $section_env["Subscribe_Access_ID"] = $parent_section_env["Subscribe_Access_ID"];
if (!$section_env["Moderation_ID"]) $section_env["Moderation_ID"] = $parent_section_env["Moderation_ID"];
$as_section_data[$as_section_level] = $parent_section_env;
$section_env = InheritSystemObject_Fields ("Section",$as_section_data[$as_section_level],$section_env);
$as_section_level++;
$parent_section = $parent_section_env["Parent_Section_ID"];
}
$site_env = InheritSiteEnv ($section_env["Site_ID"]);
$section_env = InheritSystemObject_Fields ("Site",$site_env,$section_env);
if (empty($section_env["Template_ID"])) $section_env["Template_ID"] = $site_env["Template_ID"];
if (empty($section_env["Read_Access_ID"])) $section_env["Read_Access_ID"] = $site_env["Read_Access_ID"];
if (empty($section_env["Write_Access_ID"])) $section_env["Write_Access_ID"] = $site_env["Write_Access_ID"];
if (empty($section_env["Edit_Access_ID"])) $section_env["Edit_Access_ID"] = $site_env["Edit_Access_ID"];
if (empty($section_env["Subscribe_Access_ID"])) $section_env["Subscribe_Access_ID"] = $site_env["Subscribe_Access_ID"];
if (empty($section_env["Moderation_ID"])) $section_env["Moderation_ID"] = $site_env["Moderation_ID"];
$as_section_data[$as_section_level] = $site_env;
return $section_env;
}
function InheritSystemObject_Fields ($system_table_name, $parent_array, $child_array) {
global $system_table_fields;
for ($i=0;$i'',CONCAT('".$CMS_UPLOAD_PATH.$system_table_fields['Template'][$i][id]."_',Template_ID,RIGHT(SUBSTRING_INDEX(".$system_table_fields['Template'][$i]['name'].",':',1), LOCATE('.',REVERSE(SUBSTRING_INDEX(".$system_table_fields['Template'][$i]['name'].",':',1))))),'') AS ".$system_table_fields['Template'][$i]['name'].",";
else
$field_string .= $system_table_fields['Template'][$i]['name'].",";
}
$res = mysql_query("SELECT ".$field_string."`Parent_Template_ID`,`Header`,`Footer`,`System_Config` FROM `".(LOWER_CASE_TABLES ? "template" : "Template")."` WHERE `Template_ID`='".$template."'", $LinkID);
$template_env = mysql_fetch_assoc($res);
mysql_free_result($res);
//DebugBreak();
$parent_template = $template_env["Parent_Template_ID"];
while ($parent_template) {
$res = mysql_query("SELECT ".$field_string."`Parent_Template_ID`,`Header`,`Footer`,`System_Config` FROM `".(LOWER_CASE_TABLES ? "template" : "Template")."` WHERE `Template_ID`='".$parent_template."'", $LinkID);
$parent_template_env = mysql_fetch_assoc($res);
mysql_free_result($res);
$parent_template = $template_env["Parent_Template_ID"];
if (!$template_env["Header"]) $template_env["Header"] = $parent_template_env["Header"];
if (!$template_env["Footer"]) $template_env["Footer"] = $parent_template_env["Footer"];
$template_env["Header"] = str_replace ("%Header",$parent_template_env["Header"], $template_env["Header"]);
$template_env["Footer"] = str_replace ("%Footer",$parent_template_env["Footer"], $template_env["Footer"]);
$template_env["System_Config"] .= $parent_template_env["System_Config"].$template_env["System_Config"];
$template_env = InheritSystemObject_Fields("Template",$parent_template_env,$template_env);
$parent_template = $parent_template_env["Parent_Template_ID"];
}
for ($i=0;$iPK P)[; core_old.phpnu W+A ".($message ? $message : "Fatal error!" )."