[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

admin.php sichern dürch login anfrage

This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ›  Allgemeines

View previous topic :: View next topic  
Author Message
flatter
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Jul 29, 2004
Posts: 148

PostPosted: 12.10.2004 19:39
Post subject: admin.php sichern dürch login anfrage

Alle könen sich admin.php sichern dürch login und pass anfrage...
Dise daten einfach ind admin.php oben einfügen

<?php
$username = "Dein nick";
$password = "Dein Pass";

function authenticate() {
Header( "WWW-authenticate: basic realm=\"deineaddy.de Protected\"");
Header( "HTTP/1.0 401 Unauthorized");
echo "Hir das error text einfügen!\n";
exit;
}

function CheckPwd($user,$pass) {
global $username,$password;
return ($user != $username || $pass != $password) ? false : true;
}

if(!isset($PHP_AUTH_USER)) {
authenticate();
}
elseif(!CheckPwd($PHP_AUTH_USER,$PHP_AUTH_PW)) {
authenticate();
}


flatter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
(Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ›  Allgemeines
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy