forked from leonorpw/ucvs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
71 lines (65 loc) · 2.08 KB
/
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
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
<!DOCTYPE html>
<?php
/***************************************/
/* UCVS - Unified Callback Vote Script */
/* Written by LemoniscooL */
/* released under GPLv3 license */
/***************************************/
//Uncomment to show all errors
//error_reporting(E_ALL);
//in case no errors are shown uncomment this
//ini_set("display_errors", 1);
define("UCVS", 1);
?>
<html lang="en">
<head>
<meta charset="utf-8">
<title>UCVS - Unified Callback Vote Script</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="header">
<img class="logo" src="images/logo.png"/>
</div>
<?php
if(!file_exists("./classes/userConfig.class.php") || (isset($_GET['do']) && $_GET['do'] == 'install'))
{
include_once("install.php");
}
else
{
?>
<div id="content">
<?php
if(file_exists("install.php"))
{
?>
<div class="alert alert-error fade in">
<strong>Warning!</strong><br> The install.php is still existing, for security reasons you should delete it!
</div>
<?php
}
$url = "http".(!empty($_SERVER['HTTPS'])?"s":"")."://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."ucvs_listener.php";
$url = str_replace("index.php", "", $url);
?>
<h2>Welcome to UCVS - Unified Callback Vote Script</h2>
<div class="divider"><span></span></div>
<p>
Thanks for using our script!<br />
UCVS was successfully installed and is ready to be used!<br />
In order to do so just set the callback URL settings on the toplists to: <br />
<br />
<pre><?= $url ?></pre><br />
<br />
If you need any help feel free to contact us via mail: [email protected]<br />
<br />
Best regards,<br />
Silkroad-Servers.com Team
</p>
</div>
<?php } ?>
</body>
<script type="text/javascript" src="js/custom.js"></script>
</html>