Re: Re: login with CVS accounts on docs.php.net

From: Date: Sat, 12 Jun 2004 21:53:52 +0000
Subject: Re: Re: login with CVS accounts on docs.php.net
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.doc.web 
Request: Send a blank email to doc-web+get-74@lists.php.net to get a copy of this message
On Sat Jun 12 16:29:32 2004 Gabor Hojtsy wrote: > >Providing an authentication script on master which is IP > >and token restricted sounds fine to me. > > Great. I'll add it later. And once the master server starts updating > again :), it will start working. > > Goba Goba, Attached is an updated version of the quickly hacked up script which I included on a previous mail which requires both locked to an IP address and requires a token. I'll commit to master.php.net shortly. I will also hack up a script for figuring out from docs.php.net if the user is authenticated using the above mentioned script. Regards --jm

<?php // $Id:$ require_once 'cvs-auth.inc'; $user = null; $pw = null; if ($_SERVER['REMOTE_ADDR'] != '81.57.253.132' && $_GET['token'] != '97669cf8c9a1449eb2099ea6147d125697669cf8c9a1449eb2099ea6147d1256') { die ("ERR: Permission denied."); } if (isset($_GET['credential'])) { list($user, $pw) = explode(":", base64_decode($_GET['credential'])); } else { die ("ERR: No credential passed."); } if (verify_password($user, $pw)) { die ("OK"); } else { die ("ERR: Login failed."); }
« previous php.doc.web (#74) next »