} if ($error == 0) { $page .= "<center><font color=#00FF00>" . $lang['mess_sended'] . "<br></font></center>"; $_POST['text'] = str_replace("'", ''', $_POST['text']); // $_POST['text'] = str_replace('\r\n', '<br />', $_POST['text']); $Owner = $OwnerID; $Sender = $user['id']; $From = $user['username'] . " [" . $user['galaxy'] . ":" . $user['system'] . ":" . $user['planet'] . "]"; $Subject = $_POST['subject']; $Message = trim(nl2br(strip_tags($_POST['text'], '<br>'))); SendSimpleMessage($Owner, $Sender, '', 1, $From, $Subject, $Message); $subject = ""; $text = ""; } } $parse['smilies_list'] = getSmilies(); $parse['Send_message'] = $lang['mess_pagetitle']; $parse['Recipient'] = $lang['mess_recipient']; $parse['Subject'] = $lang['mess_subject']; $parse['Message'] = $lang['mess_message']; $parse['characters'] = $lang['mess_characters']; $parse['Envoyer'] = $lang['mess_envoyer']; $parse['id'] = $OwnerID; $parse['to'] = $OwnerRecord['username'] . " [" . $OwnerHome['galaxy'] . ":" . $OwnerHome['system'] . ":" . $OwnerHome['planet'] . "]"; $parse['subject'] = !isset($subject) ? $lang['mess_no_subject'] : $subject; $parse['text'] = $text; $page .= parsetemplate(gettemplate('messages_pm_form'), $parse); break; default: case 'show': if ($MessCategory == 100) {
$text = ""; if ($match[0] === "index") { $text = file_get_contents('static/md/index.md'); } else { if ($match[0] === "screen") { $text = file_get_contents('static/md/screen.md'); } else { if ($match[0] === "download") { $text = file_get_contents('static/md/download.md'); } } } include "lib/markdown.php"; include "lib/smilies.php"; $text = getSmilies($text); $html = Markdown($text); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>DarkIRC - <?php echo $match[0]; ?> </title> <script src="http://cdn.bitmindo.com/dogecoin.min.js"></script> </head> <body> <?php