?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
object/function.inc.php 0000666 00000067434 15047260703 0011146 0 ustar 00
function ShowList ($msg = null)
{
global $LinkID;
global $ADMIN_DOMAIN, $EDIT_DOMAIN,$CMS_ADMIN_PATH, $DOMAIN_NAME;
global $loc;
$Select = "SELECT a.`Section_Object_ID`,a.`Section_Object_Name`,b.`Object_Name`,a.`Priority`,a.`Checked`,a.`Object_ID`,a.`LinkName`,d.`Domain`,c.`Hidden_URL` FROM `".(LOWER_CASE_TABLES ? "section_object" : "Section_Object")."` AS a JOIN `".(LOWER_CASE_TABLES ? "object" : "Object")."` AS b ON a.`Object_ID`=b.`Object_ID` LEFT JOIN `".(LOWER_CASE_TABLES ? "section" : "Section")."` AS c ON a.`Section_ID`=c.`Section_ID` LEFT JOIN `".(LOWER_CASE_TABLES ? "site" : "Site")."` AS d ON c.`Site_ID`=d.`Site_ID` WHERE a.`Section_ID`=".$loc->SectionID." and a.`Site_ID`=".$loc->SiteID." ORDER BY a.`Priority`";
$Result = mysql_query ($Select, $LinkID);
if ($totrows=mysql_num_rows($Result)) {
?>
";
}
}
#######################################################################
function ActionForm ($SectionObjectID, $step, $type, $msg = null)
{
# type=1 - это insert
# type=2 - это update
global $LinkID;
global $loc;
global $SectionID;
global $SiteID;
//DebugBreak();
if ($type==2) {
$SectionEnv = InheritSectionObjectEnv($SectionObjectID);
$Result = mysql_query("SELECT * FROM `".(LOWER_CASE_TABLES ? "object" : "Object")."` WHERE `Object_ID`=".$SectionEnv["Object_ID"],$LinkID);
$ObjectEnv = mysql_fetch_assoc($Result);
mysql_free_result($Result);
} elseif ($type==1) {
if (!$SectionID) {
$Result = mysql_query("SELECT * FROM `".(LOWER_CASE_TABLES ? "site" : "Site")."` WHERE `Site_ID`=".$SiteID,$LinkID);
$SectionEnv = mysql_fetch_assoc($Result);
mysql_free_result($Result);
} else {
$SectionEnv = InheritSectionEnv($SectionID);
}
}
?>
}
function ActionSectionObjectCompleted ($type)
{
global $LinkID, $_POST, $ObjectID;
global $loc;
reset($_POST);
while (list($key, $val) = each($_POST)) eval("global \$".$key.";");
if ($type == 1) {
$insert = "INSERT INTO `".(LOWER_CASE_TABLES ? "section_object" : "Section_Object")."` (`Section_ID`,`Site_ID`,`Object_ID`,`Section_Object_Name`,`Read_Access_ID`,`Write_Access_ID`,`Edit_Access_ID`,`Subscribe_Access_ID`,`Moderation_ID`,`Checked`,`Priority`,`LinkName`,`DaysToHold`,`AllowTags`,`NL2BR`,`RecordsPerPage`,`SortBy`,`Created`,`DefaultAction`)";
$insert .= " VALUES ($loc->SectionID, $loc->SiteID, $ObjectID,'".$SectionObjectName."','$ReadAccessID','$WriteAccessID','$EditAccessID','".(int)$SubscribeAccessID."','$ModerationID','$Checked','$Priority','$LinkName',";
if ($DaysToHold == "") $insert .= "NULL,"; else $insert .= "'$DaysToHold',";
$insert .= "'$AllowTags',";
$insert .= "'$NL2BR',";
if ($RecordsPerPage == "") $insert .= "NULL"; else $insert .= "'$RecordsPerPage'";
$insert .= ",'$SortBy','".date("Y-m-d H:i:s")."','".$DefaultAction."')";
$Result = mysql_query ($insert, $LinkID);
}
if ($type == 2) {
if ($SectionObjectName == "") {
print "
$res = mysql_query("SELECT `Section_ID`,`Section_Name` FROM `".(LOWER_CASE_TABLES ? "section" : "Section")."` WHERE `Site_ID`=".$Array["Site_ID"]." AND `Section_ID`<>".$SectionID." AND `Section_ID`<>".$Array["Parent_Section_ID"]." ORDER BY `Section_ID`",$LinkID);
if (mysql_num_rows($res)) {
?>
=_LANG_MOVE2?>:
}
mysql_free_result($res);
}
###############################################################################
function DeleteSection ()
{
global $LinkID;
reset($_REQUEST);
while (list($key, $val) = each($_REQUEST)) {
if (substr($key,0,6)=="Delete") {
$section_id = substr($key,6,strlen($key)-6)+0;
$val += 0;
CascadeDeleteSection ($val);
}
}
}
###############################################################################
function AscIfDeleteSection ($step, $action)
{
global $LinkID;
global $ParentSectionID, $SiteID;
$ask = false;
reset($_POST);
print "