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