|
|
|
@ -163,10 +163,17 @@
|
|
|
|
|
|
|
|
|
|
if($_SESSION['profile']['id'] > 0)
|
|
|
|
|
{
|
|
|
|
|
$query = "select sum(`points`) as `total` from `notary` where `to`='".$_SESSION['profile']['id']."' group by `to`";
|
|
|
|
|
$res = mysql_query($query);
|
|
|
|
|
$row = mysql_fetch_assoc($res);
|
|
|
|
|
$_SESSION['profile']['points'] = $row['total'];
|
|
|
|
|
$locked = mysql_fetch_assoc(mysql_query("select `locked` from `users` where `id`='".$_SESSION['profile']['id']."'"));
|
|
|
|
|
if($locked['locked'] == 0)
|
|
|
|
|
{
|
|
|
|
|
$query = "select sum(`points`) as `total` from `notary` where `to`='".$_SESSION['profile']['id']."' group by `to`";
|
|
|
|
|
$res = mysql_query($query);
|
|
|
|
|
$row = mysql_fetch_assoc($res);
|
|
|
|
|
$_SESSION['profile']['points'] = $row['total'];
|
|
|
|
|
} else {
|
|
|
|
|
$_SESSION['profile'] = "";
|
|
|
|
|
unset($_SESSION['profile']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function loadem($section = "index")
|
|
|
|
|