Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nama_level=$_POST['nama_level'];
- /* buat file */
- $f = fopen('http://localhost/coba/Bac/hak_'.$nama_level.'.php','w+');
- fwrite ($f,'<?
- ############################
- # Levelisasi $nama_level #
- ############################
- if (!isset('.$_SESSION['namauser'].'))
- {
- echo "<script>alert("Silahkan Hubungi Gudang Emprit untuk konfirmasi")</script>";
- }
- #########################################
- # Larangan Bukan Sesuai Levelisasi User #
- #########################################
- if(!$nama_level)
- {
- echo "<script>alert("Maaf,Anda tidak berhak akses menu ini!")</script>";
- echo "<meta http-equiv="refresh" content="0; url=index.php" />";
- header("location:../index.php");
- }
- ?>');
- fclose($f);
Advertisement
Add Comment
Please, Sign In to add comment