-
Notifications
You must be signed in to change notification settings - Fork 27
/
installer.php
57 lines (48 loc) · 2.12 KB
/
installer.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
<?php
/*
This File is part of the Pockethold 3rdparty flarum installer.
*/
// Run Installer
if(isset($_REQUEST['ajax']) && !empty($_REQUEST["ajax"])) {
require_once("pockethold/loader.php");
if ( !defined('ABSPATH') )
{
define('ABSPATH', dirname(__FILE__) . '/');
}
$tmppath = (ABSPATH . 'pockethold/');
// Listen for Ajax Calls
$ear = new Pockethold(ABSPATH, $tmppath);
echo $ear->listen($_REQUEST['ajax']);
}
else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<title>Pockethold: 3rdparty Flarum Installer</title>
</head>
<body>
<div class="container">
<div class="jumbotron" style="background-color: transparent;">
<div class="container text-center">
<img style="margin: auto;" class="img-responsive" alt="Pockethold"
src="pockethold/assets/logo.png"/>
<p style="max-width: 460px; margin:auto;">Pockethold is a 3rd party no shell Flarum downloader.</p>
<div id="progressdiv" style="margin-top:50px;">
<p style="max-width: 460px; margin:50px auto auto auto;">
<button id="checkingbtn" class="instal1 btn btn-default btn-lg" role="button" disabled>Getting Status<i class="fa fa-cog fa-spin"></i></button>
</p>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="pockethold/assets/pockethold.js"></script>
</body>
</html>
<?php
}
?>