cvs: php-master-web /fetch cvsusers.php
| From: | Jim Winstead | Date: | Wed, 17 Oct 2001 01:54:19 +0000 |
| Subject: | cvs: php-master-web /fetch cvsusers.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-7041@lists.php.net to get a copy of this message | ||
jimw Tue Oct 16 21:54:19 2001 EDT
Added files:
/php-master-web/fetch cvsusers.php
Log:
export cvsname/name/email list for use by cvs log mail script
Index: php-master-web/fetch/cvsusers.php
+++ php-master-web/fetch/cvsusers.php
<?php
# token required, since this should only get accessed from cvs.php.net
if (!isset($token) || md5($token) != "19a3ec370affe2d899755f005e5cd90e")
die("token not correct.");
// Connect and generate the list from the DB
if (@mysql_connect("localhost","nobody","")) {
if (@mysql_select_db("php3")) {
$res = @mysql_query("SELECT cvsuser,name,email FROM users WHERE cvsuser IS NOT NULL AND
passwd != ''");
if ($res) {
while ($row = @mysql_fetch_array($res)) {
echo "$row[cvsuser]:$row[name]:$row[email]\n";
}
}
}
}