?‘λ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
function.inc.php 0000666 00000047516 15047261063 0007677 0 ustar 00
function ListList ($IsSystem, $msg = null)
{
global $LinkID, $ADMIN_DOMAIN;
$Select = "SELECT `List_ID`, `List_Name`, `Table_Name` FROM `".(LOWER_CASE_TABLES ? "list" : "List")."` WHERE `System`='".$IsSystem."'";
$Select .= " ORDER by `List_ID`";
#print "$Select
\n";
$Result = mysql_query ($Select, $LinkID);
if ($countObjectif=mysql_num_rows($Result)) {
?>
}
}
###############################################################################
function AddList ($ListName, $ListTable, $System, $msg = null)
{
global $LinkID;
?>
}
###############################################################################
function IsTableExist ($ListTable)
{
global $LinkID;
// ".(LOWER_CASE_TABLES ? "list" : "List")."
$tname = "List_$ListTable";
if (LOWER_CASE_TABLES) $tname = strtolower($tname);
$Select = "SHOW TABLES LIKE '".$tname."'";
$Result = mysql_query ($Select, $LinkID);
if ( mysql_num_rows ($Result) > 0 )
return 1;
else
return 0;
}
###############################################################################
function IsListExist ($ListTable)
{
global $LinkID;
$Select = "SELECT `List_ID` FROM `".(LOWER_CASE_TABLES ? "list" : "List")."` WHERE `Table_Name`='$ListTable'";
$Result = mysql_query ($Select, $LinkID);
if ( mysql_num_rows ($Result) > 0 )
return 1;
else
return 0;
}
###############################################################################
function GetListNameByID ($ListID)
{
global $LinkID;
$Select = "SELECT `List_Name` FROM `".(LOWER_CASE_TABLES ? "list" : "List")."` WHERE `List_ID`='".$ListID."'";
$Result = mysql_query ($Select, $LinkID);
@$Array = mysql_fetch_row ($Result);
return $Array[0];
}
###############################################################################
function GetListCountByName ($ListName)
{
global $LinkID;
$tname = "List_".$ListName;
if (LOWER_CASE_TABLES) $tname = strtolower($tname);
$Select = "SELECT count(*) FROM `".$tname."`";
$Result = mysql_query ($Select, $LinkID);
@$Array = mysql_fetch_row ($Result);
return $Array[0];
}
###############################################################################
function GetTableNameByID ($ListID)
{
global $LinkID;
$Select = "SELECT `Table_Name` FROM `".(LOWER_CASE_TABLES ? "list" : "List")."` WHERE `List_ID`='".$ListID."'";
$Result = mysql_query ($Select, $LinkID);
@$Array = mysql_fetch_row ($Result);
return $Array[0];
}
###############################################################################
function IsSystem ($ListID)
{
global $LinkID;
$Select = "SELECT `System` FROM `".(LOWER_CASE_TABLES ? "list" : "List")."` WHERE `List_ID`='".$ListID."'";
$Result = mysql_query ($Select, $LinkID);
$Array = mysql_fetch_row ($Result);
return $Array[0];
}
###############################################################################
function AddListCompleted ($ListName, $ListTable, $System)
{
global $LinkID;
$System += 0;
$ReturnValue = 0;
$tname = "List_".$ListTable;
if (LOWER_CASE_TABLES){
$ListName = strtolower($ListName);
$ListTable = strtolower($ListTable);
$System = strtolower($System);
$tname = strtolower($tname);
}
$Insert = "INSERT INTO `".(LOWER_CASE_TABLES ? "list" : "List")."` (`List_Name`, `Table_Name`, `System`)";
$Insert .= " VALUES ('$ListName','$ListTable','$System')";
#print "$Insert
";
mysql_query ($Insert, $LinkID);
#echo mysql_errno().": ".mysql_error()."
";
#$Select = "select List_ID from List where Table_Name='$ListTable'";
#print "$Select
";
#$SelectResult = mysql_query ($Select, $LinkID);
#echo mysql_errno().": ".mysql_error()."
";
#$SelectArray = mysql_fetch_row ($SelectResult);
#if ($SelectResult)
#$ListID = $SelectArray[0];
#else
#$ListID = 0;
$Creat = " CREATE TABLE `".$tname."` (";
$Creat .= "`${ListTable}_ID` int(11) NOT NULL auto_increment,";
$Creat .= "`${ListTable}_Name` char(255) DEFAULT '' NOT NULL,";
$Creat .= "`${ListTable}_Value` char(255) DEFAULT '' NOT NULL,";
#$Creat .= "List_ID int(11) default '${ListID}' NOT NULL,";
$Creat .= "PRIMARY KEY (`${ListTable}_ID`)";
#$Creat .= "INDEX (List_ID)";
$Creat .= ")";
#print "$Creat
";
mysql_query ($Creat, $LinkID);
// echo mysql_errno().": ".mysql_error()."
";
$ReturnValue = 1;
return ($ReturnValue);
}
###############################################################################
function System_UpdateList ($ListID)
{
global $LinkID;
?>
}
###############################################################################
function System_UpdateListCompleted ($ListID, $ListName, $System)
{
global $LinkID;
$ReturnValue = 0;
$System += 0;
if ($ListName == "") {
print "
"._LANG_LIST_ERROR1."
\n";
System_UpdateList ($ListID);
} else {
$System_Update = "UPDATE `".(LOWER_CASE_TABLES ? "list" : "List")."` SET `List_Name`='$ListName'";
$System_Update .= ",`System`='".$System."'";
$System_Update .= " WHERE `List_ID`='".$ListID."'";
#print "$System_Update
\n";
$Result = mysql_query ($System_Update, $LinkID);
if ($Result) $ReturnValue=1;
}
return ($ReturnValue);
}
###############################################################################
function DeleteList ($ListID)
{
global $LinkID;
$TableToDrop = GetTableNameByID ($ListID);
$tname = "List_".$TableToDrop;
if (LOWER_CASE_TABLES) $tname=strtolower($tname);
$Drop = "DROP TABLE `".$tname."`";
$DropResult = mysql_query ($Drop, $LinkID);
$Delete = "DELETE FROM `".(LOWER_CASE_TABLES ? "list" : "List")."` WHERE `List_ID`='".$ListID."'";
$DeleteResult = mysql_query ($Delete, $LinkID);
}
###############################################################################
function OneListList ($ListID, $msg = null)
{
global $LinkID, $ADMIN_DOMAIN;
$TableName = GetTableNameByID ($ListID);
$Name = GetListNameByID ($ListID);
$tname = "List_".$TableName;
if (LOWER_CASE_TABLES) $tname = strtolower($tname);
$Select = "SELECT `${TableName}_ID`, `${TableName}_Name`, `${TableName}_Value` FROM `".$tname."` ORDER BY `${TableName}_ID`";
$Result = mysql_query ($Select, $LinkID);
if ($countObjectif=mysql_num_rows($Result)) {
?>
}
}
###############################################################################
function DeleteFromOneList ($ListID, $IdInList)
{
global $LinkID;
$TableName = GetTableNameByID ($ListID);
if (!IsSystemList($ListID)) {
$tname = "List_".$TableName;
if (LOWER_CASE_TABLES) $tname = strtolower($tname);
$Delete = "DELETE FROM `".$tname."` WHERE `${TableName}_ID`='".$IdInList."'";
mysql_query ($Delete, $LinkID);
} else {
print(_LANG_LIST_ERROR7);
}
}
###############################################################################
function IsSystemList($ListID)
{
global $LinkID;
$res = mysql_query("SELECT `System` FROM `".(LOWER_CASE_TABLES ? "list" : "List")."` WHERE `List_ID`='".$ListID."'",$LinkID);
list($result) = mysql_fetch_row($res);
mysql_free_result($res);
return $result;
}
###############################################################################
function InsertInOneList ($ListID)
{
global $LinkID;
$Name = GetListNameByID ($ListID);
?>
}
###############################################################################
function InsertInOneListCompleted ($ListID, $NameInList,$ValueInList)
{
global $LinkID;
//".(LOWER_CASE_TABLES ? "list" : "List")."
$TableName = GetTableNameByID ($ListID);
$tname = "List_".$TableName;
if (LOWER_CASE_TABLES) $tname=strtolower($tname);
$Insert = "INSERT INTO `".$tname."` (`${TableName}_Name`,`${TableName}_Value`) VALUES ('$NameInList','$ValueInList')";
$Result = mysql_query ($Insert, $LinkID);
if ($Result)
return 1;
else
return 0;
}
###############################################################################
function System_UpdateOneList ($ListID, $IdInList)
{
global $LinkID;
$TableName = GetTableNameByID ($ListID);
$Name = GetListNameByID ($ListID);
$tname = "List_".$TableName;
if (LOWER_CASE_TABLES) $tname = strtolower($tname);
print "
}
###############################################################################
function System_UpdateOneListCompleted ($ListID, $IdInList, $NameInList,$ValueInList)
{
global $LinkID;
$TableName = GetTableNameByID ($ListID);
$tname = "List_".$TableName;
if (LOWER_CASE_TABLES) $tname = strtolower($tname);
$System_Update = "UPDATE `".$tname."` SET `${TableName}_Name`='$NameInList', `${TableName}_Value`='$ValueInList' ";
$System_Update .= " WHERE `${TableName}_ID`=$IdInList";
mysql_query ($System_Update, $LinkID);
}
###############################################################################
function GetOneListName ($ListID, $IdInList)
{
global $LinkID;
$TableName = GetTableNameByID ($ListID);
$Name = GetListNameByID ($ListID);
$tname = "List_".$TableName;
if (LOWER_CASE_TABLES) $tname = strtolower($tname);
// print "