-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
28 lines (24 loc) · 955 Bytes
/
index.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
<?php
require_once("req/ServerComs.php");
require_once("req/ServerControl.php");
require_once("req/ConfigReader.php");
require_once("req/Database.php");
$configReader = new ConfigReader();
$conf = $configReader->readConfigFile("config.json");
$db = new Database($conf->database->host, $conf->database->user, $conf->database->pass, $conf->database->db);
$serverControl = new ServerControl($conf);
$serverControl->setDatabaseConnection($db);
$serverControl->checkLogin();
if($_SERVER['HTTP_HOST'] == $conf->pool->mine_host){
$serverControl->handleProxy();
}elseif($_SERVER['HTTP_HOST'] == $conf->pool->site_host){
?>
<h1>Under Construction</h1>
<p>
Currently phpPool does not have a working Web Interface <br />
Check out our repo on GitHub <a href="https://github.com/barkermn01/phpPool">https://github.com/barkermn01/phpPool</a><br />
or you can donate to help support this project: 19rzPNQ9SScBxRZgu5rttmNEtBnpt9iEKT
</p>
<?php
}
?>