mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-05 12:24:20 +00:00
add checkOasisExist function
This commit is contained in:
@@ -941,6 +941,16 @@
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function checkOasisExist($wref) {
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "odata where wref = '$wref'";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
if(mysql_num_rows($result)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function UpdateEditTopic($id, $title, $cat) {
|
||||
$q = "UPDATE " . TB_PREFIX . "forum_topic set title = '$title', cat = '$cat' where id = $id";
|
||||
|
||||
Reference in New Issue
Block a user