mirror of
https://github.com/php/web-master.git
synced 2026-03-25 16:22:15 +01:00
21 lines
730 B
PHP
21 lines
730 B
PHP
<?php
|
|
|
|
use App\DB;
|
|
|
|
require_once __DIR__ . '/../../include/functions.inc';
|
|
|
|
# token required, since this should only get accessed from php.net mx
|
|
if (!isset($_REQUEST['token']) || md5($_REQUEST['token']) != "19a3ec370affe2d899755f005e5cd90e")
|
|
die("token not correct.");
|
|
|
|
// Connect and generate the list from the DB
|
|
$pdo = DB::connect();
|
|
$res = $pdo->safeQuery("SELECT username,email,spamprotect FROM users WHERE email != '' AND cvsaccess");
|
|
foreach ($res as $row) {
|
|
echo "$row[username]@php.net: ",
|
|
($row['spamprotect'] ? "|/local/bin/automoderate," : ""),
|
|
"$row[email];\n";
|
|
echo "$row[username]@pair2.php.net: ",
|
|
($row['spamprotect'] ? "|/local/bin/automoderate," : ""),
|
|
"$row[email];\n";
|
|
} |