-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.php
182 lines (151 loc) · 5.82 KB
/
install.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
175
176
177
178
179
180
181
182
<?php
include('includes/functions.php');
if(isset($_POST['install'])){
$dbhost = $_POST['dbhost'];
$dbname = $_POST['dbname'];
$dbpass = $_POST['dbpass'];
$dbuser = $_POST['dbuser'];
$siteurl = $_POST['siteurl'];
$adminuser = $_POST['adminuser'];
$adminpassword = $_POST['adminpassword'];
$adminemail = $_POST['adminemail'];
install($dbhost, $dbname, $dbpass, $dbuser, $siteurl, $adminuser, $adminpassword, $adminemail);
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.101.0">
<title>Installation· Crab CMS v1.0.2</title>
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/sign-in/">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<!-- Favicons -->
<link rel="apple-touch-icon" href="/docs/5.2/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="/docs/5.2/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/docs/5.2/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="/docs/5.2/assets/img/favicons/manifest.json">
<link rel="mask-icon" href="/docs/5.2/assets/img/favicons/safari-pinned-tab.svg" color="#712cf9">
<link rel="icon" href="/docs/5.2/assets/img/favicons/favicon.ico">
<meta name="theme-color" content="#712cf9">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.b-example-divider {
height: 3rem;
background-color: rgba(0, 0, 0, .1);
border: solid rgba(0, 0, 0, .15);
border-width: 1px 0;
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}
.b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}
.bi {
vertical-align: -.125em;
fill: currentColor;
}
.nav-scroller {
position: relative;
z-index: 2;
height: 2.75rem;
overflow-y: hidden;
}
.nav-scroller .nav {
display: flex;
flex-wrap: nowrap;
padding-bottom: 1rem;
margin-top: -1px;
overflow-x: auto;
text-align: center;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
html,
body {
height: 100%;
}
body {
display: flex;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
max-width: 330px;
padding: 15px;
}
.form-signin .form-floating:focus-within {
z-index: 2;
}
.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
</style>
<!-- Custom styles for this template -->
<!-- <link href="signin.css" rel="stylesheet"> -->
</head>
<body class="text-center">
<main class="form-signin w-100 m-auto">
<form action="" method="POST">
<img class="mb-4" src="assets/img/cms_logo.png" alt="" width="180" height="57">
<div class="form-floating">
<input type="text" class="form-control" name="dbhost" id="floatingInput" placeholder="localhost">
<label for="floatingInput">Database Host</label>
</div>
<div class="form-floating" style="margin-top: 10px">
<input type="text" class="form-control" name="dbname" id="floatingPassword" placeholder="creative_cms">
<label for="floatingPassword">Database Name</label>
</div>
<div class="form-floating" style="margin-top: 10px">
<input type="text" class="form-control" name="dbpass" id="floatingPassword" placeholder="***********">
<label for="floatingPassword">Database Password</label>
</div>
<div class="form-floating" style="margin-top: 10px">
<input type="text" class="form-control" name="dbuser" id="floatingPassword" placeholder="root">
<label for="floatingPassword">Database User</label>
</div>
<div class="form-floating" style="margin-top: 10px; margin-bottom: 10px">
<input type="text" class="form-control" name="siteurl" id="floatingPassword" placeholder="https://yoursite.com/">
<label for="floatingPassword">Site URL</label>
</div>
<div class="form-floating" style="margin-top: 10px; margin-bottom: 10px">
<input type="text" class="form-control" name="adminuser" id="floatingPassword" placeholder="Administrator">
<label for="floatingPassword">Admin Username</label>
</div><div class="form-floating" style="margin-top: 10px; margin-bottom: 10px">
<input type="text" class="form-control" name="adminemail" id="floatingPassword" placeholder="admin@yoursite.com">
<label for="floatingPassword">Admin Email Id</label>
</div><div class="form-floating" style="margin-top: 10px; margin-bottom: 10px">
<input type="text" class="form-control" name="adminpassword" id="floatingPassword" placeholder="************">
<label for="floatingPassword">Admin Password</label>
</div>
<input class="w-100 btn btn-lg btn-primary" type="submit" name="install" value="Install">
<p class="mt-5 mb-3 text-muted">Crab CMS © 2022-2023</p>
</form>
</main>
</body>
</html>