-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.php
119 lines (93 loc) · 3.84 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
<?PHP
if(isset($_GET['lang']))
{
//require_once ('assets/local/'.$_COOKIE["lang"].'.php');
header('Location: ' . basename(__FILE__));
setcookie("lang", $_GET['lang'], time() + (86400 * 30));
}
if(!isset($_COOKIE["lang"])) {
require_once ('assets/local/en.php');
} else {
if(!file_exists('assets/local/'.$_COOKIE["lang"].'.php'))
{
require_once ('assets/local/en.php');
}
else
{
require_once ('assets/local/'.$_COOKIE["lang"].'.php');
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<title><?PHP echo $lang["Install App"];?></title>
<style>
body {
background-color: #e5f1f1;
}
.form-login {
border-radius: 10px !important;
background-color: white;
}
.login-submit-btn {
width: 100%;
font-weight: 500 !important;
background-color: #2ea44f !important;
}
.bg-light {
background-color: aliceblue !important;
}
</style>
</head>
<body>
<div class="container">
<div class="container ">
<div class="row justify-content-start">
<div class="col col-lg-4 ">
</div>
<div class="col-12 col-lg-4 my-5 p-4 rounded form-login">
<br>
<h4 class=""><?PHP echo $lang["Installation"];?></span></h4>
<div>
<?PHP
if(isset($_GET['type']) && isset($_GET['message']))
{
echo "<div class='alert alert-".$_GET['type']."' role='alert'>".$_GET['message']."</div>";
}
?>
<div class="alert alert-info"><?php echo $lang["If you face any issue while performing installation delete config.php file and try again."];?></div>
<form method="POST" class="login-form" action="API/checkDBConnection.php">
<div class="form-group my-2">
<label for="host"><?php echo $lang["Host"];?></label>
<input type="text" required class="form-control my-2" id="host" name="host" aria-describedby="emailHelp" placeholder="<?php echo $lang["e.g.localhost or IP:3306"];?>">
</div>
<div class="form-group my-2">
<label for="username"><?php echo $lang["Database Username"];?></label>
<input type="text" required class="form-control my-2" id="username" name="username" placeholder="<?PHP echo $lang["e.g. Database_USER"];?>">
</div>
<div class="form-group my-2">
<label for="password"><?php echo $lang["Database Password"];?></label>
<input type="password" class="form-control my-2" id="password" name="password" placeholder="">
</div>
<div class="form-group my-2">
<label for="dbName"><?php echo $lang["Database Name"]; ?></label>
<input type="text" required class="form-control my-2" id="dbName" name="dbName" placeholder="<?php echo $lang["e.g. DB_NAME"]?>">
</div>
<button type="submit" class="btn btn-success my-2 login-submit-btn"><?php echo $lang["Next"];?></button>
<br><br>
<?php include('assets/local/index.php');?>
<p>Powered by <a target="_blank" href="https://github.com/kaustubhk24/EasyURLs">EasyURLs</a> | <?php echo $lang_widget;?></p>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
</body>
</html>