mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-12 23:56:08 +00:00
fix: message sending to players via Admin now works
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
#################################################################################
|
||||
|
||||
include_once("../../GameEngine/Account.php");
|
||||
mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysqli_select_db(SQL_DB);
|
||||
if (!isset($_SESSION)) session_start();
|
||||
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
|
||||
|
||||
@@ -23,9 +21,8 @@ $topic = $_POST['topic'];
|
||||
$message = $_POST['message'];
|
||||
$time = time();
|
||||
|
||||
$query = "INSERT INTO ".TB_PREFIX."mdata (target, owner, topic, message, viewed, time) VALUES ('$uid', 1, '$topic', '$message', 0, '$time')";
|
||||
|
||||
mysqli_query($GLOBALS["link"], $query);
|
||||
$query = "INSERT INTO ".TB_PREFIX."mdata VALUES ('', '$uid', 1, '$topic', '$message', 0, 0, 0, '$time', 0, 0, 0, 0, 0, 0)";
|
||||
mysqli_query($GLOBALS["link"], $query) OR DIE (mysqli_errno($GLOBALS["link"]));
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=Newmessage&uid=".$uid."&msg=ok");
|
||||
?>
|
||||
@@ -39,6 +39,7 @@ martinambrus changes:
|
||||
27. editing additional user data in Admin now saves them when Enter is used instead of clicking on "Save" as well
|
||||
28. fixed reports pagination always staying on "All" tab
|
||||
29. fix for the "fixed" :) self-kicking from an alliance
|
||||
30. fixed sending messages to player via Admin
|
||||
|
||||
|
||||
Shadowss changes:
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
- disallow Support to play (single cookie for Admin and the game means support gets no village and lots of warnings when they switch to game now)
|
||||
- resetting res bonus in admin actually says that bonus was given after OK is pressed
|
||||
- quest image should glow red when new task is ready to be read (now it's only red when page is refreshed)
|
||||
- sending messages to players via Admin doesn't work
|
||||
- check aliance invitation accepting - apparently it doesn't work too well on first try?
|
||||
- normalize forum tables - varchar is used for numeric values and is joined with int field
|
||||
- task 1 => construct woodcutter will not reload the page when finished, so it would still seem that woodcutter build is in progress
|
||||
|
||||
Reference in New Issue
Block a user