more fixes

This commit is contained in:
unknown
2012-06-18 20:38:27 +03:00
parent 527316097b
commit 86dc4c1904
41 changed files with 2003 additions and 1399 deletions
+6 -2
View File
@@ -659,14 +659,14 @@ class MYSQL_DB {
}
function getProfileMedal($uid) {
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "medal where userid = $uid order by id desc";
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "medal where userid = $uid and del = 0 order by id desc";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getProfileMedalAlly($uid) {
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "allimedal where allyid = $uid order by id desc";
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "allimedal where allyid = $uid and del = 0 order by id desc";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
@@ -2584,6 +2584,10 @@ class MYSQL_DB {
$q = "UPDATE " . TB_PREFIX . "users set clp = clp - '$cp'' where id = $user";
return mysql_query($q, $this->connection);
}
function setclimberrankpop($user, $cp) {
$q = "UPDATE " . TB_PREFIX . "users set clp = '$cp' where id = $user";
return mysql_query($q, $this->connection);
}
function updateoldrank($user, $cp) {
$q = "UPDATE " . TB_PREFIX . "users set oldrank = '$cp' where id = $user";
return mysql_query($q, $this->connection);