?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.php000066600000065340150472613140007671 0ustar00"._LANG_SITE.":     "._LANG_ADD_SITE.""; } function ShowSiteList ($msg = null) { global $LinkID; global $ADMIN_DOMAIN, $EDIT_DOMAIN, $CMS_ADMIN_PATH, $DOMAIN_NAME; $select = "SELECT `Site_ID`,`Site_Name`,`Checked`,`Priority`,`Domain`,`Title_Section_ID`,`Site_Lang` FROM `".(LOWER_CASE_TABLES ? "site" : "Site")."` ORDER BY `Priority`;"; $Result = mysql_query ($select, $LinkID); if ($countCat=mysql_num_rows($Result)) { ?>
":'')?> "; print ""; print ""; print ""; print ""; print ""; print "\n"; print ""; print "\n"; } mysql_free_result ($Result); ?>
ID
$msg
$Array[0]$Array[6]".$Array[1]."".($Array['Domain']?$Array['Domain']:"".($Array[4]?(strchr($Array[4],".")?$Array[4]:$Array[4].".".$DOMAIN_NAME):$DOMAIN_NAME)."")."

"; } ?>
method=post action="">

$msg":'')?> "._LANG_ERROR_DB_SELECT."
\n"; $Array = mysql_fetch_assoc ($Result); mysql_free_result ($Result); } ?>
>
" />
" />
" />
" />
\n\n"; mysql_free_result ($Result); if ($type==2) { $Result = mysql_query ("SELECT `Section_ID`,`Section_Name` FROM `".(LOWER_CASE_TABLES ? "section" : "Section")."` WHERE `Parent_Section_ID`=0 and `Site_ID`=$eSiteID ORDER BY `Section_ID`", $LinkID); if (mysql_num_rows($Result) > 0) { ?>
"; } ?> 0) { ?>
"; mysql_free_result ($Result); } ?>
" />

>

>
>

\r\n";?>

";?>

";?>

"._LANG_OBJ_PUB."

"; $fdefault=($type==1); $Result = mysql_query ("SELECT `TypeOfModeration_ID`, `TypeOfModeration_Name` FROM `".(LOWER_CASE_TABLES ? "list_typeofmoderation" : "List_TypeOfModeration")."`", $LinkID); while ( $AccessTypeArray = mysql_fetch_row ($Result) ) { echo "
"; } print "

\n\n"; mysql_free_result ($Result); ?>

\n"; print "\n"; print "\n"; print "\n"; ?>
\n"; } ############################################################################### function ActionSiteCompleted ($eSiteID, $type) { global $LinkID, $ROOT_FOLDER, $HTTP_POST_VARS, $HTTP_POST_FILES, $as_admin; global $systemTableID, $systemTableName, $systemDataID; global $SOURCE_CHARSET, $CHARSET, $FILES_FOLDER, $INCLUDE_FOLDER; if(!$HTTP_POST_VARS) $HTTP_POST_VARS = $_POST; if(!$HTTP_POST_FILES) $HTTP_POST_FILES = $_FILES; require_once $INCLUDE_FOLDER."files.inc.php"; $is_there_any_files = getFileCount(0,$systemTableID); if ($type==1) $action = "add"; if ($type==2) { $action = "change"; $message = $systemDataID; } $trgCharset = getCharsetCode($SOURCE_CHARSET); $srcCharset = getCharsetCode($CHARSET); while (list($key, $val) = each($HTTP_POST_VARS)) eval("global \$".$key.";"); while (list($key, $val) = each($HTTP_POST_FILES)) eval("global \$".$key.";"); $Priority += 0; if ($srcCharset!=$trgCharset && $srcCharset && $trgCharset && $is_there_any_files) { $Site_Name = convert_cyr_string($Site_Name,$srcCharset,$trgCharset); $Domain = convert_cyr_string($Domain,$srcCharset,$trgCharset); $Mirrors = convert_cyr_string($Mirrors,$srcCharset,$trgCharset); } require_once $ROOT_FOLDER."action/edit/fields.php"; if ($submit == 0) { echo $warnText; SiteForm ($eSiteID, 3, "./", $type); return false; } require_once $ROOT_FOLDER."action/edit/save.php"; if ($type == 1) { $insert = "INSERT INTO `".(LOWER_CASE_TABLES ? "site" : "Site")."` ("; for($i=0;$i<$fldCount;$i++) $insert .= $fld[$i].","; $insert .= "`Site_License`, `Site_Name`,`Domain`,`Template_ID`,`Read_Access_ID`,`Write_Access_ID`,`Edit_Access_ID`,`Subscribe_Access_ID`,`Moderation_ID`,`Checked`,`Priority`,`Created`,``Site_Lang``,`Mirrors`) "; $insert .= "values ("; for($i=0;$i<$fldCount;$i++) $insert .= $fldValue[$i].","; $insert .= "\"".$Site_License."\","; $insert .= "\"".$Site_Name."\","; $insert .= "\"".$Domain."\","; $insert .= (int)$TemplateID.","; $insert .= "\"".(int)$ReadAccessID."\","; $insert .= "\"".(int)$WriteAccessID."\","; $insert .= "\"".(int)$EditAccessID."\","; $insert .= "\"".(int)$SubscribeAccessID."\","; $insert .= "\"".(int)$ModerationID."\","; $insert .= "\"".(int)$Checked."\","; $insert .= "\"".$Priority."\","; $insert .= "\"".date("Y-m-d H:i:s")."\","; $insert .= "\"".$Site_Lang."\","; $insert .= "\"".$Mirrors."\")"; $Result = mysql_query ($insert, $LinkID); #echo mysql_errno().": ".mysql_error()."
"; $eSiteID = mysql_insert_id ($LinkID); $message = $eSiteID; } if ($type == 2) { $update = "UPDATE `".(LOWER_CASE_TABLES ? "site" : "Site")."` SET "; if (!$TitleSectionID) $TitleSectionID=1; //DebugBreak(); for($i=0;$i<$fldCount;$i++) $update .= '`'.$fld[$i].'`'."=".$fldValue[$i].","; $update .= "`Site_License`=\"".$Site_License."\","; $update .= "`Site_Name`=\"".$Site_Name."\","; $update .= "`Domain`=\"".$Domain."\","; $update .= "`Template_ID`=".(int)$TemplateID.","; $update .= "`Read_Access_ID`=\"".(int)$ReadAccessID."\","; $update .= "`Write_Access_ID`=\"".(int)$WriteAccessID."\","; $update .= "`Edit_Access_ID`=\"".(int)$EditAccessID."\","; $update .= "`Subscribe_Access_ID`=\"".(int)$SubscribeAccessID."\","; $update .= "`Moderation_ID`=\"".(int)$ModerationID."\","; $update .= "`Checked`=\"".(int)$Checked."\","; $update .= "`Priority`=\"".(int)$Priority."\","; $update .= "`Site_Lang`=\"".$Site_Lang."\","; $update .= "`Mirrors`=\"".$Mirrors."\","; $update .= "`Title_Section_ID`=\"".(int)$TitleSectionID."\","; $update .= "`E404_Section_ID`=\"".(int)$E404SectionID."\""; $update .= " WHERE `Site_ID`=".$eSiteID; #print $update."
\n"; //echo "Запрос: ".$update.'
'; $Result = mysql_query ($update, $LinkID); #echo mysql_errno().": ".mysql_error()."
"; } for ($i=0; $i
    "; while (list($key, $val) = each($HTTP_POST_VARS)) { if (substr($key,0,6)=="Delete" && $val) { $ask = true; $cat_id = substr($key,6,strlen($key)-6)+0; $select = "select Site_Name from Site where Site_ID=".$cat_id; $SelectResult = mysql_query ($select, $LinkID); $SelectArray = mysql_fetch_row ($SelectResult); print "
  • ".$SelectArray[0]."
    "; print ""; $cat_counter++; } } reset($HTTP_GET_VARS); while (list($key, $val) = each($HTTP_GET_VARS)) { if (substr($key,0,6)=="Delete" && $val) { $ask = true; $cat_id = substr($key,6,strlen($key)-6)+0; $select = "select Site_Name from Site where Site_ID=".$cat_id; $SelectResult = mysql_query ($select, $LinkID); $SelectArray = mysql_fetch_row ($SelectResult); print "
  • ".$SelectArray[0]."
    "; print ""; $cat_counter++; } } if (!$ask) return false; ?>


>
:
:
: (, ":"")?>/section/?step=2&ParentSectionID=0&SiteID=>)
: (, ":""?>>)
:
:
:
:
:
:
> | > | > >
index.php000066600000011237150472613140006377 0ustar00"._LANG_SITES.""; $Title5 = GetSiteNameByID ($SiteID); $Title6 = "".GetSiteNameByID ($SiteID).""; $Title7 = _LANG_SITE_DELETE_CONFIRM; $Title8 = GetSiteNameByID ($SiteID); $Title9 = _LANG_SECTION_ADD; $Title10 = _LANG_SITE_ADD; $Title11 = GetSiteNameByID ($SiteID); $Title12 = _LANG_SITE_DELETE_CONFIRM; $Title13 = _LANG_SITE_PROPERTIES; if (!isset($step)) $step=1; switch ($step) { case 1: # просто показать список каталогов BeginHtml ($Title2, $Title2, 14); ShowSiteList (); break; case 2: # показать форму добавления каталога if ($type == 1) { BeginHtml ($Title10, $Title3.$Delimeter.$Title10, 14); } if ($type == 2) { BeginHtml ($Title13, $Title3.$Delimeter.$Title6, 14); } SiteForm ($siteWork, 3, "./", $type); break; case 3: # собственно добавить каталог и показать список всех каталогов // unset($SiteID); if ($type == 1) BeginHtml ($Title2, $Title2, 14); if ($type == 2) BeginHtml ($Title11, $Title3.$Delimeter.$Title5, 14); $perm->ExitIfGuest (); if ( !($perm->isSupervisor() || $perm->isManager() || $perm->isSiteAdmin($siteWork)) ) { NoRightsMessage(); EndHtml (); exit; } if ($submit == 1) { if ($Site_Name == "") { SiteForm ($siteWork, 3, "./", $type, _LANG_SITE_ERROR1); break; } else if (!IsAllowedDomain ($Domain, $siteWork, $type)) { SiteForm ($siteWork, 3, "./", $type,_LANG_SITE_ERROR2); break; } else if ( strspn(strtolower($Domain), "abcdefghijklmnopqrstuvwxyz0123456789-.") != strlen($Domain) ) { SiteForm ($siteWork, 3, "./", $type, _LANG_SITE_ERROR3); break; } else if (ActionSiteCompleted ($siteWork, $type)) { if ($type == 1) ShowSiteList ('Сайт добавлен'); if ($type == 2) ShowSiteList ('Сайт обновлен'); } } else if ($submit == 2) { FileUpload (); if ($type == 1) ShowSiteList (); if ($type == 2) ShowMenu ($siteWork, 2, "./", 11, "./"); } break; case 4: # спросить, действительно ли надо удалить каталог if (CheckIfDelete()) { BeginHtml ($Title12, $Title3.$Delimeter.$Title7, 14); System_UpdateSitePriority (); AscIfDelete (5, "./"); } else { BeginHtml ($Title2, $Title2, 14); $perm->ExitIfGuest (); $perm->ExitIfNotSupervisor (); System_UpdateSitePriority (); ShowSiteList (); } break; case 5: # удалить каталог BeginHtml ($Title2, $Title2, 14); $perm->ExitIfGuest (); $perm->ExitIfNotSupervisor (); DeleteSite (); ShowSiteList ('Сайт удален'); break; case 6: # показать меню операций длля каталога BeginHtml ($Title11, $Title3.$Delimeter.$Title5, 14); ShowMenu ($SiteID, 2, "./", 11, "./"); break; case 11: # покажем форму добавления подрубрики в каталог BeginHtml ($Title9, $Title3.$Delimeter.$Title6.$Delimeter.$Title9, 14); if (!$systemDataID) $systemDataID = $SectionID; $systemTableName = "Section"; $systemTableID = GetSystemTableID ($systemTableName); $loc = new SectionLocation ($SiteID, $ParentSectionID, $SectionID); SectionForm (12, "./", 1); break; case 12: # собственно добавим рубрику в каталог BeginHtml ($Title2, $Title2, 14); $perm->ExitIfGuest (); $perm->ExitIfNotSupervisorManager (); if (!$systemDataID) $systemDataID = $SectionID; $systemTableName = "Section"; $systemTableID = GetSystemTableID ($systemTableName); $loc = new SectionLocation ($SiteID, $ParentSectionID, $SectionID); if ($submit == 1) { if (ActionSectionCompleted ($type)) { ShowSiteList (); } } else if ($submit == 2) { FileUpload (); ShowSiteList (); } break; } EndHtml (); ?>