-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.php
executable file
·170 lines (109 loc) · 3.73 KB
/
chat.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="VMS&SN&BB&VH">
<link rel="shortcut icon" href="img/favicon.png">
<title>QThrive - Better mental health through journalling </title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/main.css" rel="stylesheet">
<!-- Fonts from Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,900' rel='stylesheet' type='text/css'>
<style>
#headerwrap{
background-image: url("img/winter.jpg");
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
</style>
</head>
<body>
<?php
//Create a user session or resume an existing one
session_start();
?>
<?php
//check if the user is already logged in and has an active session
if(isset($_SESSION['Member_ID'])) {
//Redirect the browser to the profile editing page and kill this page.
header("Location: userdash.php");
die();
}
?>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php"> <img src="img/QThrive.png" height="50"> <b>QThrive</b> </a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a><h4 style="color:white;">Welcome, Sean.</h4></a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
<div id="headerwrap">
<div class="container">
<div class="row">
<div class="col-lg-12">
<iframe
width="700px"
height="400px"
style = "margin-left:20%"
src="https://console.api.ai/api-client/demo/embedded/569cbb55-a64c-4671-8c95-6494d83be7a8">
</iframe>
<p></p>
</div>
<!-- /col-lg-6 -->
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /headerwrap -->
<div class="container">
<div class="row mt centered" style="margin-bottom:10px;">
<div class="col-lg-6 col-lg-offset-3">
<h1>So what do I do?</h1>
<h4>Speak to Sona like you would a normal person. Based on what you tell her, she may prompt you to do some journalling or connect you to local resources.</h4>
<br>
<h4>Fun fact... 'Sona' is Scottish Gaelic for 'happy'.</h4>
<p></p>
</div>
</div>
</div>
<!-- /container -->
<div class="container">
<hr>
<div class="row centered">
</div>
<!-- /row -->
<h1 class="centered">QThrive is for students.</h1>
<h3 class="centered">Take the challenges and joys one day at a time.</h3>
<h5 class="centered">DISCLAIMER: Note that Sona cannot provide medical diagnoses or replace attending counselling or therapy with a health professional. </h5>
<hr>
</div>
<!-- /container -->
<div class="container">
<p class="centered">Created by Ben, Sean, Vinyas & Vinith for QHacks 2017.</p>
</div>
<!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>