| @@ 10-13 (lines=4) @@ | ||
| 7 | $dotenv->load(); |
|
| 8 | ||
| 9 | ||
| 10 | if(Session::get('start') != null) |
|
| 11 | { |
|
| 12 | header("Location:".getenv('APP_URL')."/account.php"); |
|
| 13 | } |
|
| 14 | ?> |
|
| 15 | <!Doctype html> |
|
| 16 | <html> |
|
| @@ 10-18 (lines=9) @@ | ||
| 7 | $dotenv->load(); |
|
| 8 | ||
| 9 | ||
| 10 | if(Session::get('start') != null) |
|
| 11 | { |
|
| 12 | Session::forget('start'); |
|
| 13 | header('Location:'.getenv('APP_URL')); |
|
| 14 | } |
|
| 15 | else |
|
| 16 | { |
|
| 17 | echo "Please Login"; |
|
| 18 | } |
|
| 19 | ||
| @@ 10-142 (lines=133) @@ | ||
| 7 | $dotenv->load(); |
|
| 8 | ||
| 9 | ||
| 10 | if(Session::get('start') != null && empty($_GET['user'])) |
|
| 11 | { |
|
| 12 | ?> |
|
| 13 | <!DOCTYPE html> |
|
| 14 | <html> |
|
| 15 | <head> |
|
| 16 | <meta charset="UTF-8"> |
|
| 17 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
| 18 | <title>Messages</title> |
|
| 19 | <link rel="stylesheet" href="css/style.css"> |
|
| 20 | <link rel="stylesheet" href="css/font-awesome-4.6.3/css/font-awesome.min.css"> |
|
| 21 | <script type="text/javascript" src="js/jquery-3.0.0.min.js"></script> |
|
| 22 | <script type="text/javascript" src="js/index.js"></script> |
|
| 23 | <script src="js/handlebars.min.js"></script> |
|
| 24 | <script src="js/moment.min.js"></script> |
|
| 25 | <!-- // <script type="text/javascript" src="js/mobile.js"></script> --> |
|
| 26 | ||
| 27 | </head> |
|
| 28 | <body> |
|
| 29 | <!-- header --> |
|
| 30 | ||
| 31 | <div class="header"> |
|
| 32 | <a id="brand" href="">OpenChat</a> |
|
| 33 | <ul class="nav-right"> |
|
| 34 | <li><a href="account.php">Account</a></li> |
|
| 35 | <li><a href="index.php">About</a></li> |
|
| 36 | <li><a href="logout.php">Log Out</a></li> |
|
| 37 | </ul> |
|
| 38 | ||
| 39 | <div class="mob-right"> |
|
| 40 | ||
| 41 | ||
| 42 | <div class="dropdown"> |
|
| 43 | <div class="line"></div> |
|
| 44 | <div class="line"></div> |
|
| 45 | <div class="line"></div> |
|
| 46 | </div> |
|
| 47 | </div> |
|
| 48 | </div> |
|
| 49 | ||
| 50 | <div id="dropdown"> |
|
| 51 | <ul class="dropdown-list"> |
|
| 52 | <li><a href="account.php">Account</a></li> |
|
| 53 | <li><a href="index.php">About</a></li> |
|
| 54 | <li><a href="logout.php">Log Out</a></li> |
|
| 55 | </ul> |
|
| 56 | </div> |
|
| 57 | ||
| 58 | <!-- search --> |
|
| 59 | ||
| 60 | <div class="search_message"> |
|
| 61 | <input type="text" name="search_item" id="search_item" value="" onkeyup="search_choose();" placeholder="Search"> |
|
| 62 | <!-- <select name='search_item' id='search_item' onkeyup='search_choose()'></select> --> |
|
| 63 | </div> |
|
| 64 | ||
| 65 | ||
| 66 | <!-- sidebar --> |
|
| 67 | ||
| 68 | <div class="sidebar" id="message"> |
|
| 69 | </div> |
|
| 70 | ||
| 71 | <!-- chat name --> |
|
| 72 | ||
| 73 | <div class="chat_name" id="chat_name"> |
|
| 74 | <div id="chat_heading"> |
|
| 75 | </div> |
|
| 76 | <div class="compose_text" id="compose_text"> |
|
| 77 | <b id="to">To:</b> <input type="text" name="compose_name" placeholder="Name" id="compose_name" value="" onkeyup="ComposeChoose()"> |
|
| 78 | <div id="compose_selection"> |
|
| 79 | <ul id="suggestion"> |
|
| 80 | </ul> |
|
| 81 | </div> |
|
| 82 | </div> |
|
| 83 | ||
| 84 | <div class="compose" onclick="compose()"><a href="#">+ New Message</a></div> |
|
| 85 | </div> |
|
| 86 | ||
| 87 | ||
| 88 | ||
| 89 | <!-- conversation --> |
|
| 90 | <div class="main" id="conversation"> |
|
| 91 | </div> |
|
| 92 | ||
| 93 | <!-- Reply --> |
|
| 94 | ||
| 95 | <div class="conversation_reply"> |
|
| 96 | <textarea type="text" name="" id="text_reply" placeholder="Write a reply.."></textarea> |
|
| 97 | <br> |
|
| 98 | <span><input type="submit" name="submit" value="Reply" onclick="reply()"> <i onclick="startDictation()" class="fa fa-microphone" aria-hidden="true"></i></span> |
|
| 99 | </div> |
|
| 100 | ||
| 101 | <div class="mob-reply"> |
|
| 102 | <div class="input-group margin-bottom-sm text_icon"> |
|
| 103 | <input type="text" name="" id="text_reply" placeholder="OpenChat.."> |
|
| 104 | <span class="send" ><i class="fa fa-paper-plane" aria-hidden="true" onclick="reply()"></i></span> |
|
| 105 | </div> |
|
| 106 | ||
| 107 | <br> |
|
| 108 | </div> |
|
| 109 | ||
| 110 | ||
| 111 | <div class="mob-footer"> |
|
| 112 | <span> |
|
| 113 | <a href="#" onclick="init()"><i class="fa fa-arrow-left fa-lg" aria-hidden="true"></i></a> |
|
| 114 | <a href="#" onclick="show_search()"><i class="fa fa-search fa-lg" aria-hidden="true"></i></a> |
|
| 115 | <a href="#" onclick="compose()"><i class="fa fa-plus-circle fa-lg" aria-hidden="true"></i></a> |
|
| 116 | </span> |
|
| 117 | </div> |
|
| 118 | ||
| 119 | <script type="text/javascript"> |
|
| 120 | $(".dropdown").click(function() { |
|
| 121 | $("#dropdown").slideToggle(); |
|
| 122 | // $("#dropdown").show(); |
|
| 123 | }); |
|
| 124 | $("span .fa").click(function() { |
|
| 125 | $(".search_item").show(); |
|
| 126 | }); |
|
| 127 | // var w=''; |
|
| 128 | // if(window.innerWidth<500 && window.outerHeight!=w) |
|
| 129 | // { |
|
| 130 | // console.log(1); |
|
| 131 | // w=window.outerHeight-135; |
|
| 132 | // $(".main").css('min-height',w); |
|
| 133 | // } |
|
| 134 | </script> |
|
| 135 | </body> |
|
| 136 | </html> |
|
| 137 | ||
| 138 | <?php |
|
| 139 | } |
|
| 140 | else{ |
|
| 141 | header('Location:'. getenv('APP_URL')); |
|
| 142 | } |
|
| 143 | ?> |
|
| 144 | ||