-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinstall.php
73 lines (58 loc) · 1.48 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
<?php
/*
*
* SERVER REMOTE CONSOLE
* Model - Installation wizard
*
* Developed by Maxel (marianosciacco.it)
* Github - src.debug.ovh
*
*/
/*
* Main configurations and functions files
*
*/
error_reporting(E_ERROR);
set_include_path(get_include_path() . PATH_SEPARATOR . 'resources');
include('Net/SSH2.php');
require("includes/Class/SampRcon.class.php");
require('includes/environment.php');
require('includes/functions.php');
/*
* Main Body
*
*/
require("views/header.view.php");
$IsInstalled = fopen("installed.lock", "r");
if($IsInstalled)
{
echo "<br>";
Ok("The Server Remote Console has been successfully installed. Please, <a href='login.php'>click here</a> to continue.");
}
else
{
if(file_exists("./includes/Config/modes.config.php") && file_exists("./includes/Config/parameters.config.php"))
{
include("./includes/Config/modes.config.php");
include("./includes/Config/parameters.config.php");
//$srcp = SRC_PASSWORD;
$ips = IP_SERVER;
$port = PORT_SERVER;
//$rcon = RCON_SERVER;
$user = SERVER_SSH_USER;
//$pass = SERVER_SSH_PSW;
$path = SERVER_SSH_PATH;
/*$ercon = $config->EnableRCON;
$essh = $config->EnableSSH;
$srcon = $config->ShowRCON;*/
}
else
{
list($ips, $port, $user, $path, $ercon, $essh, $srcon) = array("","7777","","",0,0,0);
}
if(!empty($a))
require("controllers/installation.ctrl.php");
require("views/installation.view.php");
}
require("views/footer.view.php");
?>