diff --git a/pages/account/43.php b/pages/account/43.php
index ecaaa9b..0e3049c 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -127,4 +127,76 @@
=$drow['points']?> |
+
+
+
+ =_("Your Assurance Points")?> |
+
+
+ =_("Date")?> |
+ =_("Who")?> |
+ =_("Points")?> |
+ =_("Location")?> |
+ =_("Method")?> |
+
+
+ $query = "select * from `notary` where `to`='".$row['id']."'";
+ $dres = mysql_query($query);
+ $points = 0;
+ while($drow = mysql_fetch_assoc($dres))
+ {
+ $fromuser = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".$drow['from']."'"));
+ $points += $drow['points'];
+?>
+
+ =$drow['date']?> |
+ =$fromuser['fname']." ".$fromuser['lname']?> |
+ =$drow['points']?> |
+ =$drow['location']?> |
+ =$drow['method']?> |
+
+ } ?>
+
+ =_("Total Points")?>: |
+ =$points?> |
+ |
+
+
+
+
+
+ =_("Assurance Points You Issued")?> |
+
+
+ =_("Date")?> |
+ =_("Who")?> |
+ =_("Points")?> |
+ =_("Location")?> |
+ =_("Method")?> |
+
+
+ $query = "select * from `notary` where `from`='".$row['id']."' and `to`!='".$row['id']."'";
+ $dres = mysql_query($query);
+ $points = 0;
+ while($drow = mysql_fetch_assoc($dres))
+ {
+ $fromuser = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".$drow['to']."'"));
+ $points += $drow['points'];
+?>
+
+ =$drow['date']?> |
+ =$fromuser['fname']." ".$fromuser['lname']?> |
+ =$drow['points']?> |
+ =$drow['location']?> |
+ =$drow['method']?> |
+
+ } ?>
+
+ =_("Total Points")?>: |
+ =$points?> |
+ |
+
+
+
} } ?>
+
diff --git a/pages/wot/10.php b/pages/wot/10.php
index af7ca61..9df1d8b 100644
--- a/pages/wot/10.php
+++ b/pages/wot/10.php
@@ -67,7 +67,7 @@
?>
=$row['date']?> |
- =$fromuser['fname']." ".$fromuser['lname']?> |
+ =$fromuser['fname']." ".$fromuser['lname']?> |
=$row['points']?> |
=$row['location']?> |
=$row['method']?> |
diff --git a/www/wot.php b/www/wot.php
index 0133794..6391a1c 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -195,6 +195,10 @@
$_POST['points'] = $max - $drow['total'];
if($_POST['points'] < 0)
$_POST['points'] = 0;
+
+ if(mysql_escape_string($_POST['date']) == "")
+ $_POST['date'] = date("Y-m-d H:i:s");
+
$query = "insert into `notary` set `from`='".$_SESSION['profile']['id']."',
`to`='".$_SESSION['_config']['notarise']['id']."',
`points`='".intval($_POST['points'])."',
@@ -203,7 +207,7 @@
if($_SESSION['profile']['admin'] == 1)
$query .= ",\n`method`='".mysql_escape_string($_POST['method'])."'";
mysql_query($query);
- if($_SESSION['profile']['id'] < 150)
+ if($_SESSION['profile']['points'] < 150)
{
$query = "insert into `notary` set `from`='".$_SESSION['profile']['id']."',
`to`='".$_SESSION['profile']['id']."',
@@ -212,7 +216,7 @@
`date`='".mysql_escape_string($_POST['date'])."',
`method`='Administrative Increase'";
mysql_query($query);
- $_SESSION['profile']['id'] += 2;
+ $_SESSION['profile']['points'] += 2;
}
if($_SESSION['_config']['notarise']['language'] != "")