#!/usr/bin/php -q = 150) continue; $query = "select * from `notary` where `from`='".$drow['id']."' and `to`='".$drow['id']."'"; $num = mysql_num_rows(mysql_query($query)); $query = "select * from `notary` where `from`='".$drow['id']."' and `to`!='".$drow['id']."'"; $newnum = mysql_num_rows(mysql_query($query)); if($num < $newnum) { echo $drow['fname']." ".$drow['lname']." <".$drow['email']."> (memid: ".$drow['id']." points: ".$drow['points']." - num: $num newnum: $newnum)\n"; for($i = $newnum; $i > $num; $i--) { $newpoints = 2; if($drow['points'] + 1>= 150) break; if($drow['points'] + 2 > 150) $newpoints = 1; $query = "insert into `notary` set `from`='".$drow['id']."', `to`='".$drow['id']."', `points`='$newpoints', `method`='Administrative Increase', `date`=NOW()"; mysql_query($query); $drow['points'] += $newpoints; fix_assurer_flag($drow['id']); } } } ?>