mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-30 17:44:22 +00:00
@@ -1741,13 +1741,13 @@ class MYSQL_DB {
|
||||
return mysql_query($q, $this->connection);
|
||||
}
|
||||
|
||||
function addNotice($uid, $wref, $aid, $type, $topic, $data, $time = 0) {
|
||||
if($time == 0) {
|
||||
$time = time();
|
||||
}
|
||||
$q = "INSERT INTO " . TB_PREFIX . "ndata (id, uid, toWref, ally, topic, ntype, data, time, viewed) values (0,'$uid','$wref','$aid','$topic',$type,'$data',$time,0)";
|
||||
return mysql_query($q, $this->connection) or die(mysql_error());
|
||||
}
|
||||
function addNotice($uid, $toWref, $ally, $type, $topic, $data, $time = 0) {
|
||||
if($time == 0) {
|
||||
$time = time();
|
||||
}
|
||||
$q = "INSERT INTO " . TB_PREFIX . "ndata (id, uid, toWref, ally, topic, ntype, data, time, viewed) values (0,'$uid','$toWref','$ally','$topic',$type,'$data',$time,0)";
|
||||
return mysql_query($q, $this->connection) or die(mysql_error());
|
||||
}
|
||||
|
||||
function getNotice($uid) {
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid and del = 0 ORDER BY time DESC";
|
||||
|
||||
Reference in New Issue
Block a user