?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
PK 9[Ys}; ; edit.phpnu W+A
global $CMS_ADMIN_PATH, $CMS_CSS_PATH, $CMS_DOCTYPE, $fldFormat,$DOCUMENT_ROOT,$EDITOR_PATH;
require_once(str_replace("//","/",$DOCUMENT_ROOT.$CMS_ADMIN_PATH.'admin/_lang/ru.lang.php'));
$elements = "";
// при изменении записи нам нужно вернуться на страницу с нужным номером
preg_match("/curPos=(\d+)?/", $_SERVER['HTTP_REFERER'], $arr);
echo "";
echo "";
$m_classID = (int)$_GET['classID'];
if ($m_classID) {
echo "";
}
jsinit(0);
for($i=0; $i < $fldCount; $i++)
if ($fldType[$i] == 3) {
$editor = strpos($fldFmt[$i], 'editor') !== false;
if ($editor) {
// if ($elements) $elements .= ",as_".$fld[$i];
// else $elements = "as_".$fld[$i];
if ($elements) $elements .= ",'as_".$fld[$i]."'";
else $elements = "'as_".$fld[$i]."'";
}
}
if ($elements) {
require_once($DOCUMENT_ROOT.$EDITOR_PATH.'cmsconnect.php');
echo editor_start($elements);
}
if ($as_admin && !$systemTableID) {
echo "
>
";
$file_name = "as_".$fld[$i]."_name";
$file_name = $$file_name;
echo "
";
//echo "";
//echo "";
if ($fldValue[$i] && $action=="change" && $message) {
eval("if (\$as_".$fld[$i]."_old) \$fldValue[\$i] = \$as_".$fld[$i]."_old;");
list($filename,$origfilename,$filetype,$filesize,$filewidth,$fileheight) = split(":",$fldValue[$i]);
echo "
"._LANG_UPLOADED.": ".$origfilename." (".($filewidth?$filewidth."x".$fileheight.", ":"").$filesize." "._LANG_BYTES.")";
if (!$fldNotNull[$i]) echo " ";
}
echo "
\n"; echo " -- ::"; echo "
\n"; echo "=_LANG_ERROR_LIST_SQL?>: =mysql_error?>
else: ?> endif?>=_LANG_FIELD_NOT_IMPLEMENTED?>Тип поля не реализован
"._LANG_RECORD_CONFIRM_DELETE." #".$message."
"; echo ""._LANG_RECORD_DELETE." | ".$goBack; echo ""._LANG_TEMPLATE_RECORD_CONFIRM_DELETE." #".$object."
"; echo ""._LANG_RECORDS_DELETE." | "; eval("echo \"$template_footer\";"); } elseif ($delete && !empty($submit)) { if ($modRights) { mysql_query("DELETE FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."".$classID."` WHERE `Section_ID`=".$section." AND `Section_Object_ID`='".$object."'", $LinkID); header('Location: ' . $CMS_ADMIN_PATH . '?site='.$site.'§ion='.$section.'&object='.$object.'&noframe=1'); } else { mysql_query("DELETE FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."".$classID."` WHERE `Section_ID`=".$section." AND `Section_Object_ID`='".$object."' AND `User_ID`='".$AUTH_USER_ID."'", $LinkID); if($jact){ echo 'deleted.';exit; } header('Location: ' . $CMS_ADMIN_PATH . '?site='.$site.'§ion='.$section.'&object='.$object.'&noframe=1'); } } } exit; } // check record if (isset($_GET['checked']) && $message && !empty($submit)) { $noRights = false; if (!$modRights) { $res = mysql_query("SELECT `User_ID` FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."".$classID."` WHERE `User_ID`='".$AUTH_USER_ID."' AND `Data_ID`='".$message."'",$LinkID); if (!mysql_num_rows($res)) $noRights = true; else mysql_free_result($res); } if (!$noRights) { $res = mysql_query("UPDATE `".(LOWER_CASE_TABLES ? "data" : "Data")."".$classID."` SET `Checked`=".abs($checked-1)." WHERE `Data_ID`='".$message."'", $LinkID); if($jact){ // ajaxed from CMS echo 'done'; exit; } if (!$CheckActionTemplate) header('Location: ' . $CMS_ADMIN_PATH . '?site='.$site.'§ion='.$section.'&object='.$object.'&noframe=1'); else { eval("echo \"$template_header\";"); echo ""._LANG_AUTH_NO_ACTION."
"; echo $goBack; echo ""._LANG_AUTH_NO_ACTION."
"; echo "MySQL Error : ".mysql_error()."
"; if (DEBUG_MODE) { echo ''.$select.'
'; } } $fldValue = mysql_fetch_row($res); mysql_free_result($res); $res = mysql_query($select, $LinkID); $fldValueVars = mysql_fetch_assoc($res); mysql_free_result($res); extract($fldValueVars, EXTR_PREFIX_ALL, "as"); for ($i=0;$i<$fldCount;$i++) { if ($fldType[$i]==8) { $tmp = $fld[$i]; eval(" \$as_".$tmp."_year = substr(\$as_".$tmp.",0,4); \$as_".$tmp."_month = substr(\$as_".$tmp.",5,2); \$as_".$tmp."_day = substr(\$as_".$tmp.",8,2); \$as_".$tmp."_hours = substr(\$as_".$tmp.",11,2); \$as_".$tmp."_minutes = substr(\$as_".$tmp.",14,2); \$as_".$tmp."_seconds = substr(\$as_".$tmp.",17,2); "); // eval("\$as_".$fld[$i]."_month = substr(\$as_".$fld[$i].",5,2);"); // eval("\$as_".$fld[$i]."_day = substr(\$as_".$fld[$i].",8,2);"); // eval("\$as_".$fld[$i]."_hours = substr(\$as_".$fld[$i].",11,2);"); // eval("\$as_".$fld[$i]."_minutes = substr(\$as_".$fld[$i].",14,2);"); // eval("\$as_".$fld[$i]."_seconds = substr(\$as_".$fld[$i].",17,2);"); } } $res = mysql_query("SELECT `Checked`, `Keyword`, `Priority` FROM ".($user_table_mode?"".(LOWER_CASE_TABLES ? "user" : "User")."":"".(LOWER_CASE_TABLES ? "data" : "Data")."".$classID)." WHERE ".($user_table_mode?"User":"Data")."_ID=".$message, $LinkID); list($as_Checked, $as_Keyword, $as_Priority) = mysql_fetch_row($res); mysql_free_result($res); } if (!$modRights && $as_user_id!=$AUTH_USER_ID) { eval("echo \"$template_header\";"); echo _LANG_NO_RIGHTS."."; eval("echo \"$template_footer\";"); exit; } if ($editTemplate) { eval("echo \"$template_header\";"); eval("echo \"$editTemplate\";"); eval("echo \"$template_footer\";"); } else { eval("echo \"$template_header\";"); echo $warnText; echo ""; eval("echo \"$template_footer\";"); } exit; // save edit record } elseif ($submit == 1) { require_once $ROOT_FOLDER."action/edit/save.php"; $as_Checked += 0; if ($as_admin) { $cond_check = "Checked=".$as_Checked; $cond_keyword = ", Keyword='".$as_Keyword."'"; } else { $cond_check = "Checked=Checked"; $cond_keyword = ""; } if ($user_table_mode) { $update = "UPDATE `".(LOWER_CASE_TABLES ? "user" : "User")."` SET ".$updateString." `Checked`=Checked ".$cond_keyword." WHERE `User_ID`='".$AUTH_USER_ID."'"; } else { $update = "UPDATE `".(LOWER_CASE_TABLES ? "data" : "Data")."".$classID."` SET ".$updateString." ".$cond_check.$cond_keyword.", `LastUser_ID`=".$AUTH_USER_ID.", `LastIP`=\"".$REMOTE_ADDR."\",`LastUserAgent`=\"".$HTTP_USER_AGENT."\" WHERE `Data_ID`='".$message."'".(!$modRights?" AND `User_ID`=".$AUTH_USER_ID:""); // Tag support if(function_exists(updateTags)&&$MODULE_VARS[tags][ENABLE_TAGS]){ $tags = $_POST['Tag']; updateTags($classID,$section,$message,$tags); } } $resMsg = mysql_query($update, $LinkID); $affectedRows = mysql_affected_rows($LinkID); if ($as_admin && !$user_mode) { if ($as_Priority && !$selfMsg) { $res = mysql_query("SELECT `Priority` FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."$classID` WHERE `Data_ID`='".$message."'", $LinkID); list($tmp_priority) = mysql_fetch_row($res); if ($as_Priority != $tmp_priority) { if(mysql_num_rows(mysql_query("SELECT * FROM `".(LOWER_CASE_TABLES ? "data" : "Data")."$classID` WHERE `Priority`='".$as_Priority."'", $LinkID)) > 0) $res = mysql_query("UPDATE `".(LOWER_CASE_TABLES ? "data" : "Data")."$classID` SET `Priority`=Priority+1,`LastSystem_Updated`=LastSystem_Updated WHERE `Priority`>=".$as_Priority." AND Section_ID='".$section."' AND Section_Object_ID='".$object."'", $LinkID); $res = mysql_query("UPDATE `".(LOWER_CASE_TABLES ? "data" : "Data")."$classID` SET `Priority`=".$as_Priority.",`LastSystem_Updated`=LastSystem_Updated WHERE `Data_ID`='".$message."'", $LinkID); } } } if ($resMsg && ($affectedRows || $editActionTemplate_run)) { if ($editActionTemplate) { eval("echo \"$template_header\";"); eval("echo \"".$editActionTemplate."\";"); eval("echo \"$template_footer\";"); } else { if ($submit_type == 1) { Header('Location: ' . $CMS_ADMIN_PATH . '?site='.$site.'§ion='.$section.'&object='.$object.'&noframe=0&curPos='.$curPos .(empty($_REQUEST['returnScroll']) ? '' : '#returnScroll='.$_REQUEST['returnScroll'])); header("Content-Length:0"); exit(); } } } elseif ($submit_type == 1) { Header('Location: ' . $CMS_ADMIN_PATH . '?site='.$site.'§ion='.$section.'&object='.$object.'&noframe=0&curPos='.$curPos .(empty($_REQUEST['returnScroll']) ? '' : '#returnScroll='.$_REQUEST['returnScroll'])); header("Content-Length:0"); exit(); } if (!isset($submit_type)) { Header('Location: '.$goBackLink); header("Content-Length:0"); exit(); } } //eval("echo \"$template_footer\";"); if ($submit_type == 1 || !$resMsg) eval("echo \"$template_footer\";"); //if ($submit_type == 2 && $resMsg) Header('Location: ' . $CMS_ADMIN_PATH . 'action/edit/?site='.$site.'§ion='.$section.'&object='.$object.'&message='.$message); if ($submit_type == 2 && $resMsg) { jsinitpage(); jsclear('status_text'); jsclear('status_text2'); jsprint('status_text', _LANG_SAVED_IN.' '.date("H:i:s")); jsprint('status_text2', _LANG_SAVED_IN.' '.date("H:i:s")); } ?>PK 9[Ys}; ; edit.phpnu W+A PK 9[sΓ- - <