update welcome message, insert server name, not clomes team (by songeriux)

This commit is contained in:
unknown
2012-06-13 13:54:59 +03:00
parent 63f32c991b
commit 4bfffe7a6c
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
Regards, %SERVER_NAME%
+1 -1
View File
@@ -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
Regards, %SERVER_NAME%
+1
View File
@@ -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);
}