本文整理汇总了PHP中Link::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Link::get方法的具体用法?PHP Link::get怎么用?PHP Link::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Link
的用法示例。
在下文中一共展示了Link::get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGeneral
public function testGeneral()
{
$link = new Link();
$link->render();
$link->add('bootstrap.css', 'style/bootstrap.css');
$link->add('slider.css', ['href' => 'style/slider.css', 'type' => 'text/css', 'rel' => 'stylesheet']);
$link->addAll(['more.css' => 'style/more.css', 'more2.css' => ['href' => 'style/more2.css']]);
$link->prependAll(['first0' => 'style/first0.css', 'fist1' => ['href' => 'style/first1.css', 'type' => 'text/css', 'rel' => 'stylesheet']]);
$this->assertNotEmpty($link->get('more.css'));
$link->remove('more.css');
$this->assertEmpty($link->get('more.css'));
$link->prepend('first_of_first', 'style/bootstrap.css');
$link->prepend('first_of_first', ['href' => 'style/bootstrap.css', 'rel' => 'stylesheet']);
$link->render();
}
示例2: indexAction
/**
* Index action.
*
* @return Bengine_Game_Controller_MSG
*/
protected function indexAction()
{
$select = array("f.folder_id", "f.label", "f.is_standard", "COUNT(m.msgid) AS messages", "SUM(m.read) AS `read`", "SUM(LENGTH(m.message)) AS `storage`");
$joins = "LEFT JOIN " . PREFIX . "message m ON (m.mode = f.folder_id AND m.receiver = '" . Core::getUser()->get("userid") . "')";
$where = Core::getDB()->quoteInto("f.userid = ? OR f.is_standard = '1'", Core::getUser()->get("userid"));
$result = Core::getQuery()->select("folder f", $select, $joins, $where, "", "", "f.folder_id");
$folders = array();
foreach ($result->fetchAll() as $row) {
$unreadMessages = $row["messages"] - (int) $row["read"];
if ($unreadMessages > 1) {
$read = "UNREAD";
$newMessages = sprintf(Core::getLanguage()->getItem("F_NEW_MESSAGES"), fNumber($unreadMessages));
} else {
if ($unreadMessages > 0) {
$read = "UNREAD";
$newMessages = Core::getLanguage()->getItem("F_NEW_MESSAGE");
} else {
$read = "READ";
$newMessages = "";
}
}
$label = $row["is_standard"] ? Core::getLang()->get($row["label"]) : $row["label"];
$link = "game/" . SID . "/MSG/ReadFolder/" . $row["folder_id"];
$folders[] = array("image" => Link::get("game/" . SID . "/MSG/markasread/" . $row["folder_id"], Image::getImage(strtolower($read) . ".gif", Core::getLang()->get($read))), "label" => Link::get($link, $label, Core::getLang()->get($read)), "messages" => fNumber($row["messages"]), "newMessages" => $newMessages, "size" => File::bytesToString($row["storage"]));
}
$result->closeCursor();
Core::getTPL()->addLoop("folders", $folders);
return $this;
}
示例3: indexAction
/**
* @return Bengine_Admin_Controller_News
*/
protected function indexAction()
{
if ($this->getParam("add")) {
$this->add($this->getParam("language_id"), $this->getParam("title"), $this->getParam("text"));
}
$first = true;
$i = 1;
$news = array();
$result = Core::getQuery()->select("news", array("news_id", "title", "text", "time", "enabled", "sort_index"), "", "", "sort_index ASC, news_id DESC");
$total = $result->rowCount();
foreach ($result->fetchAll() as $row) {
$down = "";
$up = "";
if (!$first) {
$up = Image::getImage("admin/up.gif", "", 16, 16);
$up = Link::get("admin/news/moveup/" . $row["news_id"], $up);
}
$first = false;
if ($i < $total) {
$down = Image::getImage("admin/down.gif", "", 16, 16);
$down = Link::get("admin/news/movedown/" . $row["news_id"], $down);
}
$i++;
$news[] = array("news_id" => $row["news_id"], "title" => $row["title"], "text" => $row["text"], "time" => Date::timeToString(1, $row["time"]), "enabled" => $row["enabled"], "edit" => Link::get("admin/news/edit/" . $row["news_id"], Core::getLang()->get("Edit")), "delete" => Link::get("admin/news/delete/" . $row["news_id"], Core::getLang()->get("Delete")), "enable" => Link::get("admin/news/enable/" . $row["news_id"], Core::getLang()->get("Enable"), "", "green"), "disable" => Link::get("admin/news/disable/" . $row["news_id"], Core::getLang()->get("Disable"), "", "red"), "down" => $down, "up" => $up);
}
Core::getTemplate()->addLoop("news", $news);
$languages = $this->getLanguages();
Core::getTPL()->assign("languageCount", count($languages));
if (count($languages) == 1) {
Core::getTPL()->assign("languages", key($languages));
} else {
Core::getTPL()->assign("languages", $this->getLanguageSelect());
}
return $this;
}
示例4: render
/**
* @return array
*/
public function render()
{
foreach ($this->getModules() as $module) {
if ($module["enable"]) {
$name = $module["name"];
$translate = true;
if (is_array($name)) {
$translate = $name["noLangVar"];
$name = $name["value"];
}
if ($translate) {
$name = Core::getLang()->get($name);
}
$uri = $module["link"];
if (is_array($uri)) {
$package = isset($uri["package"]) ? $uri["package"] : "admin";
$controller = isset($uri["controller"]) ? $uri["controller"] : "index";
$action = isset($uri["action"]) ? $uri["action"] : "index";
$uri = "{$package}/{$controller}/{$action}";
}
$this->menu[] = Link::get($uri, $name, "", isset($module["class"]) ? $module["class"] : "");
}
}
return $this->menu;
}
示例5: indexAction
/**
* Index action.
*
* @return Bengine_Game_Controller_Friends
*/
protected function indexAction()
{
Core::getLanguage()->load(array("Statistics", "Buddylist"));
if ($this->isPost()) {
if ($this->getParam("delete")) {
$this->remove($this->getParam("remove", array()));
}
if ($this->getParam("accept")) {
$this->acceptRequest($this->getParam("relid"));
}
}
$bl = array();
$select = array("b.relid", "b.friend1", "b.friend2", "b.accepted", "u1.username as user1", "u1.points as points1", "u1.last as lastlogin1", "u2.points as points2", "u2.username as user2", "u2.last as lastlogin2", "a1.tag as ally1", "a1.aid as allyid1", "a2.tag as ally2", "a2.aid as allyid2", "g1.galaxy as gala1", "g1.system as sys1", "g1.position as pos1", "g2.galaxy as gala2", "g2.system as sys2", "g2.position as pos2");
$joins = "LEFT JOIN " . PREFIX . "user u1 ON (u1.userid = b.friend1)";
$joins .= "LEFT JOIN " . PREFIX . "user u2 ON (u2.userid = b.friend2)";
$joins .= "LEFT JOIN " . PREFIX . "galaxy g1 ON (g1.planetid = u1.hp)";
$joins .= "LEFT JOIN " . PREFIX . "galaxy g2 ON (g2.planetid = u2.hp)";
$joins .= "LEFT JOIN " . PREFIX . "user2ally u2a1 ON (u2a1.userid = b.friend1)";
$joins .= "LEFT JOIN " . PREFIX . "user2ally u2a2 ON (u2a2.userid = b.friend2)";
$joins .= "LEFT JOIN " . PREFIX . "alliance a1 ON (a1.aid = u2a1.aid)";
$joins .= "LEFT JOIN " . PREFIX . "alliance a2 ON (a2.aid = u2a2.aid)";
$result = Core::getQuery()->select("buddylist b", $select, $joins, Core::getDB()->quoteInto("b.friend1 = ? OR b.friend2 = ?", Core::getUser()->get("userid")), "u1.points DESC, u2.points DESC, u1.username ASC, u2.username ASC");
foreach ($result->fetchAll() as $row) {
Hook::event("ShowBuddyFirst", array(&$row));
if ($row["friend1"] == Core::getUser()->get("userid")) {
if ($row["lastlogin2"] > TIME - 900) {
$status = Image::getImage("on.gif", getTimeTerm(TIME - $row["lastlogin2"]));
} else {
$status = Image::getImage("off.gif", getTimeTerm(TIME - $row["lastlogin2"]));
}
$username = Link::get("game/" . SID . "/MSG/Write/" . rawurlencode($row["user2"]), Image::getImage("pm.gif", Core::getLanguage()->getItem("WRITE_MESSAGE"))) . " " . Link::get("game/" . SID . "/Profile/Page/" . $row["friend2"], $row["user2"]);
$points = $row["points2"];
$position = getCoordLink($row["gala2"], $row["sys2"], $row["pos2"]);
$ally = Link::get("game/" . SID . "/Alliance/Page/" . $row["allyid2"], $row["ally2"]);
} else {
if ($row["lastlogin1"] > TIME - 900) {
$status = Image::getImage("on.gif", getTimeTerm(TIME - $row["lastlogin1"]));
} else {
$status = Image::getImage("off.gif", getTimeTerm(TIME - $row["lastlogin1"]));
}
$username = Link::get("game/" . SID . "/MSG/Write/" . rawurlencode($row["user1"]), Image::getImage("pm.gif", Core::getLanguage()->getItem("WRITE_MESSAGE"))) . " " . Link::get("game/" . SID . "/Profile/Page/" . $row["friend1"], $row["user1"]);
$points = $row["points1"];
$position = getCoordLink($row["gala1"], $row["sys1"], $row["pos1"]);
$ally = Link::get("game/" . SID . "/Alliance/Page/" . $row["allyid1"], $row["ally1"]);
}
$bl[$row["relid"]]["f1"] = $row["friend1"];
$bl[$row["relid"]]["f2"] = $row["friend2"];
$bl[$row["relid"]]["relid"] = $row["relid"];
$bl[$row["relid"]]["username"] = $username;
$bl[$row["relid"]]["accepted"] = $row["accepted"];
$bl[$row["relid"]]["points"] = fNumber($points);
$bl[$row["relid"]]["status"] = $status;
$bl[$row["relid"]]["position"] = $position;
$bl[$row["relid"]]["ally"] = $ally;
Hook::event("ShowBuddyLast", array($row, &$bl));
}
$result->closeCursor();
Core::getTPL()->addLoop("buddylist", $bl);
return $this;
}
示例6: pageAction
/**
* Alliance page action.
*
* @return Bengine_Comm_Controller_Alliance
*/
public function pageAction()
{
Core::getLanguage()->load("Alliance");
Core::getTPL()->clearHTMLHeaderFiles();
Core::getTPL()->addHTMLHeaderFile("game.css", "css");
Core::getTPL()->addHTMLHeaderFile("lib/jquery.js", "js");
$tag = $this->getParam("1");
$fNumber = array("member", "points", "rpoints", "fpoints", "dpoints");
$attr = array("a.aid", "a.name", "a.tag", "a.logo", "a.textextern", "a.homepage", "a.showhomepage", "COUNT(u2a.userid) AS member", "SUM(u.points) AS points", "SUM(u.rpoints) AS rpoints", "SUM(u.fpoints) AS fpoints", "SUM(u.dpoints) AS dpoints");
$joins = "LEFT JOIN " . PREFIX . "user2ally u2a ON (u2a.aid = a.aid) ";
$joins .= "LEFT JOIN " . PREFIX . "user u ON (u2a.userid = u.userid) ";
$result = Core::getQuery()->select("alliance a", $attr, $joins, Core::getDB()->quoteInto("tag = ?", $tag), "", 1, "a.aid");
$row = $result->fetchRow();
if ($row) {
foreach ($fNumber as $field) {
$row[$field] = fNumber($row[$field]);
}
$parser = new Bengine_Game_Alliance_Page_Parser($row["aid"]);
if (Str::length(strip_tags($row["textextern"])) > 0) {
$row["textextern"] = $parser->startParser($row["textextern"]);
} else {
$row["textextern"] = Core::getLang()->get("WELCOME");
}
$row["homepage"] = $row["homepage"] != "" ? Link::get($row["homepage"], $row["homepage"], $row["homepage"]) : "";
$row["logo"] = $row["logo"] != "" ? Image::getImage($row["logo"], "") : "";
Hook::event("ShowPublicAlliancePage", array(&$row));
$this->assign($row);
$this->setIsAjax();
} else {
$this->setNoDisplay(true);
}
return $this;
}
示例7: indexAction
/**
* Displays the moderator form to edit users.
*
* @return Bengine_Game_Controller_Moderator
*/
protected function indexAction()
{
if ($this->isPost()) {
if ($this->getParam("proceedban")) {
$this->proceedBan($this->getParam("ban"), $this->getParam("timeend"), $this->getParam("reason"), $this->getParam("b_umode"));
}
if ($this->getParam("proceed")) {
$this->updateUser($this->getParam("username"), $this->getParam("usertitle"), $this->getParam("email"), $this->getParam("delete"), $this->getParam("umode"), $this->getParam("activation"), $this->getParam("ipcheck"), $this->getParam("usergroupid"), $this->getParam("points"), $this->getParam("fpoints"), $this->getParam("dpoints"), $this->getParam("rpoints"), $this->getParam("password"), $this->getParam("languageid"), $this->getParam("templatepackage"), $this->getParam("theme"), $this->getParam("js_interface"));
}
}
$select = array("u.userid", "u.username", "u.usertitle", "u.email", "u.temp_email", "u.languageid", "u.templatepackage", "u.theme", "u.js_interface", "u.points", "u.fpoints", "u.dpoints", "u.rpoints", "u.ipcheck", "u.activation", "u.last", "u.umode", "u.umode", "u.delete", "u.regtime", "a.tag", "a.name", "u2g.usergroupid");
$joins = "LEFT JOIN " . PREFIX . "user2ally u2a ON (u2a.userid = u.userid)";
$joins .= "LEFT JOIN " . PREFIX . "alliance a ON (a.aid = u2a.aid)";
$joins .= "LEFT JOIN " . PREFIX . "user2group u2g ON (u.userid = u2g.userid)";
$result = Core::getQuery()->select("user u", $select, $joins, Core::getDB()->quoteInto("u.userid = ?", $this->userid));
if ($row = $result->fetchRow()) {
$result->closeCursor();
Hook::event("ModerateUser", array(&$row));
$row["deletion"] = $row["delete"];
unset($row["delete"]);
$row["vacation"] = $row["umode"];
unset($row["umode"]);
$row["last"] = Date::timeToString(1, $row["last"]);
$row["regtime"] = Date::timeToString(1, $row["regtime"]);
Core::getTPL()->assign($row);
if ($row["usergroupid"] == 4) {
Core::getTPL()->assign("isMod", true);
} else {
if ($row["usergroupid"] == 2) {
Core::getTPL()->assign("isAdmin", true);
}
}
$result = Core::getQuery()->select("languages", array("languageid", "title"), "", "", "title ASC");
Core::getTPL()->addLoop("langs", $result);
Core::getTPL()->assign("loginLink", Link::get("game/" . SID . "/Moderator/SwitchUser/" . $row["userid"], Core::getLang()->get("SWITCH_USER")));
$bans = array();
$i = 0;
$result = Core::getQuery()->select("ban_u", array("`banid`", "`to`", "`reason`"), "", Core::getDB()->quoteInto("userid = ?", $this->userid));
foreach ($result->fetchAll() as $row) {
$bans[$i]["reason"] = $row["reason"];
$bans[$i]["to"] = Date::timeToString(1, $row["to"]);
if ($row["to"] > TIME) {
$bans[$i]["annul"] = Link::get("game/" . SID . "/Moderator/AnnulBan/" . $row["banid"], Core::getLanguage()->getItem("ANNUL"));
} else {
$bans[$i]["annul"] = Core::getLanguage()->getItem("ANNUL");
}
$i++;
}
$result->closeCursor();
Core::getTPL()->addLoop("bans", $bans);
Core::getTPL()->assign("eBans", $i);
Core::getTPL()->assign("sessionsLink", Link::get("game/" . SID . "/Moderator/Sessions?id=" . $this->userid, "Sessions"));
}
return $this;
}
示例8: loadMenuItems
/**
* Loads all menu items.
*
* @return Bengine_Comm_CMS
*/
protected function loadMenuItems()
{
$result = Core::getQuery()->select("page", array("position", "title", "label", "link"), "", Core::getDB()->quoteInto("languageid = ?", $this->langid), "displayorder ASC");
foreach ($result->fetchAll() as $row) {
$position = $row["position"];
if (!empty($row["link"])) {
$this->menuItems[$position][]["link"] = Link::get($row["link"], $row["title"], $row["title"]);
} else {
$this->menuItems[$position][]["link"] = Link::get(LANG . "index/" . $row["label"], $row["title"], $row["title"]);
}
}
Hook::event("CommLoadMenu", array(&$this->menuItems, $this));
return $this;
}
示例9: indexAction
/**
* @return Bengine_Admin_Controller_Cronjob
*/
protected function indexAction()
{
if ($this->getParam("add_cronjob")) {
$this->add($this->getParam("month"), $this->getParam("day"), $this->getParam("weekday"), $this->getParam("hour"), $this->getParam("minute"), $this->getParam("class"));
}
$minute = "";
$hour = "";
$weekday = "";
$day = "";
$month = "";
$i = 0;
while ($i < 60) {
$minute .= createOption($i, $i, 0);
$i += 5;
}
for ($i = 0; $i < 24; $i++) {
$hour .= createOption($i, $i, 0);
}
$wds = array(1 => "Mon", 2 => "Tue", 3 => "Wed", 4 => "Thu", 5 => "Fri", 6 => "Sat", 7 => "Sun");
for ($i = 1; $i <= 7; $i++) {
$weekday .= createOption($i, $wds[$i], 0);
}
for ($i = 1; $i <= 31; $i++) {
$day .= createOption($i, $i, 0);
}
for ($i = 1; $i <= 12; $i++) {
$month .= createOption($i, $i, 0);
}
Core::getTPL()->assign("minute", $minute);
Core::getTPL()->assign("hour", $hour);
Core::getTPL()->assign("weekday", $weekday);
Core::getTPL()->assign("day", $day);
Core::getTPL()->assign("month", $month);
$tabs = array();
$result = Core::getQuery()->select("cronjob", array("cronid", "class", "xtime", "last", "active"), "ORDER BY xtime ASC");
foreach ($result->fetchAll() as $row) {
$id = $row["cronid"];
$tabs[$id]["cronid"] = $row["cronid"];
$tabs[$id]["class"] = $row["class"];
$tabs[$id]["xtime"] = empty($row["xtime"]) ? Core::getLang()->get("NEVER") : date("Y-m-d H:i:s", $row["xtime"]);
$tabs[$id]["last"] = empty($row["last"]) ? Core::getLang()->get("NEVER") : date("Y-m-d H:i:s", $row["last"]);
$tabs[$id]["delete"] = Link::get("admin/cronjob/delete/" . $id, Core::getLanguage()->getItem("Delete"));
$tabs[$id]["exec"] = Link::get("admin/cronjob/execute/" . $id, Core::getLanguage()->getItem("Execute"));
$tabs[$id]["edit"] = Link::get("admin/cronjob/edit/" . $id, Core::getLanguage()->getItem("Edit"));
$tabs[$id]["active"] = $row["active"] ? Link::get("admin/cronjob/disable/" . $id, "<span class=\"green\">On</span>", Core::getLanguage()->getItem("Disable")) : Link::get("admin/cronjob/enable/" . $id, "<span class=\"red\">Off</span>", Core::getLanguage()->getItem("Enable"));
}
Core::getTPL()->addLoop("crontabs", $tabs);
return $this;
}
示例10: _format
/**
* Formats the message.
*
* @param Bengine_Game_Model_Message $message
*
* @return Bengine_Game_MessageFolder_User
*/
protected function _format(Bengine_Game_Model_Message $message)
{
$sender = $message->get("sender");
if (!empty($sender)) {
$url = "game/" . SID . "/MSG/Write/" . rawurlencode($message->get("username")) . "/" . Link::urlEncode("RE: " . $message->get("subject"));
$reply = Link::get($url, Image::getImage("pm.gif", Core::getLanguage()->getItem("REPLY")));
$message->set("reply_link", $reply);
$sender = $message->get("username") . " " . getCoordLink($message->get("galaxy"), $message->get("system"), $message->get("position"));
} else {
$sender = "System";
}
$message->set("sender", $sender);
$this->replaceForeignSessionId($message);
return $this;
}
示例11: userAction
/**
* @var int $user
* @return Bengine_Game_Controller_Achievements
*/
public function userAction($user)
{
Core::getLanguage()->load(array("Achievements"));
$user = Application::getModel("game/user")->load((int) $user);
/* @var Bengine_Game_Model_Collection_Achievement $achievements */
$achievements = Application::getCollection("game/achievement");
$achievements->addUserJoin($user->get("userid"), true)->addDefaultSorting();
$this->view->addLoop("achievements", $achievements);
$this->view->assign("user", $user);
$this->language->assign("leftXP", $user->getLeftXPForNextLevel());
$this->language->assign("nextLevel", $user->get("level") + 1);
$this->language->assign("xp", $user->get("xp"));
$this->language->assign("level", $user->get("level"));
$this->language->assign("achievementUser", Link::get("game/" . SID . "/Profile/Page/" . $user->get("userid"), $user->get("username")));
}
示例12: indexAction
/**
* Index page
*
* @return Bengine_Admin_Controller_Cms
*/
protected function indexAction()
{
if ($this->getParam("update_pages")) {
$this->updatePagesAction($this->getParam("delete"), $this->getParam("pages"));
}
$pages = array();
$result = Core::getQuery()->select("page", array("pageid", "position", "displayorder", "title"), "", "", "position DESC, displayorder ASC");
foreach ($result->fetchAll() as $row) {
$id = $row["pageid"];
$pages[$id]["pageid"] = $id;
$pages[$id]["position"] = $row["position"];
$pages[$id]["displayorder"] = $row["displayorder"];
$pages[$id]["title"] = $row["title"];
$pages[$id]["edit_link"] = Link::get("admin/cms/edit/" . $id, Core::getLanguage()->getItem("Edit"));
}
Core::getTPL()->addLoop("pages", $pages);
return $this;
}
示例13: indexAction
/**
* @return Bengine_Admin_Controller_Commercial
*/
protected function indexAction()
{
if ($this->isPost()) {
if ($this->getParam("add_ad")) {
$this->addAd($this->getParam("name"), $this->getParam("position"), $this->getParam("max_views"), $this->getParam("enabled", 0), $this->getParam("html_code"));
} else {
if ($this->getParam("delete")) {
$this->delete($this->getParam("ads"));
}
}
}
$ads = array();
$result = Core::getQuery()->select("ad", array("*"));
foreach ($result->fetchAll() as $row) {
$row["edit_link"] = Link::get("admin/commercial/edit/" . $row["ad_id"], Core::getLang()->get("Edit"));
$row["reset_link"] = Link::get("admin/commercial/reset/" . $row["ad_id"], "Reset");
$ads[] = $row;
}
Core::getTPL()->addLoop("ads", $ads);
return $this;
}
示例14: indexAction
/**
* @return Bengine_Admin_Controller_Usergroups
*/
protected function indexAction()
{
if ($this->getParam("delete_usergroups")) {
$this->delete($this->getParam("delete"));
} else {
if ($this->getParam("add_usergroup")) {
$this->add($this->getParam("grouptitle"), $this->getParam("permissions"));
}
}
$groups = array();
$result = Core::getQuery()->select("usergroup", array("usergroupid", "grouptitle", "standard"), "ORDER BY grouptitle ASC");
foreach ($result->fetchAll() as $row) {
$id = $row["usergroupid"];
$groups[$id]["usergroupid"] = $id;
$groups[$id]["grouptitle"] = $row["grouptitle"];
$groups[$id]["edit"] = Link::get("admin/usergroups/edit/" . $id, Core::getLanguage()->getItem("Edit"));
$groups[$id]["standard"] = $row["standard"];
}
Core::getTPL()->addLoop("groups", $groups);
return $this;
}
示例15: _format
/**
* Formats the message.
*
* @param Bengine_Game_Model_Message $message
*
* @return Bengine_Game_MessageFolder_Alliance
*/
protected function _format(Bengine_Game_Model_Message $message)
{
$senderName = $message->get("username");
$sender = !empty($senderName) ? Core::getLanguage()->getItem("ALLIANCE_GLOBAL_MAIL") . " (" . $senderName . ")" : Core::getLanguage()->getItem("ALLIANCE");
$message->set("sender", $sender);
$this->replaceForeignSessionId($message);
if (Core::getUser()->get("aid")) {
$subject = "RE: " . preg_replace("#((RE|FW):\\s)+#is", "\\1", $message->get("subject"));
$subject = rawurlencode($subject);
$linkUrl = "game/";
if (URL_SESSION) {
$linkUrl .= SID . "/";
}
$linkUrl .= "Alliance/GlobalMail/" . $subject;
if (!empty($senderName)) {
$replyImg = Image::getImage("pm.gif", Core::getLanguage()->getItem("REPLY_ALLIANCE_MAIL"));
$message->set("reply_link", Link::get($linkUrl, $replyImg));
}
}
return $this;
}