One Hat Cyber Team
Your IP :
216.73.216.115
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
/
sam
/
public_html
/
go
/
Edit File:
news.php-old
<? require('header.inc.php'); require_once('header.php'); require_once('auth.inc.php'); $_thumb_width = 55; $_thumb_height = 32; $_img_width = "90%"; $_img_height = "160"; function print_news($news,$show_full=FALSE,$l="") { global $lang; echo "<div class=\"news\">\n"; echo "<dl class=\"news\">\n"; echo "<dt>". $news['title_'.$lang]. "</dt>"; echo "<dd>". $news['text_'.$lang]. "</dd>"; echo "</dl>\n"; $fl = mysql_query("select * from ns_files where news_id='".$news['id']."'"); $num_files = mysql_num_rows($fl); if ($num_files) { echo "<ul>\n"; while ($f = mysql_fetch_array($fl)) { echo "<li>\n"; echo file_link($f['file'],$f['descr_'.$lang]); echo "</li>\n"; } echo "<ul>\n"; } $ql = mysql_query("select * from ns_links where news_id='".$news['id']."'"); $num_links = mysql_num_rows($ql); if ($num_links) { echo "<dd>\n"; echo "<ul>\n"; while ($l = mysql_fetch_array($ql)) { if (1)//($l['link']) { echo "<li>\n"; echo "<a href=\"".$l['link']."\">". $l['descr_'.$lang] . "</a>"; echo "</li>\n"; } } echo "</ul>\n"; echo "</dd>\n"; } echo "<p class=\"news_date\">". $news['date']. "</p"; echo "</div>\n"; } function print_all_news($date_from="",$date_to="") { global $lang; if (!$date_to) $date_to = date("Y-m-d"); if (!$date_from) $date_from = date("1900-01-01"); $q = mysql_query("select * from ns where ((date <= '".$date_to."') and (date >= '".$date_to."')) order by date DESC"); //$q = mysql_query("select * from ns order by date DESC"); while ($n = mysql_fetch_array($q)) { print_news($n); } } function news($what,$desc,$link='',$imgs='') { global $_thumb_width,$_thumb_height,$_img_width,$_img_height; echo '<DL>'; echo '<DT>'; if ($link) echo '<a href=\''.$link.' target=_blank>'; echo $what; if ($link) echo '</a>'; echo '</DT>'; if ($desc) { echo '<DD>'. $desc.'</DD>'; } if (count($imgs)) { echo "<DD>"; foreach ($imgs as $key => $link) { echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"post\" style=\"display: inline;\">\n"; echo "<input type=\"hidden\" name=\"open[".$key."]\" value=\"mindegy\">"; echo "<input type=\"image\" src=\"".$key."\" height=\"".$_thumb_height."\" style=\"border: solid thin; border-color: #E2E2DE;\">"; echo "</form>\n"; } echo "</DD>\n"; if (count($_POST['open'])) //should be a single element { foreach ($_POST['open'] as $k=>$op) { echo "<DD>";//echo "k=$k"; if ($imgs[$k]) { $act = $imgs[$k]; $tar= " target=\"_blank\""; } else { $act= $_SERVER['PHP_SELF']; $tar= ""; } echo "<form action=\"".$act."\" method=\"post\" style=\"display: inline;\"".$tar.">\n"; //echo "<input type=\"hidden\" name=\"open[".$k."]\" value=\"".($_POST['open'][$k]? 0: 1)."\">"; echo "<input type=\"image\" src=\"".$k."\" width=\"".$_img_height."\" style=\"border: solid thin; border-color: #E2E2DE;\">"; echo "</form>\n"; echo "</DD>"; } } } echo '</DL>'; } ?> <? /*news(enruua('Anatoly Samoilenko is 70!','Анатолию Михайловичу Самойленко - 70!','Анатолію Михайловичу Самойленку - 70!'), enruua('An article in the Kyiv Polytechnic newspaper. See also the book dedicated to this event.','Статья в газете "Київський політехнік". Смотрите также книгу, посвященную событию.','Стаття в газеті "Київський політехнік". Дивіться також книгу, присвячену події.'), 'http://www.ntu-kpi.kiev.ua/newspaper/801-7.php', array('files/sam70_kp_2008.jpg' =>'files/sam70_kp_2008.jpg', 'files/book-70.jpg'=>'','files/sam70_im.jpg'=>'files/sam70_im.jpg') ); */ print_all_news("2003-01-01"); ?> <!--<img src="files/sam70_im.jpg"> <img src="files/book-70.jpg">--> <? require_once('footer.php'); ?>
Simpan