-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.php
174 lines (157 loc) · 6.76 KB
/
message.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php
/**
* OvR Lists - The main template file for OvR Lists
*
*
* @package OvR Lists
* @since Version 0.0.1
*/
# Report all PHP errors
# For Development use only
# error_reporting(E_ALL|E_STRICT);
# ini_set('display_errors','On');
session_start();
# Start Session with a 1 day persistent session lifetime
$cookieLifetime = 60 * 60 * 24 * 1;
setcookie(session_name(),session_id(),time()+$cookieLifetime);
# Bounce to login if user is not logged in
if ( !isset($_SESSION['logged_in']) || !$_SESSION['logged_in']) {
header("HTTP/1.0 401 Unauthorized");
header("Location: login/login.php");
}
# get version from file
$version = file_get_contents('lists.version');
?>
<!DOCTYPE html>
<html lang="en" manifest="manifest.appcache">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="OvR Lists">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- favicon and apple-touch-icon -->
<link rel="icon" type="image/png" href="https://ovrride.com/favicon.ico">
<link rel="apple-touch-icon" href="images/ios/iconset/[email protected]" />
<link rel="apple-touch-icon" sizes="180x180" href="images/ios/iconset/[email protected]" />
<link rel="apple-touch-icon" sizes="76x76" href="images/ios/iconset/Icon-76.png" />
<link rel="apple-touch-icon" sizes="152x152" href="images/ios/iconset/[email protected]" />
<link rel="apple-touch-icon" sizes="58x58" href="images/ios/iconset/[email protected]" />
<title>OvR Trip Lists</title>
<link href="css/application.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<button class="btn btn-black" id="status"><i class="fas fa-signal"></i> Online</button>
</li>
<li>
<button type="button" class="btn btn-warning" id="btn-hide">
<i class="fas fa-arrow-left"></i> Hide Menu
</button>
</li>
<li>
<button class="btn btn-primary" id="btn-settings">
<i class="fas fa-sliders-h"></i> Settings
</button>
</li>
<li>
<button type="button" class="btn btn-primary btn-list" id="menuList">
<i class="fas fa-list"></i> List
</button>
</li>
<li>
<button type="button" class="btn btn-primary btn-summary" id="menuSummary">
<i class="fas fa-table"></i> Summary
</button>
</li>
<li>
<button type="button" class="btn btn-primary btn-reports" id="reportsMenu">
<i class="fas fa-edit"></i> Reports
</button>
</li>
<li>
<button type="button" class="btn btn-primary disabled" id="btn-message">
<i class="fas fa-exclamation-triangle"></i> Message
</button>
</li>
<li>
<button type="button" class="btn btn-primary" id="btn-admin">
<i class="fas fa-tachometer-alt"></i> Admin
</button>
</li>
<li>
<button type="button" class="btn btn-danger" id="btn-logout">
<i class="fas fa-power-off"></i> Log Out
</button>
</li>
<li>
<span class="version">OvR Lists <?php echo $version; ?></span>
</li>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div>
<nav class="navbar navbar-default navbar-static-top ovr" role="navigation">
<div class="container-fluid">
<button class="btn btn-link navbar-brand" id="brand">OvR Trip Lists</button>
<button class="btn btn-default" id="menu-toggle"><i class="fas fa-cogs"></i> Menu</button>
</div>
</nav>
<div class="container-fluid pad">
<div class="row">
<h4>Message Guests</h4>
</div>
<div class="row">
<div class="col-xs-12">
<input type="radio" name="messageType" value="All" checked> All</input>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<input type="radio" name="messageType" value="Pickup">
<select id="Pickups" class="input-sm"></select>
</input>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<input type="radio" name="messageType" value="Single">
<select id="Guests" class="input-sm"></select>
</input>
</div>
</div>
<div class ="row">
<div class="col-xs-12 col-md-4">
<br />
<textarea rows="6" class="form-control" id="messageText" placeholder="Message Here" maxlength="119"></textarea>
<span class="charCount">0/119 Characters</span>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<br />
<button type="button" class="btn btn-success" id="sendMessage">
<i class="fas fa-mobile fa-lg"></i> Send Message
</button>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<script src="js/message.min.js"></script>
</body>
</html>