From 4bfffe7a6c151db313010f9969d175704a9f938f Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Jun 2012 13:54:59 +0300 Subject: [PATCH] update welcome message, insert server name, not clomes team (by songeriux) --- Admin/welcome.tpl | 2 +- GameEngine/Admin/welcome.tpl | 2 +- GameEngine/Message.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Admin/welcome.tpl b/Admin/welcome.tpl index 10fe562c..456e1732 100644 --- a/Admin/welcome.tpl +++ b/Admin/welcome.tpl @@ -3,4 +3,4 @@ Hello %USER%, Thank you for registering on our server. Since the %START% at %TIME% Romans, Gauls and Teutons attack each other on this game world. Right now, %PLAYERS% players in %ALLI% Alliances are fighting for supremacy. -TravianX Team \ No newline at end of file +Regards, %SERVER_NAME% \ No newline at end of file diff --git a/GameEngine/Admin/welcome.tpl b/GameEngine/Admin/welcome.tpl index 10fe562c..456e1732 100644 --- a/GameEngine/Admin/welcome.tpl +++ b/GameEngine/Admin/welcome.tpl @@ -3,4 +3,4 @@ Hello %USER%, Thank you for registering on our server. Since the %START% at %TIME% Romans, Gauls and Teutons attack each other on this game world. Right now, %PLAYERS% players in %ALLI% Alliances are fighting for supremacy. -TravianX Team \ No newline at end of file +Regards, %SERVER_NAME% \ No newline at end of file diff --git a/GameEngine/Message.php b/GameEngine/Message.php index 150b1432..6950a1c5 100644 --- a/GameEngine/Message.php +++ b/GameEngine/Message.php @@ -358,6 +358,7 @@ $welcomemsg = preg_replace("'%TIME%'", date("H:i", COMMENCE), $welcomemsg); $welcomemsg = preg_replace("'%PLAYERS%'", $database->countUser()-4, $welcomemsg); $welcomemsg = preg_replace("'%ALLI%'", $database->countAlli(), $welcomemsg); + $welcomemsg = preg_replace("'%SERVER_NAME%'", SERVER_NAME, $welcomemsg); $welcomemsg = "[message]".$welcomemsg."[/message]"; return $database->sendMessage($uid, 5, WEL_TOPIC, $welcomemsg, 0); }