?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
home/user1137782/www/user1137782.atservers.net/cms/admin/system.inc.php000066600000040377150472611110021104 0ustar00 Авторизация
Reactive.CMS
Версия:
Copyright © 2003— ЧТУП « Реактивные технологии ».
Все права защищены.

 

Войти

Забыли пароль?
Имя пользователи или пароль указаны неверно
"; } LoginForm (); LoginFormFooter(); } break; end; default : Header ("WWW-authenticate: basic realm=Please authorize"); Header ("HTTP/1.0 401 Unauthorized"); LoginFormHeader(); if (isset($AUTH_USER)) { print "Ошибка авторизации

"; } LoginForm (); LoginFormFooter(); end; } exit; } function Authorize($IsInAdmin=0) { //DebugBreak(); global $PHP_AUTH_USER, $PHP_AUTH_PW; global $AUTH_USER_ID, $AUTH_USER_GROUP; global $AUTHORIZATION_TYPE; global $AUTH_TYPE; global $LinkID; global $perm, $as_admin; global $CMS_AUTHORIZE_FIELD; $AUTH_TYPE = $AUTHORIZATION_TYPE; $Action = isset($_REQUEST['Action']) ? $_REQUEST['Action'] : ''; if ($AUTH_TYPE == 'cookie') { if ($Action) { //Авторизация через форму $PHP_AUTH_USER = isset($_REQUEST['AUTH_USER']) ? $_REQUEST['AUTH_USER'] : ''; $PHP_AUTH_PW = isset($_REQUEST['AUTH_PW']) ? $_REQUEST['AUTH_PW'] : ''; }else{ //Авторизация через cookies $PHP_AUTH_USER = isset($_COOKIE['PHP_AUTH_USER']) ? $_COOKIE['PHP_AUTH_USER'] : ''; $PHP_AUTH_PW = isset($_COOKIE['PHP_AUTH_PW']) ? $_COOKIE['PHP_AUTH_PW'] : ''; } } if (!isset($PHP_AUTH_USER)) { if ($as_admin || $AUTHORIZATION_TYPE=="http") Refuse (); else return false; } $q = "SELECT `User_ID`,`Password`,`User_Group_ID`, `Email` FROM `".(LOWER_CASE_TABLES ? "user" : "User")."` WHERE ".$CMS_AUTHORIZE_FIELD."='".$PHP_AUTH_USER."' AND `Password`=".((!$Action && $AUTH_TYPE=='cookie')?"'".$PHP_AUTH_PW."'":"MD5('".$PHP_AUTH_PW."')")." AND `Checked`=1"; $Result = mysql_query ($q, $LinkID); // print ("SELECT User_ID,Password,User_Group_ID FROM User WHERE ".$CMS_AUTHORIZE_FIELD."='".$PHP_AUTH_USER."' AND Password=".((!$Action && $AUTH_TYPE=="cookie")?"'".$PHP_AUTH_PW."'":"MD5('".$PHP_AUTH_PW."')")." AND Checked=1"); if (!mysql_num_rows ($Result)) { if ($as_admin || $AUTHORIZATION_TYPE=="http") Refuse (); else return false; } list ($UserID, $Password, $UserGroup, $EmailDB) = mysql_fetch_row ($Result); mysql_free_result($Result); if ($AUTH_TYPE=='cookie') { if ($Action) { setcookie ("PHP_AUTH_USER", $PHP_AUTH_USER, time()+365*24*3600, "/"); setcookie ("PHP_AUTH_PW", $Password, time()+365*24*3600, "/"); } } elseif ($AUTH_TYPE=='http') { # по дефолту авторизация 'http' end; } else { if ($as_admin || $AUTHORIZATION_TYPE=="http") Refuse (); else return false; } $AUTH_USER_ID = $UserID; $AUTH_USER_GROUP = $UserGroup; $perm = new User_Access ($UserID); return ($UserID); } function CheckUserRights ($SectionObjectID, $action, $submit) { global $LinkID; global $perm; # значения action # 1 - read # 2 - add # 4 - subscribe # 8 - change # 16 - moderate if ( $perm->isSupervisor() ) return 1; if ( $perm->isManager() ) return 1; switch ($action) { case "read": $mask = 1; break; case "add": $mask = 2; break; case "change": $mask = 4; break; case "subscribe": $mask = 8; break; case "moderate": $mask = 16; break; } #print "mask=$mask"."
\n"; if ( $perm->isGuest() ) { if ($submit == 0) return 1; elseif ( $mask == 1 ) return 1; else return 0; } $SectionID = GetSectionBySectionObject ($SectionObjectID); $SiteID = GetSiteBySection ($SectionID); #print "SectionID=$SectionID"."
\n"; #print "SiteID=$SiteID"."
\n"; if ( $perm->isSite($SiteID, $mask) ) { return $perm->isSite ($SiteID, $mask); } while ($SectionID) { $val = $perm->isSection ($SectionID, $mask); if ($val == 1) return 1; $SectionID = GetParentSectionID ($SectionID); #print "SectionID=$SectionID"."
\n"; } if ( $perm->isSectionObject($SectionObjectID, $mask) ) { return $perm->isSectionObject ($SectionObjectID, $mask); } return 0; } function DeleteData ($DataID, $ObjectID) { global $LinkID; $delete = "DELETE FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."".$ObjectID."`"; $delete .= " WHERE `Data_ID`='".$DataID."'"; #print $delete."
\n"; $Result = mysql_query ($delete, $LinkID); if ($Result) return 1; return 0; } function my_chunk_split($str) { $stmp = base64_encode($str); $len = strlen($stmp); $out = ""; $done=0; while( $done<$len ) { $out.=( $len-$done>76)?substr($strp,$done, 76). "\r\n":substr($strp,$done, $len-$done). "\r\n"; $done+=76; } return $out; } class CMIMEMail { var $to; var $reply; var $boundary = "----=_NextPart_000_0009_01BF95E9.CDFD2060"; var $smtp_headers; var $filename_real; var $body_plain; var $body_html; var $atcmnt; var $atcmnt_type; var $original_name; var $from_name; function CMIMEMail($priority=3) { $this->priority=$priority; } function mailbody( $plain, $html= "" ) { $this->body_plain=$plain; $this->body_html=$html; } function attach ($name, $original_name, $content_type, $data) { $this->atcmnt[$name]=$data; $this->atcmnt_type[$name]=$content_type; $this->original_name[$name]=$original_name; } function attachFile ($fname, $original_name, $content_type) { $name = $fname; #$name=ereg_replace( "(.+/)", "",$fname); $f=fopen($name, "r"); $size = filesize($name); $contents = fread ($f,$size); $this->attach($name, $original_name, $content_type, $contents); fclose($f); } function clear() { unset( $atcmnt ); unset( $atcmnt_type ); } function makeheader() { $out = "From: =?Windows-1251?B?".base64_encode($this->from_name)."?= <".$this->from.">\n"; #print $this->from."

\n"; #$out = "Reply-To: <".$this->from. ">\n"; $out .= "Reply-To: <".$this->reply.">\n"; $out .= "Return-Path: <".$this->reply.">\n"; $out .= "X-Mailer: PHP/" . phpversion()."\n"; $out .= "MIME-Version: 1.0\nContent-Type: multipart/mixed;\n boundary=\"".$this->boundary. "\"\nX-Priority: ".$this->priority. "\n"; return $out; } function makebody() { global $SOURCE_CHARSET; $boundary2= "----=_NextPart_001_0009_01BF95E9.CDFD2060"; $out= ""; $out= "\n\n".$this->body_plain. "\n\n"; if( $this->body_html!= "" ) { $out.= "--".$this->boundary. "\nContent-Type: multipart/alternative;\n boundary=$boundary2\n\n"; $out.= "$body_plan\n--$boundary2\nContent-Type: text/plain\nContent-Transfer-Encoding: quoted-printable\n\n".$this->body_plain. "\n\n--$boundary2\nContent-Type: text/html\n". "Conent-Transfer-Encoding: quoted-printable\n\n$this->body_html\n\n--$boundary2--\n"; } else { $out.= "--".$this->boundary. "\nContent-Type: text/plain; charset=".$SOURCE_CHARSET."\nContent-Transfer-Encoding: quoted-printable\n\n".$this->body_plain."\n"; #$out.= "--".$this->boundary. "\nContent-Type: text/plain; charset=KOI8-R\nContent-Transfer-Encoding: quoted-printable\n\n".$this->body_plain. "\n\n--".$this->boundary. "\n"; } @reset( $this->atcmnt_type); while( list($name, $content_type) = @each($this->atcmnt_type) ) { $out.= "\n--".$this->boundary. "\nContent-Type: $content_type\nContent-Transfer-Encoding: base64\nContent-Disposition: attachment; filename=\"".$this->original_name[$name]."\"\n\n". chunk_split(base64_encode($this->atcmnt[$name])). "\n"; } $out.= "--".$this->boundary. "--\n"; return $out; } function send ($to, $from, $reply, $subject, $from_name) { $this->to=$to; $this->from=$from; $this->subject=$subject; $this->reply=$reply; $this->from_name=$from_name; mail( $this->to, $this->subject, $this->makebody(), $this->makeheader() ); } } function GetObjectNameByID ($ObjectID) { global $LinkID; $select = "SELECT `Object_Name` FROM `".(LOWER_CASE_TABLES ? "object" : "Object")."` WHERE `Object_ID`='".$ObjectID."'"; $Result = mysql_query ($select, $LinkID); @$ObjectArray = mysql_fetch_row ($Result); return $ObjectArray [0]; } function GetTemplateDescription ($TemplateID) { global $LinkID; $select = "SELECT `Description` FROM `Template` WHERE `Template_ID`='".$TemplateID."'"; $Result = mysql_query ($select, $LinkID); @$Array = mysql_fetch_row ($Result); return $Array[0]; } function TemplateChildrenNumber ($TemplateID) { global $LinkID; $select = "SELECT count(Template_ID) FROM `Template` WHERE `Parent_Template_ID`='"; $select .= $TemplateID."'"; #print $select."
\n"; $Result = mysql_query ($select, $LinkID); $Array = mysql_fetch_row ($Result); return $Array[0]; } function GetSystemTableName ($SystemTableID) { global $LinkID; $select = "SELECT `System_Name` FROM `".(LOWER_CASE_TABLES ? "system" : "System")."` WHERE `System_ID`='".$SystemTableID."'"; $Result = mysql_query ($select, $LinkID); @$Array = mysql_fetch_row ($Result); return $Array[0]; } function GetSystemTableRusName ($SystemTableID) { global $LinkID; $select = "SELECT `System_Rus_Name` FROM `".(LOWER_CASE_TABLES ? "system" : "System")."` WHERE `System_ID`='".$SystemTableID."'"; $Result = mysql_query ($select, $LinkID); @$Array = mysql_fetch_row ($Result); return $Array[0]; } function GetSystemTableID ($SystemTableName) { global $LinkID; $select = "SELECT `System_ID` FROM `".(LOWER_CASE_TABLES ? "system" : "System")."` WHERE `System_Name`='$SystemTableName'"; $Result = mysql_query ($select, $LinkID); @$Array = mysql_fetch_row ($Result); return $Array[0]; } function FileUpload () { global $LinkID, $ROOT_FOLDER; global $PICTURES_FOLDER, $HTTP_PICTURES_PATH; global $systemTableName, $systemTableID, $systemDataID; global $perm; while (list($key, $val) = each($_POST)) eval("\$".$key."='".$val."';"); while (list($key, $val) = each($_FILES)) { eval("\$".$key."_name='".$val["name"]."';"); eval("\$".$key."_type='".$val["type"]."';"); eval("\$".$key."_size='".$val["size"]."';"); eval("\$".$key."='".$val["tmp_name"]."';"); } require_once $ROOT_FOLDER."action/edit/fields.php"; $bNoFiles = true; for($i=0; $i<$fldCount; $i++) { if ($fldType[$i] == 6) { $bNoFiles = false; break; } } $fileAction = "change"; // include $ROOT_FOLDER."message_file.php"; if ($Result) { print "Информация успешно обновлена.
\n"; } else { print "Информация не обновлена. Ошибка!
\n"; } } function GetObject_FieldName ($Object_FieldID) { global $LinkID; $select = "SELECT `Object_Field_Name` FROM `".(LOWER_CASE_TABLES ? "object_field" : "Object_Field")."` WHERE `Object_Field_ID`=".$Object_FieldID; $Result = mysql_query ($select, $LinkID); @$Array = mysql_fetch_row ($Result); return $Array[0]; } function GetObjectIDByObject_FieldID ($Object_FieldID) { global $LinkID; $select = "SELECT `Object_ID` FROM `".(LOWER_CASE_TABLES ? "object_field" : "Object_Field")."` WHERE `Object_Field_ID`=".$Object_FieldID; $Result = mysql_query ($select, $LinkID); @$Array = mysql_fetch_row ($Result); return $Array[0]; } function GetSystemTableIDByObject_FieldID ($Object_FieldID) { global $LinkID; $select = "SELECT `System_ID` FROM `".(LOWER_CASE_TABLES ? "object_field" : "Object_Field")."` WHERE `Object_Field_ID`=".$Object_FieldID; $Result = mysql_query ($select, $LinkID); @$Array = mysql_fetch_row ($Result); return $Array[0]; } function jsinit($parent = 1) { if ($parent) $object = 'parent.'; else $object = ''; print ""; } function jsinitpage () { global $CMS_ENCODING; header("Content-type: text/html; charset: ".$CMS_ENCODING.""); print ""; jsinit(); print ""; } function jsprint($obj, $txt) { $txt = str_replace("'", "\'", $txt); $txt = str_replace(array("\n", "\r"), '\n', $txt); print ""; flush(); } function jsclear($obj) { print ""; flush(); } ?>