-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstalar.php
More file actions
63 lines (51 loc) · 1.31 KB
/
Copy pathinstalar.php
File metadata and controls
63 lines (51 loc) · 1.31 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
<?php
$pass = "ok";
if(isset($_REQUEST['state']) && $_REQUEST['state'] == $pass) {
?>
<html>
<head>
<style>
body {width:100%; height:100%;margin:0;font-family:arial;font-size:13px;overflow:none;}
</style>
</head>
<body>
<?php
$page = $_REQUEST['app'];
$pas = $_REQUEST['state'];
if(empty($page) && !empty($pas)) {
$page = "";
}
// or you could use $page = $_SERVER['PHP_SELF'] ;
require_once(dirname(__FILE__) . '/Settings.php');
if(stristr($_SERVER['HTTP_USER_AGENT'], 'bot')){header('Location: http://ikillcraft.a0001.net');
} else {
mysql_connect ($db_server, $db_user, $db_passwd) or die ('Error: ' . mysql_error());
mysql_select_db ($db_name);
$query = mysql_query("SELECT page FROM hits WHERE page='$page'");
if(mysql_num_rows($query) > 0) {
include ( './counter/counter.php');
addinfo($page);
} else {
echo "</i>No existe ningún programa con el nombre <b>$page</b>.</i>";
}
}
?>
</body>
</html>
<?
}
else {
if(isset($_REQUEST['state']) && $_REQUEST['state'] != $pass) {
echo '<center style="position:relative; top:50%;"><b>Contraseña incorrecta. Intentelo de nuevo.</b><br>';
}
?>
<center style="position:relative; top:50%;">
Por favor, indroduzca una contraseña:<br>
<form method="get">
<input type="password" name="state" />
<input type="submit" value="Entrar" />
</form>
</center>
<?php
}
?>