K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / www / html / sman1baleendahok / modul /
server ip : 104.21.89.46

your ip : 172.70.80.203

H O M E


Filename/var/www/html/sman1baleendahok/modul/tag_info.php
Size782
Permissionrw-rw-r--
Ownerulung : ulung
Create time27-Apr-2025 11:12
Last modified05-Feb-2025 08:55
Last accessed06-Jul-2025 15:42
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
$tag .="<ul>";
$sql="select * from t_info order by id desc limit 0,5";
if(!$query=mysql_query($sql)) die ("Pengambilan gagal1 berita $id");
while ($row=mysql_fetch_array($query)) {
$judul= $row[subject];
//$judul = stripslashes($judul);
$h = strval(substr($row[postdate],0,2));
$b = strval(substr($row[postdate],3,2));
$h1 = strval(date("d"));
$b1 = strval(date("m"));
if ($h > $h1) { $h2 = ($h1+30) - $h;$b1= $b1 -1;}
else { $h2 = $h1 - $h; }
if ($b1<>$b) $h2=$h2+10;
$new ="";
if ($h2 < 10) $new ="<img src='../images/baru.gif'>";
$tag .="<li><a href='index.php?id=info&kode=$row[id]' class='ari13'>$judul</a>$new</li>";
}
$tag .='</ul><div style="text-align:right" >::&nbsp;<a href="index.php?id=info" >Selengkapnya</a></div>';
?>