🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #445

wiele loginów i haseł

#445
From: ..::Maciek::..
Date: Tue, 21 Aug 2001 09:32
33 lines
1698 bytes
Mam taki skrypt do logowania:

<?php

$LOGIN = "login";
$PASSWORD = "haslo";


function error ($error_message) {
 echo $error_message."<BR>";
 exit;
}
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $LOGIN) && (
$PHP_AUTH_PW == "$PASSWORD" )) ) {
 header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
 header("HTTP/1.0 401 Unauthorized");
 error("Unauthorized access...");
}
?>

Jak można podać wiele haseł i loginów akceptowanych ? Jeżeli się nie da, to,
jeżeli ktoś posiada, proszę mi podać skrypt, który by umożliwiał podanie
wiele loginów i haseł.


--
pozdr.
Maciek =( papugi@zwierzeta.net )=
http://www.parrot.prv.pl - "Ptaki Egzotyczne on-line"
http://www.webhelp.pl/konkurs/in.php?site=997341824 - Zagłosuj na moją
stronę !

Ps. Interesuje mnie tylko rozwiązanie w php.
Technical Details
Message-ID: <9lth6b$hv4$10@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!news.tpi.pl!not-for-mail
From: "..::Maciek::.." <papugi@poczta.onet.pl>
Newsgroups: pl.comp.lang.php,pl.comp.www.server-side
Subject: wiele loginów i haseł
Date: Tue, 21 Aug 2001 11:32:51 +0200
Organization: tp.internet - http://www.tpi.pl
Lines: 35
Message-ID: <9lth6b$hv4$10@news.tpi.pl>
NNTP-Posting-Host: pa46.tarnow.cvx.ppp.tpnet.pl
X-Trace: news.tpi.pl 998393867 18404 213.77.222.46 (21 Aug 2001 11:37:47 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: 21 Aug 2001 11:37:47 GMT
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit