This repository was archived by the owner on Apr 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·131 lines (120 loc) · 6.76 KB
/
index.php
File metadata and controls
executable file
·131 lines (120 loc) · 6.76 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
// BEGIN SPlatform assembly
define ("SPCOMPILE", 1);
///////////////////////////
if(file_exists("core/framework.php")){
include("core/framework.php");
}else{ die("Please place the framework.php file in the 'core' folder before accessing this page!");};
///////////////////////////
if($accesslogs=="1"){
if (empty($_GET["page"])) { $logpage=$indexpagename; }else{ $logpage=$_GET["page"]; };
if(empty($_SERVER['HTTP_USER_AGENT'])){ $logua="No user agent"; }else{ $logua=$_SERVER['HTTP_USER_AGENT']; };
if ($siteonline=="1"){ $logsiteonline="Yes"; }else{ $logsiteonline="No"; };
if(!file_exists($user."/access-logs.php")){
file_put_contents($user.'/access-logs.php', '<?php
if(!defined("SPCOMPILE"))
{
die("
<head><title>SPlatform - Protection script</title></head>
<body>
<h1>403: SPlatform -> Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the site.
<hr>
SPlatform");
}
?>');
};
$logstxt = "
<tr>
<td>".date('Y-m-d')." at ".date('h:i:sa')."</td>
<td>".$_SERVER['REMOTE_ADDR']."</td>
<td>".$logua."</td>
<td>".$logsiteonline."</td>
<td>".$logpage."</td>
</tr>
";
$logsfile = fopen($user.'/access-logs.php','a');
fwrite($logsfile,$logstxt);
};
if ($siteonline == 0){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>403 - Forbidden</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>403 - Forbidden</h2>
<h3><?php echo $offlinemessage; ?></h3>
</fieldset></div>
</div>
</body>
</html>
<?php die();
}; ?>
<?php
if ($bansysenabled == 1){
// ===== Page manager 3.0 ===== //
if (!empty($_GET["page"])) {
if (file_exists($pagesdir."/" . $_GET["page"] . ".".$pgext)) {
include($themesfolder."/". $theme ."/header.theme.block.php");
include($pagesdir."/" . $_GET["page"] . ".".$pgext);
include($themesfolder."/". $theme ."/footer.theme.block.php");
} else {
include($notfound);
}
} else {
if (file_exists($pagesdir."/".$index)) {
include($themesfolder."/". $theme ."/header.theme.block.php");
include($pagesdir."/" .$index); // home page
include($themesfolder."/". $theme ."/footer.theme.block.php");
} else {
include($notfound);
}
};
///////////////////////////
}else{ ?>
<head>
<title><?php echo $title." - Autentificare"; ?></title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<style>body,html{height:100%;background-repeat:no-repeat;background-image:radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(195,195,195,1) 76%, rgba(158,158,158,1) 100%)}.card-container.card{max-width:350px;padding:40px;filter: drop-shadow(0 0 0.75rem gray);}.btn{font-weight:700;height:36px;-moz-user-select:none;-webkit-user-select:none;user-select:none;cursor:default}.card{background-color:#e1e1e1;padding:20px 25px 30px;margin:50px auto 25px;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 2px 2px rgba(0,0,0,.3);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.3);box-shadow:0 2px 2px rgba(0,0,0,.3)}.profile-img-card{width:96px;height:96px;margin:0 auto 10px;display:block;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.profile-name-card{font-size:16px;font-weight:700;text-align:center;margin:10px 0 0;min-height:1em}.reauth-email{display:block;color:#404040;line-height:2;margin-bottom:10px;font-size:14px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.form-signin #inputEmail,.form-signin #inputPassword{direction:ltr;height:44px;font-size:16px}.form-signin button,.form-signin input[type=email],.form-signin input[type=password],.form-signin input[type=text]{width:100%;display:block;margin-bottom:10px;z-index:1;position:relative;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.form-signin .form-control:focus{border-color:#6891a2;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #6891a2;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #6891a2}.btn.btn-signin{background-color:#6891a2;padding:0;font-weight:700;font-size:14px;height:36px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:none;-o-transition:all 218ms;-moz-transition:all 218ms;-webkit-transition:all 218ms;transition:all 218ms}.btn.btn-signin:active,.btn.btn-signin:focus,.btn.btn-signin:hover{background-color:#0c6121}.forgot-password{color:#6891a2}.forgot-password:active,.forgot-password:focus,.forgot-password:hover{color:#0c6121}</style>
</head>
<body>
<div class="container">
<div class="card card-container">
<img class="profile-img-card img-rounded" style="filter: drop-shadow(0 0 0.75rem gray);" src="<?php echo $websiteaddress; ?>/public/images/default-profile.png" alt="" />
<!-- <img id="profile-img" class="profile-img-card img-rounded" style="filter: drop-shadow(0 0 0.75rem gray);" src="/public/images/logo.jpg" /> -->
<p id="profile-name" class="profile-name-card"></p>
<form class="form-signin" action="index.php?page=acasa" method="POST">
<span id="reauth-email" class="reauth-email"></span>
<input type="hidden" id="act" name="act" value="cc">
<input type="text" id="inputEmail" class="form-control" placeholder="Utilizator" name="username" required autofocus>
<input type="password" id="inputPassword" class="form-control" placeholder="Parola" name="password" required>
<button class="btn btn-lg btn-primary btn-block btn-signin" type="submit">Autentificare</button>
</form><!-- /form -->
<a href="index.php?page=&act=s"><button class="btn btn-lg btn-primary btn-block btn-signin">Sterge cookieuri</button></a>
</div><!-- /card-container -->
</div><!-- /container -->
</body>
<?php }; ?>
<?php mysqli_close($link); ?>