One Hat Cyber Team
Your IP :
216.73.216.135
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
/
inactive
/
View File Name :
manage_articles.x.php3
<? $page_title="Articles table"; require("header.inc"); require("../auth/auth.php3"); require("defs_articles.php3"); echo "<body>"; //dl("mysql.so"); $max_title_chars=40; $default_sortby="id"; if (isset($sortby_selected)) $sortby=$sortby_selected; else $sortby=$default_sortby; //echo "sortby=$sortby"; $db_handle = mysql_connect($host, $user, $password); echo "<h1>"; print($page_title); echo "</h1>"; /* $res = mysql_db_query($database,"select id,title,received, status from Articles order by '$sortby'"); */ $res = mysql_db_query($database,"select distinct * from AA LEFT JOIN Articles on Articles.id=AA.article_id LEFT JOIN Authors on AA.author_id=Authors.id order by Articles.id "); if(!$res) die(mysql_error()); echo "<div><center>"; // sort echo "<form method=post action=manage_articles.php3>"; echo "<div class=menu>"; echo "<center>"; echo "<input type=submit value=\"Sort the entries by ...\">\n"; echo "<select name=\"sortby_selected\">"; $sort_criteria["id"] = "Registration number"; $sort_criteria["first_author"] = "First author"; $sort_criteria["status"] = "Article status"; $sort_criteria["received"] = "Reception date"; while (list($key,$val)=each($sort_criteria)) { if ($key==$sortby) echo "<option selected name=\"sortby_selected\" value=\"$key\">$val"; else echo "<option name=\"sortby_selected\" value=\"$key\">$val"; echo "<option name=\"sortby_selected\" value=\"$default_sortby\">DEFAULT"; //else echo "<option name=\"sortby_selected\" value=\"$key\">$val"; print("</select>"); echo "</center>"; echo "</div>"; echo "</form>"; //end sort echo "<form method=\"POST\" action=\"manage_articles_action.php3\">"; echo "<select name=\"id_selected\" size=5>\n"; while($row = mysql_fetch_array($res)) { $s= $row[status]; $s=$Status_brief[$s]; echo "<option value=\"$row[id]\">no. $row[id], \""; $short_title=substr($row[title],0,$max_title_chars); print($short_title); if ($short_title!=$row[title]) echo "..."; echo "\" "; $f_au = mysql_db_query($database, "select id,author_id from AA where article_id=$row[id] order by author_ambition"); $howmany=0; while ($au= mysql_fetch_array($f_au)) { $by = plain_short_name($au[author_id]); $howmany++; }//au if (!$howmany) $by="???"; elseif ($howmany>1) $by=$by." et al."; echo " by ".$by.", "; print($row[received]); echo " ($s)"; echo "</option>\n"; } print("</select><br>\n"); echo "</center></div>"; echo "<div class=control>"; echo "<DL><DT><H3>Choose an action</H3>"; echo "<DD><input checked type=\"radio\" name=todo value=\"modify\"> Modify the selected entry\n"; echo "<DD><input type=\"radio\" name=todo value=\"add\"> Add a new entry\n"; echo "</DL>"; echo "<center><input type=submit value=Proceed></center>"; echo "</div>"; print("</form>"); mysql_close($db_handle); require("footer.php3"); ?> </body> </html>