Added the script
parent
be230cd2db
commit
b9fa49e911
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/php -q
|
||||
<? /*
|
||||
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
||||
|
||||
This file is part of CAcert.
|
||||
|
||||
CAcert has been released under a CAcert Source License
|
||||
which can be found included with these source files or can
|
||||
be downloaded from the internet from the following address:
|
||||
http://www.cacert.org/src-lic.php
|
||||
|
||||
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. See the License for more details.
|
||||
*/
|
||||
|
||||
// Searches for all assurers in a certain region
|
||||
|
||||
include_once("../includes/mysql.php");
|
||||
|
||||
$query = "select * from `users` where `locid`=33572 OR `regid`=870";
|
||||
$res = mysql_query($query);
|
||||
while($row = mysql_fetch_assoc($res))
|
||||
{
|
||||
$ass = mysql_num_rows(mysql_query("select * from `notary` where `from`='".$row['id']."' and `from`!=`to`"));
|
||||
$dres = mysql_query("select sum(`points`) as `tp` from `notary` where `to`='".$row['id']."'");
|
||||
$drow = mysql_fetch_assoc($dres);
|
||||
if($drow['tp'] < 100)
|
||||
echo $row['fname']." ".$row['lname']." <".$row['email']."> (memid: ".$row['id']." assurances: $ass tp: ".$drow['tp'].")\n";
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue