-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.php
126 lines (109 loc) · 3.93 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
<?php
/*
*
* @package OpenEMR
* @link https://www.open-emr.org
*
* @author Sherwin Gaddis <sherwingaddis@gmail.com>
* @copyright Copyright (c) 2021 Sherwin Gaddis <sherwingaddis@gmail.com>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*
*/
require_once "../../../globals.php";
require_once "controller/Container.php";
use OpenEMR\Core\Header;
use OpenEMR\Modules\LifeMesh\Container;
$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>
<head>
<?php Header::setupHeader(); ?>
<meta charset="utf-8" />
<title>Telehealth Service</title>
<style>
.btnlogin {
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
font-family: Arial;
color: #ffffff;
font-size: 20px;
padding: 10px 20px 10px 18px;
text-decoration: none;
}
.btnlogin:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
.btnsubscribe {
background: #3fe896;
background-image: -webkit-linear-gradient(top, #3fe896, #2bb85c);
background-image: -moz-linear-gradient(top, #3fe896, #2bb85c);
background-image: -ms-linear-gradient(top, #3fe896, #2bb85c);
background-image: -o-linear-gradient(top, #3fe896, #2bb85c);
background-image: linear-gradient(to bottom, #3fe896, #2bb85c);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
font-family: Arial;
color: #ffffff;
font-size: 20px;
padding: 10px 20px 10px 18px;
text-decoration: none;
}
.btnsubscribe:hover {
background: #3cfcb6;
background-image: -webkit-linear-gradient(top, #3cfcb6, #34d976);
background-image: -moz-linear-gradient(top, #3cfcb6, #34d976);
background-image: -ms-linear-gradient(top, #3cfcb6, #34d976);
background-image: -o-linear-gradient(top, #3cfcb6, #34d976);
background-image: linear-gradient(to bottom, #3cfcb6, #34d976);
text-decoration: none;
}
.button1 {
padding: 1em;
}
.button2 {
padding: 1em;
}
#login {
width: 250px;
}
#subscribe {
width: 250px;
}
</style>
</head>
<body>
<div class="container">
<h3>Lifemesh</h3>
<div class="button1">
<a id="theloginbutton" href="account/index.php"><button id="login" class="btnlogin">Login</button></a>
</div>
<div class="button2">
<a id="thesubscribebutton" href="stripe/client/service.php" target="_blank"><button id="subscribe" class="btnsubscribe">Subscribe</button></a>
</div>
</div>
</body>
<script>
</script>
</html>