One Hat Cyber Team
Your IP :
216.73.216.24
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
nosc
/
public_html
/
admin
/
View File Name :
update_publ_data.php
<? $page_title="Manage articles table: action performed"; $related_page="manage_articles.php3"; echo "<HTML><BODY>"; require("../login/include/session.php"); //require_once("header.php"); include("../auth/auth.php"); include("functions_admin.php"); $lang = languify(take_variable('lang')); if ($_POST['id_selected']) $id_selected = $_POST['id_selected']; $art = article($_POST['id_selected']); $i = get_article_info($art); $s = $i['status']; $smeaning = article_status_meaning($s); mysql_query("SET NAMES ".$_charset); if ($smeaning=="published") $msg = check_publication_data($_POST['published_volume'],$_POST['published_number'], $_POST['published_page_start'], $_POST['published_page_end']); else $msg = ""; $success = FALSE; if (!$msg) { $res = mysql_query("update Articles set published_volume='".$_POST['published_volume']."',published_number='".$_POST['published_number']."',published_page_start='".$_POST['published_page_start']."', published_page_end='".$_POST['published_page_end']."' where id='".$_POST['id_selected']."' "); if (mysql_affected_rows($res)) { $success = TRUE; mysql_query("update Articles set updated=now(),updated_by='".$session->author_id."' where id='".$_POST['id_selected']."'"); } $success = TRUE; } else { $pm = ""; $num = count($msg); foreach ($msg as $k => $m) { if ($k) { if ($num>2) $pm = $pm. ", "; else $pm = $pm. " ".enruua("and","и","та")." "; } // $pm = $pm. strtolower(utf8_substr($m,0,1)) // . utf8_substr($m,1,utf8_strlen($m)).""; $pm = $pm. $m ; } tell(enruua("Your changes have been rejected because", "Ваши изменения отвергнуты, поскольку", "Ваші виправлення відкинуто, оскільки")." ".$pm."!"); } if ($success) { tell(enruua("The record corresponding to Article","Карточка статьи","Картка статті") ."" ." ".$id_selected. " ". enruua("have been successfully updated","успешно обновлена","успішно оновлено")."."); //header("Location: ".article_edit_page($id_selected)); // go(article_edit_page($id_selected)."#summary"); go("manage_articles_action.php#summary",array("id_selected","todo"),array($id_selected,"modify")); } else { tell(enruua("The record corresponding to Article","Карточку статьи","Картку статті") ."" ." ".$id_selected. " ". enruua("could not be updated","обновить не удалось","оновити не вдалося")."!"); //header("Location: ".article_edit_page($id_selected)); //go(article_edit_page($id_selected)."#summary"); go("manage_articles_action.php#summary",array("id_selected","todo"),array($id_selected,"modify")); } //require("footer.php"); ?>