Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- //You faggit dont steal my page
- session_start();
- include "includes/functions.php";
- logincheck();
- $username=$_SESSION['username'];
- include "includes/db_connect.php";
- echo "$style";
- $convo = $_GET['view'];
- $user2 = $_GET['user'];
- ?>
- <html>
- <head>
- <link rel="shortcut icon" href="favicon.ico.png">
- <title>Godfather Haven - Nabys page</title>
- <link href="style.css" rel="stylesheet" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <style type="text/css">.user_card {
- padding: 4px;
- border-top: 1px solid #222222;
- }
- .forum_text {
- padding: 5px;
- border-top: 1px solid #222222;
- }
- .date {
- border-top: 1px solid #222222;
- font-style: italic;
- }
- .forum_table {
- border: 1px solid #222222;
- background-color: #000000;
- }
- .forum_table td {
- border: 1px solid #222222;
- }
- .forum_table .subhead td {
- border-width: 0px;
- }
- a.topicLink {
- text-decoration: underline;
- font-size: 15px;
- }
- .new_mail td {
- background-color: #173478;
- }
- .redText {
- color: #CA0300;
- }
- </style>
- <script type="text/javascript" src="..//js/jquery.js"></script>
- <script type="text/javascript">
- $(document).ready(function (){
- $(".input").prettyComments();
- $("#addReply").keydown(function(event){
- if(event.keyCode == '13' && !event.shiftKey){
- $("form").submit();
- return false;
- }
- });
- </script>
- </head>
- <body>
- <form method="POST">
- <table align="center" width="670" class="table" cellspacing="0">
- <tr class="header">
- <td colspan="2">Conversation with <a href="send.php?to=<? echo "$user2"; ?>"><? echo "$user2"; ?></a></td>
- </tr>
- <tr id="add_reply">
- <td align="left" colspan="2" class="alt"><textarea class="input" name="amout2" style="padding: 3px; width: 100% !important; height: 43px;" id="addReply"></textarea><br />
- </td>
- </tr>
- <?php
- $tsel = mysql_query("select * from `inbox` where `to`='$username' AND `from`='$user2' OR `to`='$user2' AND `from`='$username' order by `date` desc");
- while ($top = mysql_fetch_array($tsel)) {
- $user1=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));
- if($top[from] == "$username"){
- $user=$username;
- }else{
- $user=$user2;
- }
- $bgcolor = ($bgcolor == "#173478") ? "#151515" : "#173478";
- if($top[read] == "0" && $top[to] == "$username"){
- print "<tr>
- <td valign='top' width='230' height='100%' class='alt user_card'>
- <table width='100%' height='100%' cellspacing='0'>
- <tbody>
- <tr>
- <td width='80' style='padding-right: 3px;'><div style='z-index: 10;position: relative; width: 80px;'>
- <img src='image' width='80' />
- </div> </td>
- <td><b><a href='/profile.php?viewuser=$user'>$user</a></b>
- <br>Rank: rank
- <br>Gender: gender
- <br><br>
- </tr>
- <tr>
- <td height='100%' colspan='2' align='right'></td>
- </tr>
- </tbody>
- </table>
- </td>
- <td class='forum_text'>$top[message]</td>
- </tr>
- <tr>
- <td colspan='2' class='date' align='right'>$top[date] </td>
- </tr>";
- }else{ print "<tr>
- <td valign='top' width='230' height='100%' class='alt user_card'>
- <table width='100%' height='100%' cellspacing='0'>
- <tbody>
- <tr>
- <td width='80' style='padding-right: 3px;'><div style='z-index: 10;position: relative; width: 80px;'>
- <img src='image' width='80' />
- </div> </td>
- <td><b><a href='/profile.php?viewuser=$user'>$user</a></b>
- <br>Rank: rank
- <br>Gender: gender
- </tr>
- <tr>
- <td height='100%' colspan='2' align='right'></td>
- </tr>
- </tbody>
- </table>
- </td>
- <td class='forum_text'>$top[message]</td>
- </tr>
- <tr>
- <td colspan='2' class='date' align='right'>$top[date] </td>
- </tr>";
- }
- }
- ?>
- <tr>
- <td align="center" colspan="2" class="alt" style="border-top: 1px solid #222222;"><b style='padding:4px; background-color: #173478;'>1</b>
- </tr>
- </table>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement