Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. <?
  2. //You faggit dont steal my page
  3. session_start();
  4.  
  5. include "includes/functions.php";
  6.  
  7. logincheck();
  8.  
  9. $username=$_SESSION['username'];
  10.  
  11. include "includes/db_connect.php";
  12.  
  13. echo "$style";
  14.  
  15. $convo = $_GET['view'];
  16. $user2 = $_GET['user'];
  17.  
  18.  
  19.  
  20. ?>
  21.  
  22.  
  23. <html>
  24.  
  25. <head>
  26.  
  27. <link rel="shortcut icon" href="favicon.ico.png">
  28.  
  29. <title>Godfather Haven - Nabys page</title>
  30.  
  31. <link href="style.css" rel="stylesheet" type="text/css">
  32.  
  33. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  34.  
  35. <style type="text/css">.user_card {
  36.  
  37. padding: 4px;
  38.  
  39. border-top: 1px solid #222222;
  40.  
  41. }
  42.  
  43. .forum_text {
  44.  
  45. padding: 5px;
  46.  
  47. border-top: 1px solid #222222;
  48.  
  49. }
  50.  
  51. .date {
  52.  
  53. border-top: 1px solid #222222;
  54.  
  55. font-style: italic;
  56.  
  57. }
  58.  
  59. .forum_table {
  60.  
  61. border: 1px solid #222222;
  62.  
  63. background-color: #000000;
  64.  
  65.  
  66.  
  67. }
  68.  
  69.  
  70.  
  71. .forum_table td {
  72.  
  73. border: 1px solid #222222;
  74.  
  75. }
  76.  
  77.  
  78.  
  79. .forum_table .subhead td {
  80.  
  81. border-width: 0px;
  82.  
  83. }
  84. a.topicLink {
  85.  
  86. text-decoration: underline;
  87.  
  88. font-size: 15px;
  89.  
  90. }
  91.  
  92. .new_mail td {
  93.  
  94. background-color: #173478;
  95.  
  96. }
  97. .redText {
  98.  
  99.  
  100. color: #CA0300;
  101.  
  102. }
  103.  
  104. </style>
  105. <script type="text/javascript" src="..//js/jquery.js"></script>
  106. <script type="text/javascript">
  107. $(document).ready(function (){
  108.  
  109. $(".input").prettyComments();
  110.  
  111. $("#addReply").keydown(function(event){
  112.  
  113. if(event.keyCode == '13' && !event.shiftKey){
  114.  
  115. $("form").submit();
  116.  
  117. return false;
  118.  
  119. }
  120.  
  121. });
  122.  
  123. </script>
  124.  
  125.  
  126. </head>
  127.  
  128.  
  129.  
  130.  
  131. <body>
  132.  
  133. <form method="POST">
  134.  
  135.  
  136. <table align="center" width="670" class="table" cellspacing="0">
  137.  
  138. <tr class="header">
  139.  
  140. <td colspan="2">Conversation with <a href="send.php?to=<? echo "$user2"; ?>"><? echo "$user2"; ?></a></td>
  141.  
  142. </tr>
  143.  
  144.  
  145.  
  146. <tr id="add_reply">
  147.  
  148. <td align="left" colspan="2" class="alt"><textarea class="input" name="amout2" style="padding: 3px; width: 100% !important; height: 43px;" id="addReply"></textarea><br />
  149.  
  150. </td>
  151.  
  152. </tr>
  153. <?php
  154.  
  155. $tsel = mysql_query("select * from `inbox` where `to`='$username' AND `from`='$user2' OR `to`='$user2' AND `from`='$username' order by `date` desc");
  156.  
  157. while ($top = mysql_fetch_array($tsel)) {
  158.  
  159. $user1=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));
  160.  
  161.  
  162. if($top[from] == "$username"){
  163. $user=$username;
  164. }else{
  165. $user=$user2;
  166.  
  167. }
  168.  
  169.  
  170. $bgcolor = ($bgcolor == "#173478") ? "#151515" : "#173478";
  171.  
  172. if($top[read] == "0" && $top[to] == "$username"){
  173.  
  174. print "<tr>
  175.  
  176. <td valign='top' width='230' height='100%' class='alt user_card'>
  177.  
  178. <table width='100%' height='100%' cellspacing='0'>
  179.  
  180. <tbody>
  181.  
  182. <tr>
  183.  
  184. <td width='80' style='padding-right: 3px;'><div style='z-index: 10;position: relative; width: 80px;'>
  185. <img src='image' width='80' />
  186.  
  187. </div> </td>
  188.  
  189. <td><b><a href='/profile.php?viewuser=$user'>$user</a></b>
  190.  
  191. <br>Rank: rank
  192.  
  193. <br>Gender: gender
  194. <br><br>
  195.  
  196.  
  197. </tr>
  198.  
  199. <tr>
  200.  
  201. <td height='100%' colspan='2' align='right'></td>
  202.  
  203. </tr>
  204.  
  205. </tbody>
  206.  
  207. </table>
  208.  
  209. </td>
  210.  
  211. <td class='forum_text'>$top[message]</td>
  212.  
  213.  
  214. </tr>
  215.  
  216.  
  217.  
  218. <tr>
  219.  
  220. <td colspan='2' class='date' align='right'>$top[date] </td>
  221.  
  222. </tr>";
  223.  
  224. }else{ print "<tr>
  225.  
  226. <td valign='top' width='230' height='100%' class='alt user_card'>
  227.  
  228. <table width='100%' height='100%' cellspacing='0'>
  229.  
  230. <tbody>
  231.  
  232. <tr>
  233.  
  234. <td width='80' style='padding-right: 3px;'><div style='z-index: 10;position: relative; width: 80px;'>
  235. <img src='image' width='80' />
  236.  
  237. </div> </td>
  238.  
  239. <td><b><a href='/profile.php?viewuser=$user'>$user</a></b>
  240.  
  241. <br>Rank: rank
  242.  
  243. <br>Gender: gender
  244.  
  245. </tr>
  246.  
  247. <tr>
  248.  
  249. <td height='100%' colspan='2' align='right'></td>
  250.  
  251. </tr>
  252.  
  253. </tbody>
  254.  
  255. </table>
  256.  
  257. </td>
  258.  
  259. <td class='forum_text'>$top[message]</td>
  260.  
  261. </tr>
  262.  
  263.  
  264.  
  265. <tr>
  266.  
  267. <td colspan='2' class='date' align='right'>$top[date] </td>
  268.  
  269. </tr>";
  270.  
  271. }
  272. }
  273. ?>
  274.  
  275.  
  276.  
  277. <tr>
  278.  
  279. <td align="center" colspan="2" class="alt" style="border-top: 1px solid #222222;"><b style='padding:4px; background-color: #173478;'>1</b>
  280. </tr>
  281.  
  282. </table>
  283.  
  284. </form>
  285.  
  286.  
  287. </body>
  288. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement