update install and email activation + add friends inviting system

This commit is contained in:
unknown
2012-05-22 20:52:56 +03:00
parent 7d43ffbaa3
commit 2d87749f95
34 changed files with 765 additions and 488 deletions
+6
View File
@@ -138,6 +138,12 @@
$dbarray = mysql_fetch_array($result);
return $dbarray[$field];
}
function getInvitedUser($uid) {
$q = "SELECT * FROM " . TB_PREFIX . "users where invited = $uid order by regtime desc";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getVrefField($ref, $field){
$q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = '$ref'";