mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-14 23:31:02 +00:00
@@ -1741,13 +1741,13 @@ class MYSQL_DB {
|
|||||||
return mysql_query($q, $this->connection);
|
return mysql_query($q, $this->connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addNotice($uid, $wref, $aid, $type, $topic, $data, $time = 0) {
|
function addNotice($uid, $toWref, $ally, $type, $topic, $data, $time = 0) {
|
||||||
if($time == 0) {
|
if($time == 0) {
|
||||||
$time = time();
|
$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)";
|
$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());
|
return mysql_query($q, $this->connection) or die(mysql_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNotice($uid) {
|
function getNotice($uid) {
|
||||||
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid and del = 0 ORDER BY time DESC";
|
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid and del = 0 ORDER BY time DESC";
|
||||||
|
|||||||
Reference in New Issue
Block a user