-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
161 lines (147 loc) · 4.89 KB
/
header.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
require('ban-ip.php');
if(isset($_COOKIE['lang']) && $_REQUEST['lang'] == '') {
$lang = $_COOKIE['lang'];
$test=1;
}
elseif (isset($_REQUEST['lang']) && $_REQUEST['lang'] != '') {
$lang = $_REQUEST['lang'];
set_cookie($lang);
$test=2;
}
else {
$lang = substr($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'],0,2);
set_cookie($lang);
$test=3;
}
function set_cookie($lang) {
$expire = 365*24*3600;
if (setcookie("lang", $lang, time() + $expire) != TRUE)
{
echo '';
}
}
if ($lang == "bg") {
include('inc/lang/lang_bg.php');
$final=1;
}
elseif ($lang == "en") {
include('inc/lang/lang_en.php');
$final=2;
}
include 'inc/config.php';
require_once'functions.php';
include'inc/lang/lang_'.LANG.'.php';
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<?php
$queryString = strtolower($_SERVER['QUERY_STRING']);
if (strstr($queryString,"<") OR strstr($queryString,">") OR strstr($queryString,"(") OR strstr($queryString,")") OR
strstr($queryString,"..") OR
strstr($queryString,"%") OR
strstr($queryString,"*") OR
strstr($queryString,"+") OR
strstr($queryString,"!") OR
strstr($queryString,"@")) {
$loc = $_SERVER['PHP_SELF'];
$ip = $_SERVER['REMOTE_ADDR'];
$date = date ("d-m-Y @ h:i:s");
$lfh = "log.html";
$log = fopen ( $lfh,"a+" );
fputs ($log, "Date: $date | Attack IP: $ip | Attack of: $loc?=$queryString\n<br>");
fclose($log);
echo "<font color=red>Please, don't abuse with malicious code! Don't enter special characters (like slashes) and other symbols! If you search website, then write only the name of website without http:// or other symbols! Thnx!</font>";
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" type="image/x-icon" href="./images/addurl.ico">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="etibot" content="he will find your website:)" />
<title><?php echo SITENAME; ?> | <?php echo SLOGAN; ?></title>
<meta name="description" content="Add URL - Add your Website">
<meta name="keywords" content="add website, add url, add link, submit website, submit url, url submitter, url submit, url directory, url submit free, free web submission, free directory submission, link directory, website directory, web directory, добави линк, добави сайт, добави link, добави url, добави уебсайт, сео, сео директория, сео оптимизация, добавяне на сайт в търсачки, регистриране в търсачки, уеб директория">
<META NAME="AUTHOR" CONTENT="ETI Dev.">
<meta name="language" content="en">
<META NAME="COPYRIGHT" CONTENT="ETI.bl.ee">
<meta name="robots" content="index, follow">
<meta name="revisit-after" content="2 days">
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<style type="text/css">
#arrowUp {
position: fixed;
height: auto;
width: auto;
right: 10px;
bottom: 10px;
font-size: 32px;
}
#arrowUp a {
text-decoration: none;
color: #176FA9;
font-weight: bold;
font-family: serif;
}
#arrowUp a:hover {
color: #000000;
}
</style>
<script type="text/javascript">
var maxLength=63;
function charLimit(el) {
if (el.value.length > maxLength) return false;
return true;
}
function characterCount(el) {
var charCount = document.getElementById('charCount');
if (el.value.length > maxLength) el.value = el.value.substring(0,maxLength);
if (charCount) charCount.innerHTML = maxLength - el.value.length;
return true;
}
</script>
</head>
<body>
<script type="text/javascript">
var appended = false, bookmark = document.createElement("div");
bookmark.id = "arrowUp";
bookmark.innerHTML = "<a href=\"#\" title=\"On Top\">↑<\/a>";
onscroll = function() {
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
if (scrollTop > 500) {
if (!appended) {
document.body.appendChild(bookmark);
appended = true;
}
} else {
if (appended) {
document.body.removeChild(bookmark);
appended = false;
}
}
};
</script>
<div id="header">
<div id="logo">
<h1><a href="./"><?php echo SITENAME; ?></a></h1>
<p><?php echo SLOGAN; ?></p>
</div>
<div id="menu">
<ul>
<li class="first"><a href="./"><?php echo HOME; ?></a></li>
<li><a href="add-url"><?php echo POSTURL; ?></a></li>
<li id="search">
<form method="get" action="search.php">
<fieldset>
<input type="text" id="s" name="key" maxlength="63" placeholder="website name here" value="" title="Without http:// Don't enter special characters (like slashes) and other symbols!" />
<input type="submit" id="x" class="btn" value="<?php echo SEARCH; ?>" />
</fieldset>
</form>
</li>
</ul>
</div>
</div>
<div id="page">
<div id="content">
<br />