2022-01-11 11:45:36 +00:00
|
|
|
<?php
|
2022-01-11 18:54:32 +00:00
|
|
|
include("functions.php");
|
2022-01-11 13:17:37 +00:00
|
|
|
|
2022-01-26 11:48:32 +00:00
|
|
|
if (file_exists("../../install.lock")) {
|
2022-01-11 13:17:37 +00:00
|
|
|
die("The installation has been completed already. Please delete the File 'install.lock' to re-run");
|
2022-01-11 18:54:32 +00:00
|
|
|
}
|
2022-01-11 13:09:20 +00:00
|
|
|
?>
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-11 13:09:20 +00:00
|
|
|
<html>
|
2022-01-11 18:54:32 +00:00
|
|
|
<head>
|
2022-01-11 13:09:20 +00:00
|
|
|
<title>Controlpanel.gg installer Script</title>
|
2022-01-11 18:54:32 +00:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
|
|
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
2022-01-11 13:09:20 +00:00
|
|
|
<style>
|
2022-01-11 18:54:32 +00:00
|
|
|
body {
|
|
|
|
background-color: powderblue;
|
|
|
|
}
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
.card {
|
2022-01-11 13:17:37 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
margin-right: -50%;
|
|
|
|
transform: translate(-50%, -50%);
|
2022-02-09 07:36:18 +00:00
|
|
|
width: 30%;
|
2022-01-11 18:54:32 +00:00
|
|
|
}
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
.ok {
|
|
|
|
color: green;
|
|
|
|
}
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
.ok::before {
|
|
|
|
content: "✔️";
|
|
|
|
}
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
.notok {
|
|
|
|
color: red;
|
|
|
|
}
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
.notok::before {
|
|
|
|
content: "❌";
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-12 06:57:59 +00:00
|
|
|
<?php
|
|
|
|
$cardheader = '
|
|
|
|
<div class="card card-outline-success bg-dark">
|
2022-01-11 18:54:32 +00:00
|
|
|
<div class="card-header text-center">
|
2022-01-12 06:57:59 +00:00
|
|
|
<b class="mr-1 text-light">Controlpanel.GG</b>
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
2022-01-12 06:57:59 +00:00
|
|
|
<div class="card-body bg-light">';
|
|
|
|
|
|
|
|
|
|
|
|
if (!isset($_GET['step'])) {
|
2022-01-24 11:12:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (!file_exists("../../.env")) {
|
|
|
|
echo run_console('cp .env.example .env');
|
|
|
|
|
2022-01-20 08:26:46 +00:00
|
|
|
}
|
2022-01-12 06:57:59 +00:00
|
|
|
echo $cardheader;
|
|
|
|
?>
|
2022-01-12 07:08:14 +00:00
|
|
|
<p class="login-box-msg">This installer will lead you through the most crucial Steps of Controlpanel.gg`s
|
|
|
|
setup</p>
|
2022-01-26 12:24:03 +00:00
|
|
|
<p class="<?php print(checkHTTPS() == true ? "ok" : "notok"); ?>">HTTPS is required</p>
|
2022-01-11 11:45:36 +00:00
|
|
|
|
2022-01-26 14:17:51 +00:00
|
|
|
<p class="<?php print(checkWriteable() == true ? "ok" : "notok"); ?>">Write-permissions on .env-file</p>
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<p class="<?php print(checkPhpVersion() === "OK" ? "ok" : "notok"); ?>"> php
|
|
|
|
version: <?php echo phpversion(); ?> (required <?php echo $requirements["php"]; ?>)</p>
|
|
|
|
<p class="<?php print(getMySQLVersion() === "OK" ? "ok" : "notok"); ?>"> mysql
|
|
|
|
version: <?php echo getMySQLVersion(); ?> (minimum required <?php echo $requirements["mysql"]; ?>)</p>
|
2022-01-11 13:09:20 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<p class="<?php print(sizeof(checkExtensions()) == 0 ? "ok" : "notok"); ?>"> Missing
|
2022-01-12 07:36:10 +00:00
|
|
|
php-extentions: <?php print(sizeof(checkExtensions()) == 0 ? "none" : "");
|
2022-01-12 07:08:14 +00:00
|
|
|
foreach (checkExtensions() as $ext) {
|
|
|
|
echo $ext . ", ";
|
2022-01-12 07:36:10 +00:00
|
|
|
}
|
2022-01-24 11:12:50 +00:00
|
|
|
|
|
|
|
print(sizeof(checkExtensions()) == 0 ? "" : "(Proceed anyway)"); ?></p>
|
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<!-- <p class="<?php print(getZipVersion() === "OK" ? "ok" : "notok"); ?>"> Zip
|
2022-01-12 06:57:59 +00:00
|
|
|
version: <?php echo getZipVersion(); ?> </p> -->
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<p class="<?php print(getGitVersion() === "OK" ? "ok" : "notok"); ?>"> Git
|
|
|
|
version: <?php echo getGitVersion(); ?> </p>
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<p class="<?php print(getTarVersion() === "OK" ? "ok" : "notok"); ?>"> Tar
|
|
|
|
version: <?php echo getTarVersion(); ?> </p>
|
2022-01-11 13:09:20 +00:00
|
|
|
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<a href="?step=2">
|
|
|
|
<button class="btn btn-primary">Lets go</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
2022-01-11 13:09:20 +00:00
|
|
|
}
|
2022-01-11 18:54:32 +00:00
|
|
|
if (isset($_GET['step']) && $_GET['step'] == 2) {
|
2022-01-12 07:08:14 +00:00
|
|
|
echo $cardheader;
|
|
|
|
?>
|
|
|
|
<p class="login-box-msg">Lets start with your Database</p>
|
|
|
|
<?php if (isset($_GET['message'])) {
|
|
|
|
echo "<p class='notok'>" . $_GET['message'] . "</p>";
|
|
|
|
}
|
|
|
|
?>
|
2022-01-11 13:09:20 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<form method="POST" enctype="multipart/form-data" class="mb-3"
|
|
|
|
action="/install/forms.php" name="checkDB">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="database">Database Driver</label>
|
|
|
|
<input x-model="databasedriver" id="databasedriver" name="databasedriver"
|
|
|
|
type="text" required
|
|
|
|
value="mysql" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="databasehost">Database Host</label>
|
|
|
|
<input x-model="databasehost" id="databasehost" name="databasehost" type="text"
|
|
|
|
required
|
|
|
|
value="127.0.0.1" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="databaseport">Database Port</label>
|
|
|
|
<input x-model="databaseport" id="databaseport" name="databaseport"
|
|
|
|
type="number" required
|
|
|
|
value="3306" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="databaseuser">Database User</label>
|
|
|
|
<input x-model="databaseuser" id="databaseuser" name="databaseuser" type="text"
|
|
|
|
required
|
|
|
|
value="dashboarduser" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="databaseuserpass">Database User Password</label>
|
|
|
|
<input x-model="databaseuserpass" id="databaseuserpass" name="databaseuserpass"
|
|
|
|
type="text" required
|
|
|
|
class="form-control ">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-11 13:09:20 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="database">Database</label>
|
|
|
|
<input x-model="database" id="database" name="database" type="text" required
|
|
|
|
value="dashboard" class="form-control">
|
2022-01-11 13:09:20 +00:00
|
|
|
</div>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<button class="btn btn-primary" name="checkDB">Submit</button>
|
|
|
|
</div>
|
2022-01-26 14:41:42 +00:00
|
|
|
</form>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
|
|
|
|
</div>
|
2022-01-11 19:03:59 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
<?php
|
2022-01-12 07:08:14 +00:00
|
|
|
}
|
2022-01-20 08:26:46 +00:00
|
|
|
if (isset($_GET['step']) && $_GET['step'] == 2.5) {
|
|
|
|
echo $cardheader;
|
|
|
|
?>
|
2022-01-24 11:24:00 +00:00
|
|
|
<p class="login-box-msg">Lets feed your Database and generate some security keys!</p>
|
2022-01-20 08:26:46 +00:00
|
|
|
<p> This process might take a while. Please do not refresh or close this page!</p>
|
|
|
|
<?php if (isset($_GET['message'])) {
|
|
|
|
echo "<p class='notok'>" . $_GET['message'] . "</p>";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2022-01-11 13:09:20 +00:00
|
|
|
|
2022-01-20 08:26:46 +00:00
|
|
|
<form method="POST" enctype="multipart/form-data" class="mb-3"
|
2022-01-24 11:25:30 +00:00
|
|
|
action="/install/forms.php" name="feedDB">
|
2022-01-20 08:26:46 +00:00
|
|
|
|
|
|
|
|
2022-01-24 11:25:30 +00:00
|
|
|
<button class="btn btn-primary" name="feedDB">Submit</button>
|
2022-01-20 08:26:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
2022-01-11 14:09:00 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
if (isset($_GET['step']) && $_GET['step'] == 3) {
|
2022-01-12 07:08:14 +00:00
|
|
|
echo $cardheader;
|
|
|
|
?>
|
2022-01-24 11:12:50 +00:00
|
|
|
<p class="login-box-msg">Tell us something about your Host</p>
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<?php if (isset($_GET['message'])) {
|
|
|
|
echo "<p class='notok'>" . $_GET['message'] . "</p>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form method="POST" enctype="multipart/form-data" class="mb-3"
|
2022-01-24 11:12:50 +00:00
|
|
|
action="/install/forms.php" name="checkGeneral">
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-01-24 11:12:50 +00:00
|
|
|
<label for="database">Your Dashboard URL</label>
|
|
|
|
<input id="url" name="url"
|
2022-01-12 07:08:14 +00:00
|
|
|
type="text" required
|
2022-01-26 12:16:11 +00:00
|
|
|
value="<?php echo "https://" . $_SERVER['SERVER_NAME']; ?>" class="form-control">
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-01-24 11:12:50 +00:00
|
|
|
<label for="name">Your Host-Name</label>
|
|
|
|
<input id="name" name="name" type="text"
|
2022-01-12 07:08:14 +00:00
|
|
|
required
|
2022-01-24 11:12:50 +00:00
|
|
|
value="Controlpanel.gg" class="form-control">
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-01-11 14:09:00 +00:00
|
|
|
</div>
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
<button class="btn btn-primary" name="checkGeneral">Submit</button>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-26 14:41:42 +00:00
|
|
|
</form>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-11 19:03:59 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
2022-01-24 11:12:50 +00:00
|
|
|
if (isset($_GET['step']) && $_GET['step'] == 4) {
|
2022-01-12 07:08:14 +00:00
|
|
|
echo $cardheader;
|
|
|
|
?>
|
2022-01-24 11:12:50 +00:00
|
|
|
<p class="login-box-msg">Lets get your E-Mails going! </p>
|
|
|
|
<p class="login-box-msg">This might take a few seconds when submitted! </p>
|
2022-01-12 06:57:59 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
<?php if (isset($_GET['message'])) {
|
|
|
|
echo "<p class='notok'>" . $_GET['message'] . "</p>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form method="POST" enctype="multipart/form-data" class="mb-3"
|
2022-01-24 11:12:50 +00:00
|
|
|
|
|
|
|
action="/install/forms.php" name="checkSMTP">
|
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-01-24 11:12:50 +00:00
|
|
|
<label for="method">Your E-Mail method</label>
|
|
|
|
<input id="method" name="method"
|
2022-01-11 18:54:32 +00:00
|
|
|
type="text" required
|
2022-01-24 11:12:50 +00:00
|
|
|
value="smtp" class="form-control">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="host">Your Mailer-Host</label>
|
|
|
|
<input id="host" name="host" type="text"
|
|
|
|
required
|
|
|
|
value="smtp.google.com" class="form-control">
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-24 11:12:50 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-01-24 11:12:50 +00:00
|
|
|
<label for="port">Your Mail Port</label>
|
|
|
|
<input id="port" name="port" type="port"
|
2022-01-11 18:54:32 +00:00
|
|
|
required
|
2022-01-24 11:12:50 +00:00
|
|
|
value="567" class="form-control">
|
2022-01-11 14:09:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="user">Your Mail User</label>
|
|
|
|
<input id="user" name="user" type="text"
|
|
|
|
required
|
|
|
|
value="info@mydomain.com" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="pass">Your Mail-User Password</label>
|
|
|
|
<input id="pass" name="pass" type="password"
|
|
|
|
required
|
|
|
|
value="" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="encryption">Your Mail encryption method</label>
|
|
|
|
<input id="encryption" name="encryption" type="text"
|
|
|
|
required
|
|
|
|
value="tls" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-11 14:09:00 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
<button class="btn btn-primary" name="checkSMTP">Submit</button>
|
2022-01-26 14:41:42 +00:00
|
|
|
</form>
|
2022-01-11 19:03:59 +00:00
|
|
|
|
2022-01-26 14:41:42 +00:00
|
|
|
</div>
|
2022-01-11 15:12:48 +00:00
|
|
|
|
2022-01-26 14:41:42 +00:00
|
|
|
<a href="?step=5"><button class="btn btn-warning">Skip this step for now</button></a>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-26 14:41:42 +00:00
|
|
|
</div>
|
2022-01-12 07:08:14 +00:00
|
|
|
<?php
|
|
|
|
}
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
if (isset($_GET['step']) && $_GET['step'] == 5) {
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
echo $cardheader;
|
|
|
|
?>
|
2022-01-24 11:12:50 +00:00
|
|
|
|
|
|
|
<p class="login-box-msg">Almost done! </p>
|
|
|
|
<p class="login-box-msg">Lets get some info about your Pterodactyl Installation!</p>
|
|
|
|
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<?php if (isset($_GET['message'])) {
|
|
|
|
echo "<p class='notok'>" . $_GET['message'] . "</p>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form method="POST" enctype="multipart/form-data" class="mb-3"
|
2022-01-24 11:12:50 +00:00
|
|
|
|
|
|
|
action="/install/forms.php" name="checkPtero">
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-01-11 15:12:48 +00:00
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
<label for="url">Pterodactyl URL</label>
|
|
|
|
<input id="url" name="url"
|
|
|
|
type="text" required
|
|
|
|
value="https://ptero.example.com" class="form-control">
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
2022-01-12 07:08:14 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-01-24 11:12:50 +00:00
|
|
|
<label for="key">Pterodactyl API-Key</label>
|
|
|
|
<input id="key" name="key" type="text"
|
2022-01-12 07:08:14 +00:00
|
|
|
required
|
2022-01-24 11:12:50 +00:00
|
|
|
value="" class="form-control"
|
|
|
|
placeholder="The Key needs ALL read&write Permissions!">
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-24 11:24:00 +00:00
|
|
|
<button class="btn btn-primary" name="checkPtero">Submit</button>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-26 14:41:42 +00:00
|
|
|
</form>
|
2022-01-11 18:54:32 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-11 19:03:59 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
if (isset($_GET['step']) && $_GET['step'] == 6) {
|
|
|
|
echo $cardheader;
|
|
|
|
?>
|
|
|
|
<p class="login-box-msg">Lets create yourself!</p>
|
|
|
|
<p class="login-box-msg">We're making the first Admin user</p>
|
|
|
|
<?php if (isset($_GET['message'])) {
|
|
|
|
echo "<p class='notok'>" . $_GET['message'] . "</p>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form method="POST" enctype="multipart/form-data" class="mb-3"
|
|
|
|
action="/install/forms.php" name="createUser">
|
|
|
|
|
2022-02-09 06:54:03 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
|
|
|
<label for="pteroID">Your Pterodactyl User-ID (found in the users-list on your pterodactyl dashboard)</label>
|
|
|
|
<input id="pteroID" name="pteroID" type="text"
|
|
|
|
required
|
|
|
|
value="1" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-24 11:12:50 +00:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-02-09 06:54:03 +00:00
|
|
|
<label for="pass">Password (this will be your new pterodactyl password aswell!)</label>
|
2022-01-24 11:12:50 +00:00
|
|
|
<input id="pass" name="pass" type="password"
|
|
|
|
required
|
|
|
|
value="" minlength="8" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control mb-3">
|
2022-01-26 12:16:11 +00:00
|
|
|
<label for="repass">Retype Password</label>
|
2022-01-24 11:12:50 +00:00
|
|
|
<input id="repass" name="repass" type="password"
|
|
|
|
required
|
|
|
|
value="" minlength="8" class="form-control">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="btn btn-primary" name="createUser">Submit</button>
|
|
|
|
</div>
|
2022-01-26 14:41:42 +00:00
|
|
|
</form>
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-11 13:09:20 +00:00
|
|
|
|
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
</div>
|
2022-01-24 11:12:50 +00:00
|
|
|
|
2022-01-12 07:08:14 +00:00
|
|
|
<?php
|
2022-01-24 11:12:50 +00:00
|
|
|
}
|
|
|
|
if (isset($_GET['step']) && $_GET['step'] == 7) {
|
2022-01-26 11:48:32 +00:00
|
|
|
$lockfile = fopen("../../install.lock", "w") or die("Unable to open file!");
|
2022-01-24 11:12:50 +00:00
|
|
|
fwrite($lockfile, "locked");
|
|
|
|
fclose($lockfile);
|
|
|
|
|
|
|
|
echo $cardheader;
|
|
|
|
|
|
|
|
?>
|
|
|
|
<p class="login-box-msg">All done!</p>
|
|
|
|
<p class="login-box-msg">You may navigate to your Dashboard now and log in!</p>
|
|
|
|
<a href="<?php echo "https://" . $_SERVER['SERVER_NAME']; ?>">
|
|
|
|
<button class="btn btn-success">Lets go!</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2022-01-11 18:54:32 +00:00
|
|
|
|
2022-01-11 13:09:20 +00:00
|
|
|
|
2022-01-24 11:12:50 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
|
|
|
|
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
|
|
|
|
crossorigin="anonymous"></script>
|
2022-01-11 18:54:32 +00:00
|
|
|
</body>
|
|
|
|
</html>
|