// NACHRICHTEN // ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // NACHRICHTEN // ///////////////////////////////////////////////////////////////////////////// case MESSAGES: $pagetitle = _("Nachrichten"); $content = messages_getMessages($caveID, $params->POST->deletebox, $params->POST->box); break; case MESSAGESDETAIL: $pagetitle = _("Nachricht lesen"); $content = messages_showMessage($caveID, $params->POST->messageID, $params->POST->box); break; case NEW_MESSAGE: $pagetitle = _("Nachricht schreiben"); $content = messages_newMessage($caveID); break; case NEW_MESSAGE_RESPONSE: $pagetitle = _("Verschicken einer Nachricht"); $content = messages_sendMessage($caveID); break; case CONTACTS: list($pagetitle, $content) = contacts_main($caveID, $meineHoehlen); break; case CAVE_BOOKMARKS: list($pagetitle, $content) = cavebookmarks_main($caveID, $meineHoehlen); break; case DONATIONS: list($pagetitle, $content) = donations_main($caveID, $meineHoehlen); break; /////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////// // NACHRICHTEN // ///////////////////////////////////////////////////////////////////////////// case MESSAGES: tmpl_set($template, 'pagetitle', 'Nachrichten'); $content = messages_getMessages($caveID, $params->POST->deletebox, $params->POST->box); break; case MESSAGESDETAIL: tmpl_set($template, 'pagetitle', 'Nachricht lesen'); $content = messages_showMessage($caveID, $params->POST->messageID, $params->POST->box); break; // ADDED by chris--- something for adressbook ($playerID) // ADDED by chris--- something for adressbook ($playerID) case NEW_MESSAGE: tmpl_set($template, 'pagetitle', 'Nachricht schreiben'); $content = messages_newMessage($caveID, $playerID); break; case NEW_MESSAGE_RESPONSE: tmpl_set($template, 'pagetitle', 'Verschicken einer Nachricht'); $content = messages_sendMessage($caveID); break; // ADDED by chris--- for adressbook // ADDED by chris--- for adressbook case MESSAGE_BOOK: tmpl_set($template, 'pagetitle', 'Adressbuch'); $delete = FALSE; $content = show_adressbook($params->SESSION->user['playerID'], $delete); break; case MESSAGE_BOOK_DELETE: tmpl_set($template, 'pagetitle', 'Adressbuch'); $content = show_adressbook($params->SESSION->user['playerID'], $delete);
///////////////////////////////////////////////////////////////////////////// case MESSAGES_LIST: $deletebox = Request::getVar('deletebox', array('' => '')); $box = Request::getVar('box', 1); $box = !empty($box) ? $box : 1; messages_getMessages($caveID, $deletebox, $box); $requestKeys = array('box', 'messageClass'); break; case MESSAGE_READ: $messageID = Request::getVar('messageID', 0); $box = Request::getVar('box', 1); messages_showMessage($caveID, $ownCaves, $messageID, $box); $requestKeys = array('messageID', 'box', 'filter'); break; case MESSAGE_NEW: messages_newMessage($caveID); break; case NEW_MESSAGE_RESPONSE: messages_sendMessage($caveID); break; case CONTACTS_BOOKMARKS: list($pagetitle, $content) = contactsbookmarks_main($caveID, $ownCaves); break; case CAVE_BOOKMARKS: list($pagetitle, $content) = cavebookmarks_main($caveID, $ownCaves); break; case DONATIONS: donations_getContent(); break; ///////////////////////////////////////////////////////////////////////////// // KARTEN //