ivowe3
Wiki
- Joined
- Apr 1, 2009
- Messages
- 1,220
- Reaction score
- 1,281
Code:
<?php
session_start();
header("Cache-control: private");
ob_start();
include("config/config.php");
include("includes/modules.php");
include("includes/secure_login.php");
include("includes/secure.php");
include("includes/flood_secure.php");
include("class.floodblocker.php");
include("tweety.php");
include("includes/ctracker.php");
require("includes/Xproject.class.php");
htmlspecialchars($_REQUEST);
check_inject();
login();
check_login();
$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.txt";
$log = fopen ( $lfh,"a+" );
fputs ($log, "Attack Date: $date | Attacker IP: $ip | QueryString: $loc?=$queryString\n");
fclose($log);
echo "Nice Try. We Log Your Attack";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
[COLOR="Lime"]<meta http-equiv="Content-Type" content="text/html; charset=utf-8">[/COLOR]
<script type="text/javascript" src="javascript/helptip.js"></script>
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/ajax.js"></script>
<script type="text/javascript" src="javascript/menu.js"></script>
<title><?php echo($Xproject['title']);?></title>
<link href="http://darksteam.net/images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
body { margin: 0px; padding: 0px; overflow: auto; background-repeat: no-repeat; background-color: #000000; color: #FFFFFF;}
a { color:#FFFFFF; text-decoration:none; }
img { border:0px; }
table.web {background-image: url('images/web_bg.jpg');background-repeat: no-repeat;}
table.content {background-image: url('images/bg.png')}
td.login_left {background-image: url('images/login_left.png')}
td.login_right {background-image: url('images/login_right.png')}
td.news_left {background-image: url('images/news_left.png')}
td.news_right {background-image: url('images/news_right.png')}
</style>
</head>
<body>
<table width="775" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="http://darksteam.net/images/header_left.png" width="364" height="217" alt=""></td>
<td>
<table cellpadding="0" cellspacing="0">
<tr>
<td><img src="http://darksteam.net/images/header_right.png" width="411" height="161" alt=""></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.php"><img src="http://darksteam.net/images/home.png" width="62" height="56" alt="Home"></a></td>
<td><a href="?op=downloads"><img src="http://darksteam.net/images/downloads.png" width="115" height="56" alt="Downloads"></a></td>
<td><a href="?op=register"><img src="http://darksteam.net/images/register.png" width="68" height="56" alt="Register"></a></td>
<td><a href="?op=crankings"><img src="http://darksteam.net/images/ranking.png" width="79" height="56" alt="Ranking"></a></td>
<td><img src="http://darksteam.net/images/space.png" width="87" height="56" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="775" align="center" cellpadding="0" cellspacing="0" class="web">
<tr>
<td>
<table width="685" align="center" cellpadding="0" cellspacing="0">
<tr>
<th valign="top">
<table width="226" align="right" cellpadding="0" cellspacing="0" class="content">
<tr>
<td><img src="http://darksteam.net/images/login_head.png" width="226" height="39" alt=""></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0">
<tr>
<td width="14" class="login_left"></td>
<td>
<table align='center' width='200'>
<form action='' name='' method='post'>
<?php
if($_SESSION['user'] == true)
{
$username = secure($_SESSION['user']);
echo"
<td align='left'><span class='menu_titles'>Welcome $username</span></td>
<tr><td align='left'><img src='images/main_btn_open.gif'> <a href='?op=user'>Characters Panel</a></td></tr>
<tr><td align='left'><img src='images/main_btn_open.gif'> <a href='?op=donate'>Donate / Get Credits</a></td></tr>
<tr><td align='left'><img src='images/main_btn_open.gif'> <a href='/webshop/'>WebShop</a></td></tr>
<tr><td align='center'><input type='submit' name='logout' class='logout_button' value=''></td></tr>
";
}
else
{
echo"
<tr><td align='left'>Account:</td></tr>
<tr><td align='left'><input type='text' name='account' maxlength='12' class='login_field_acc'></td></tr>
<tr><td align='left'>Password:</td></tr>
<tr><td align='left'><input type='password' name='password' maxlength='12' class='login_field_pass'></td></tr>
<td width='30%' align='right'><table width='50%'cellspacing='3' cellpadding='3'>
<tr><td align='right'> </td></tr>
<tr><td align='right'><input type='submit' name='login' class='login_button' value=''></td></tr>
</table></td></tr>
";
}
?>
</form>
<?include('modules/indexstats.php');?>
</table>
</td>
<td width="13" class="login_right"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://darksteam.net/images/login_down.png" width="226" height="15" alt=""></td>
</tr>
</table>
</th>
<th valign="top">
<table width="463" align="right" cellpadding="0" cellspacing="0" class="content">
<tr>
<td><img src="http://darksteam.net/images/news_head.png" width="463" height="42" alt=""></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0">
<tr>
<td width="14" class="news_left"></td>
<td>
<table align="center" width="400" cellspacing="0" cellpaddding="0" class="sort-table">
<td align='center' class='maintable'><a onclick="rules('')">:: Show Menu - click here ::</a></td>
<tr><td align='center' colspan='2'>
<div id='showrules' style='display: none;'>
<table width='370' align='center'>
<tr><td> </td></tr>
<tr><td align='center'>
<table align='center' width='430' class='maintable'>
<tr><td align=center class=maintable>:: Menu ::</td></tr>
<tr><td align=center class=asd><a href=index.php>News</a></td></tr>
<tr><td align=center class=asd><a href=?op=downloads>Downloads</a></td></tr>
<tr><td align=center class=asd><a href=?op=register>Register</a></td></tr>
<tr><td align=center class=asd><a href=?op=crankings>Rankings</a></td></tr>
<tr><td align=center class=asd><a href=#>Link 5</a></td></tr>
<tr><td align=center class=asd><a href=#>Link 6</a></td></tr>
<tr><td align=center class=asd><a href=#>Link 7</a></td></tr>
</table></table></table>
<?php
if(!isset($_GET['op']) && !isset($_GET['news'])){
include("modules/news.php"); }
elseif(isset($_GET['op'])){
modules();}
?>
</td>
<td width="13" class="news_right"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="http://darksteam.net/images/news_down.png" width="463" height="22" alt=""></td>
</tr>
</table>
</th>
</tr>
</table>
<br>
<br></td>
<tr>
<td width="100%" height="77"><table width="822" height="77" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="822" background="http://darksteam.net/images/footer_bg.png"><div align="center" class="little_link"><br />
<center>
<font color=#C47443><b> Copyright 2010 by <?php echo($servername);?>.</font>
<font color=#C47443>Web by: EvoLuTioN | eXecuteR | eXTenTioN</b></font>
</center>
</tr>
</table>
</body>
</html>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
Файла е index.php
ПП: пиши резултата