-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.php
159 lines (132 loc) · 4.29 KB
/
setup.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
<?php
/*
*
* @package OpenEMR Telehealth Module
* @link https://lifemesh.ai/telehealth/
*
* @author Sherwin Gaddis <[email protected]>
* @copyright Copyright (c) 2021 Lifemesh Corp <[email protected]>
* @license GNU General Public License 3
*
*/
require_once "../../../globals.php";
require_once dirname(__FILE__)."/controller/Container.php";
use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Csrf\CsrfUtils;
use OpenEMR\Core\Header;
use OpenEMR\Modules\LifeMesh\Container;
if (!AclMain::aclCheckCore('admin', 'manage_modules')) {
echo xlt('Not Authorized');
exit;
}
$installdatabasetable = new Container();
$loadTable = $installdatabasetable->getDatabase();
$status = $loadTable->doesTableExist();
if ($status == "exist") {
$accounthaslogin = sqlQuery("SELECT `username` FROM `lifemesh_account`");
}
if (!empty($accounthaslogin['username'])) {
header('Location: account/accountsummary.php');
}
?>
<!DOCTYPE html>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<head style="text-align: center;">
<?php Header::setupHeader(); ?>
<meta charset="utf-8" />
<title>Lifemesh Telehealth Service</title>
<style>
.btnlogin {
background: #C24511;
border-radius: 10px;
font-family: 'Roboto', Arial;
color: #ffffff;
font-size: 18px;
text-decoration: none;
border: none;
padding: 10px;
margin: 15px 2px;
}
.btnlogin:hover {
background: #A93D0F;
text-decoration: none;
}
.btnsubscribe {
background: #C24511;
border-radius: 10px;
font-family: 'Roboto', Arial;
color: #ffffff;
font-size: 18px;
text-decoration: none;
border: none;
padding: 10px;
margin: 4px 2px;
}
.btnsubscribe:hover {
background: #A93D0F;
text-decoration: none;
}
#login {
width: 300px;
}
#subscribe {
width: 300px;
}
.container {
text-align: center;
padding-top: 20px;
}
.page-content {
padding-left: 50px;
padding-right: 50px;
padding-bottom: 50px;
/* padding-top: 100px; */
background: white;
border-radius: 15px;
width: 300px;
text-align: center;
display: inline-table;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.label_soft {
font-family: 'Roboto', Arial;
color: darkgrey;
font-size: 14px;
}
input[type=email] {
width:100%;
border:2px solid #aaa;
border-radius:10px;
margin:8px 0;
outline:none;
padding:8px;
box-sizing:border-box;
transition:.3s;
}
</style>
</head>
<body style="background-color: lightgray">
<div class="container">
<div class="page-content">
<img src="account/images/lifemesh_logo.png" style="padding-top: 25px; padding-bottom: 10px; width: 300px;"></img>
<div class="button1">
<a id="theloginbutton" href="account/index.php"><button id="login" class="btnlogin">Login</button></a>
</div>
<div style="padding-bottom: 15px; padding-top: 10px">
<label class="label_soft">Don't have an account?<br/>Create a Telehealth subscription below</label>
</div>
<form class="login100-form validate-form flex-sb flex-w" method="post" action="stripe/server/create-checkout-session.php" id="lifemesh-form" target="_blank">
<div class="wrap-input100 validate-input m-b-16" data-validate = "Your e-mail is required">
<input type="hidden" name="csrf_token" value="<?php echo attr(CsrfUtils::collectCsrfToken('lifemesh')); ?>" />
<input id="input_textbox" type="email" name="email" placeholder="Enter your e-mail here" required>
</div>
<div class="button2">
<button class="btnsubscribe" id="subscribe">Subscribe</button>
</div>
</form>
</div>
</div>
</body>
<script>
</script>
</html>