public function get_user_language() { $steam_languages = array("english" => "en_US", "german" => "de_DE", "chinese" => "zh_TW"); $steam_user = steam_get_current_user(); return $steam_languages[$steam_user->get_attribute("USER_LANGUAGE")]; }
} if (DELETE_MAILS) { $content->setCurrentBlock("BLOCK_DELETE_MESSAGES"); $content->setVariable("LINK_DELETE_MESSAGES", PATH_URL . "messages.php?clear=true&sent=" . ($is_sent ? "1" : "0")); $content->setVariable("LABEL_DELETE_MESSAGES", $is_sent ? gettext("Clear Sent Mails") : gettext("Clear Inbox")); $content->parse("BLOCK_DELETE_MESSAGES"); } if (MAILBOX_KONFIGURATION) { $content->setCurrentBlock("BLOCK_MAILBOX_KONFIGURATION"); $content->setVariable("LINK_MAIL_PREFS", PATH_URL . "messages_prefs.php"); $content->setVariable("LABEL_MAIL_PREFS", gettext("Your mail preferences")); $content->parse("BLOCK_MAILBOX_KONFIGURATION"); } $content->parse("BLOCK_MAILBOX_ACTIONBAR"); } $user = steam_get_current_user(); if (isset($_GET['sent']) && $_GET['sent']) { $sent = 1; $sentfolder = $user->create_sent_mail_folder(); $content->setVariable("INBOX_MENU_CLASS", 'tabIn'); $content->setVariable("OUTBOX_MENU_CLASS", 'tabOut'); } else { $sent = 0; $sentfolder = false; $content->setVariable("INBOX_MENU_CLASS", 'tabOut'); $content->setVariable("OUTBOX_MENU_CLASS", 'tabIn'); } $messages = $user->get_mails(false, $sentfolder); $no_messages = count($messages); if (isset($_GET['clear']) && $_GET['clear'] == "true") { foreach ($messages as $msg) {