added network page

This commit is contained in:
Mike Macgirvin 2010-07-16 17:16:50 -07:00
parent 059e090b53
commit 5e4df4b3f7
9 changed files with 194 additions and 10 deletions

View file

@ -26,6 +26,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] == 'login'))) {
$r = q("SELECT * FROM `contact` WHERE `uid` = %s AND `self` = 1 LIMIT 1",
intval($_SESSION['uid']));
if(count($r)) {
$a->contact = $r[0];
$a->cid = $r[0]['id'];
$_SESSION['cid'] = $a->cid;
}