-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall2.php
More file actions
122 lines (94 loc) · 3.55 KB
/
install2.php
File metadata and controls
122 lines (94 loc) · 3.55 KB
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
<?php
if(!file_exists('config.php'))
{
header('location:install.php');
exit();
}
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["Step 2"];?></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["Signup"];?></span></h4>
<div>
<?PHP
if(isset($_GET['type']) && isset($_GET['message']))
{
echo "<div class='alert alert-".$_GET['type']."' role='alert'>".$_GET['message']."</div>";
}
?>
<p><?php echo $lang["Let's setup your account"];?></p>
<form method="POST" class="login-form" action="API/installation2.php">
<input type="hidden" name="reference" value="<?php echo $Auth_Hash;?>">
<div class="form-group my-2">
<label for="username"><?php echo $lang["Username"];?></label>
<input type="text" required class="form-control my-2" id="username" name="username" aria-describedby="emailHelp" >
</div>
<div class="form-group my-2">
<label for="email"><?php echo $lang["Email"];?></label>
<input type="email" required class="form-control my-2" id="email" name="email" placeholder="<?php echo $lang["e.g. you@domain.com"];?>">
</div>
<div class="form-group my-2">
<label for="password"><?php echo $lang["Password"];?> </label>
<input type="password" minlength="8" class="form-control my-2" id="password" name="password" placeholder="">
</div>
<button type="submit" class="btn btn-success my-2 login-submit-btn"><?php echo $lang["Complete Installation"];?></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>
</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>