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_all_action.php
<? $page_title="Administration centre: action"; $related_page="manage_all.php"; require("../header.php"); require("../auth.php"); echo "<body>"; //$selected[]=0; switch ($todo) { case "manage_authors": require("manage_authors.php"); break; exit; case "manage_articles": require("manage_articles.php"); break; exit; case "dump": echo "<h1>Making reserve copies</h1>"; system("mysqldump -u$user -p$password $database > nosc.sql", $retcode); if(!$retcode) { echo "<DIV><center> The database `$database' has been dumped into the file `<a href=nosc.sql>nosc.sql</a>'. </center> </DIV>"; } else echo "<DIV class=alert><center> The database `$database' dump into the file `nosc.sql' failed! </center> </DIV>"; if (!$footer) require("footer.php3"); break; case "browse_authors"; //browse action--------------------------------- //dl("mysql.so"); require("defs_authors.php3"); echo "<h1>Selecting the entries to process</h1>"; $db_handle = mysql_connect($host, $user, $password); $res = mysql_db_query("nosc","select id,editor,last_name,title,first_name,middle_name,city,street, postal_code,country,affiliation,email from Authors order by last_name,first_name"); if(!$res) die(mysql_error()); //$check="check_editors"; echo "<form action=\"manage_all_action.php3\" method=\"post\">"; echo "<div>"; echo "<input type=\"checkbox\" name=\"check\" value=\"check_editors\"> Check the members of the Editorial Board <br>"; echo "<input type=\"checkbox\" name=\"check\" value=\"uncheck_editors\"> Uncheck the members of the Editorial Board <br>"; echo "<input type=\"checkbox\" name=\"check\" value=\"check_all\"> Check all <br>"; echo "<input type=\"checkbox\" name=\"check\" value=\"uncheck_all\"> Uncheck all <br>"; echo "<center><input type=\"submit\" name=\"check_submit\" value=\"Check/Uncheck\">"; echo "<input type=hidden name=todo value=\"$todo\">"; echo "</center> </div>"; echo "</form>"; //browse echo "<form action=\"browse_action.php3\" method=\"post\">"; while ($entry = mysql_fetch_array($res)) { $todo="modify"; echo "Entry <a href=manage_authors_action.php3?id_selected=$entry[id]&todo=modify>no. $entry[id]</a> "; echo "<input "; switch ($check) { case "check_editors": if ($entry[editor]) echo " checked "; break; case "uncheck_editors": if (!$entry[editor]) echo " checked "; break; case "check_all": echo " checked "; break; case "uncheck_all": echo " "; break; } $id= $entry[id]; echo " type=\"checkbox\" name=\"selected[$id]\" >"; if ($entry[editor]==1) echo "  (a member of the Editorial Board)"; elseif ($entry[editor]==2) echo "  (Editor-in-chief)"; echo "<div "; if (!($entry[last_name] && $entry[affiliation] && $entry[country])) echo "class=suspicious"; else echo " class=entry "; echo "> <center>"; echo "<B>$entry[title] $entry[first_name] $entry[middle_name] $entry[last_name]</B><BR>\n <I>"; print nl2br($entry[affiliation]); echo "</I><BR>"; if ($entry[street]) echo "$entry[street]<BR>"; echo "$entry[postal_code] $entry[city]<br> $entry[country]"; if ($entry[email]) echo "<br><tt><a href=\"mailto:$entry[email]\">$entry[email]</a></tt>"; echo "</center> </div><br>"; } echo "</div>"; echo "<div>"; echo "<h3>Select the print command</h3>"; echo "<input type=text name=\"print_command\" value=\"lpr -Plp314\">"; echo "<h3>Select the action to perform</h3>"; echo "<input checked type=\"radio\" name=\"what_todo\" value=\"envelope\"> Print an envelope <br>"; echo "<input type=\"radio\" name=\"what_todo\" value=\"letter\"> Write a letter <br>"; echo "<input type=\"radio\" name=\"what_todo\" value=\"labels\"> Produce small labels with addresses <br>"; echo "<center>"; echo "<input type=submit value=\"Do!\">"; echo "</center>"; echo "</div>"; echo "</form>\n"; //echo "</table>"; if (!$footer) require("footer.php3"); break; default: if (!$footer) require("footer.php3"); } ?> </body> </html>