3 include('encrypt.php');
4 require 'inc/header.php';
15 $uid = $inbox->GetID($_COOKIE['DMDM'],$id_mail_path);
16 $user = $inbox->FindUser($uid,$id_mail_path);
18 $messages = $inbox->specificMDB($user, $_GET['d']);
19 //var_dump($messages);
21 // var_dump($messages);
23 <div class="well well-lg">
24 <?php include "inc/nav.php"; ?>
26 <?php echo "<h4>Subject: ".$inbox->within_str($messages[0][0], "<subj>", "</subj>")."</h4>"; ?>
27 <div class="pagination panel panel-default mdes" id="page">
29 for ($i=0; $i < count($messages); $i++) {
31 for ($j=0; $j < count($messages[$i]); $j++) {
32 //echo $messages[$i][$j]."<br>";
33 echo "<div class=\"r mdes panel panel-default pull-left\">". urldecode($inbox->within_str($messages[$i][$j], "<msg>", "</msg>")) . "<br><small class=\"d pull-right\">". urldecode($inbox->within_str($messages[$i][$j], "<id>", "</id>")) ."</small></div>";
34 echo "<div class='clearfix'></div>";
36 // echo "<li>Sender: ".$inbox->within_str($messages[$i][$j], "<from>", "</from>")."</li>";
37 // echo "<li>Message: ".urldecode($inbox->within_str($messages[$i][$j], "<msg>", "</msg>"))."</li>";
40 if ($uid <> trim($inbox->within_str($messages[$i][0], "<from>", "</from>"))) {
41 $ss = "<input type=\"hidden\" name=\"zxcvbnm\" value=\"".$uid.$inbox->within_str($messages[$i][0], "<from>", "</from>").$inbox->within_str($messages[$i][0], "<id>", "</id>")."\">";
43 $ss = "<input type=\"hidden\" name=\"zxcvbnm\" value=\"".$uid.$inbox->within_str($messages[$i][0], "<to>", "</to>").$inbox->within_str($messages[$i][0], "<id>", "</id>")."\">";
47 echo "<a href=\"#\" onclick=\"document.getElementById('replyForm').style.display='block';\">Reply</a><br><br>";
50 echo "<div id=\"replyForm\" style=\"display:none\">
51 <form method=\"post\" action=\"messaging/reply.php\">".@$ss.
52 "<textarea rows=\"5\" name=\"msg\" class=\"form-control\"></textarea><br>
53 <button type=\"submit\">Send</button>
54 <button type=\"button\" onclick=\"document.getElementById('replyForm').style.display='none';\">Cancel</button>
58 echo "Doesn't Exist!";
62 require 'inc/footer.php';