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 :
defs.php
<? //admin $alert_colour="#fa8072"; function short_name($author_id) { global $_db,$_db_host,$_db_user,$_db_password,$lang,$charset,$collation; $db_handle=mysql_connect($_db_host,$_db_user,$_db_password); mysql_query("SET NAMES '$charset'", $db_handle); $fetch_author = mysql_db_query($_db, "SELECT id, first_name_$lang, middle_name_$lang, last_name_$lang, short_name_$lang from Authors where id='$author_id'"); while ($entry=mysql_fetch_array($fetch_author)) { if ($entry["short_name_$lang"]) $name=$entry["short_name_$lang"]; else { // no explicit short_name $name = substr($entry["first_name_$lang"],0,1).". "; if ($entry["middle_name_$lang"]) $name = $name.substr($entry["middle_name_$lang"],0,1).". "; if ($entry["last_name_$lang"]) $name = $name.$entry["last_name_$lang"]; } }//while return trim($name); } //short_name function get_short_authors($article_id) { global $_db,$lang; $fetch_these_authors = mysql_db_query($_db, "SELECT Authors.id, Authors.last_name_$lang, Authors.first_name_$lang, Authors.middle_name_$lang, Authors.short_name_$lang_$lang FROM AA LEFT JOIN Authors ON AA.author_id=Authors.id WHERE AA.article_id='$article_id' ORDER BY AA.author_ambition"); $authors=""; //$how_many_authors=0; while($these_authors = mysql_fetch_array($fetch_these_authors)) { // $how_many_authors++; $authors=$authors."<a href=$www/index.php?menu_item=author_card&author_id=$these_authors[id]>".short_name($these_authors[id]); $authors = $authors."</a>, "; } //these_authors //echo "[Total $how_many_authors authors]<br>"; return $authors = substr($authors,0,-2); // remove ", " at the end }//function get_short_authors ?>