?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]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
# 1 - read
# 2 - add
# 4 - subscribe
# 8 - change
# 16 - moderate
function as_auth ($object_env,$action,$submit) {
global $as_admin, $MODULE_VARS, $AUTHORIZATION_TYPE;
global $AUTH_USER_ID;
if ($action=="index" || $action=="view" || $action=="search") $action = "read";
$object = isset($object_env["Section_Object_ID"]) ? $object_env["Section_Object_ID"] : 0;
switch ($action) {
case "add": $as_access = $object_env["Write_Access_ID"]; break;
case "change": $as_access = $object_env["Edit_Access_ID"]; break;
case "subscribe": $as_access = $object_env["Subscribe_Access_ID"]; break;
default: $as_access = $object_env["Read_Access_ID"]; break;
}
switch ($as_access) {
case 1: {
if ($as_admin) {
if (!Authorize()) return false;
if (!CheckUserRights($object,$action,1)) return false;
}
} break;
case 2: {
if (!Authorize()) return false;
} break;
case 3: {
if (!Authorize()) return false;
if (!CheckUserRights($object,$action,$submit)) return false;
} break;
case 4: {
if (!isset($_SESSION['authorized'])||$_SESSION['authorized']==0) header("Location: ../"); return false;
} break;
default: break;
}
return true;
}
?>