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 : 172.67.156.115

your ip : 172.69.6.94

H O M E


Filename/var/www/html/sman1baleendahok/modul/tag_soal.php
Size815
Permissionrw-rw-r--
Ownerulung : ulung
Create time27-Apr-2025 11:12
Last modified05-Feb-2025 08:55
Last accessed06-Jul-2025 18:17
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
$tag .="<ul>";
$sql="select * from t_soal order by id desc limit 0,5";
if(!$query=mysql_query($sql)) die ("Pengambilan gagal1 materi");
$i=1;
while($row=mysql_fetch_array($query)) {
$judul= $row[judul];
$judul = stripslashes($judul);
$h = strval(substr($row[tanggal],0,2));
$b = strval(substr($row[tanggal],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='guru.php?id=lihsoal&kode=$row[id]' title='Didownload $row[visit] kali' >$row[judul]</a> $new </li>";
$i++;
}
$tag .='<ul><div style="text-align:right">::&nbsp;<a href="guru.php?id=soal" >Selengkapnya</a></div>';
?>