bug fixes

This commit is contained in:
root 2004-12-02 11:42:34 +00:00
parent 06fbc884c5
commit c9a48ec847
2 changed files with 8 additions and 2 deletions

View file

@ -46,6 +46,10 @@
<td class="DataTD"><?=_("Assurers")?>:</td> <td class="DataTD"><?=_("Assurers")?>:</td>
<td class="DataTD"><?=number_format(mysql_num_rows(mysql_query("select * from notary group by `to` having sum(`points`) >= 100")))?></td> <td class="DataTD"><?=number_format(mysql_num_rows(mysql_query("select * from notary group by `to` having sum(`points`) >= 100")))?></td>
</tr> </tr>
<tr>
<td class="DataTD"><?=_("Assurances Made")?>:</td>
<td class="DataTD"><?=number_format(mysql_num_rows(mysql_query("select * from `notary`")))?></td>
</tr>
</table> </table>
<? showfooter(); ?> <? showfooter(); ?>

View file

@ -132,7 +132,8 @@
`to`='".$_SESSION['_config']['notarise']['id']."', `to`='".$_SESSION['_config']['notarise']['id']."',
`points`='".intval($_POST['points'])."', `points`='".intval($_POST['points'])."',
`location`='".mysql_escape_string(stripslashes($_POST['location']))."', `location`='".mysql_escape_string(stripslashes($_POST['location']))."',
`date`='".mysql_escape_string(stripslashes($_POST['date']))."'"; `date`='".mysql_escape_string(stripslashes($_POST['date']))."',
`when`=NOW()";
if($_SESSION['profile']['admin'] == 1) if($_SESSION['profile']['admin'] == 1)
$query .= ",\n`method`='".mysql_escape_string(stripslashes($_POST['method']))."'"; $query .= ",\n`method`='".mysql_escape_string(stripslashes($_POST['method']))."'";
mysql_query($query); mysql_query($query);
@ -143,7 +144,8 @@
`points`='2', `points`='2',
`location`='".mysql_escape_string(stripslashes($_POST['location']))."', `location`='".mysql_escape_string(stripslashes($_POST['location']))."',
`date`='".mysql_escape_string(stripslashes($_POST['date']))."', `date`='".mysql_escape_string(stripslashes($_POST['date']))."',
`method`='Administrative Increase'"; `method`='Administrative Increase',
`when`=NOW()";
mysql_query($query); mysql_query($query);
$_SESSION['profile']['points'] += 2; $_SESSION['profile']['points'] += 2;
} }