more updates

This commit is contained in:
unknown
2012-09-19 22:44:28 +03:00
parent 1ef5eff485
commit 6d07e3a626
6 changed files with 54 additions and 19 deletions
+8 -1
View File
@@ -221,7 +221,7 @@ class MYSQL_DB {
}
function setDeleting($uid, $mode) {
$time = time() + 72 * 3600;
$time = time() + 5 * 3600;
if(!$mode) {
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
} else {
@@ -693,6 +693,13 @@ class MYSQL_DB {
}
return $newarray;
}
function getVillagesID2($uid) {
$q = "SELECT wref from " . TB_PREFIX . "vdata where owner = $uid order by capital DESC,pop DESC";
$result = mysql_query($q, $this->connection);
$array = $this->mysql_fetch_all($result);
return $array;
}
function getVillage($vid) {
$q = "SELECT * FROM " . TB_PREFIX . "vdata where wref = $vid";