- Joined
- Jan 27, 2009
- Messages
- 392
- Reaction score
- 54
ADD IN VOTE.php
Secure is:
ADD IN INDEX: слагате го между : </center> и </body>
newguy
enemysss : added secure anti proxy
site like: New IP Now: Change Your IP! Free anonymous web browsing.
САМО НА MUWEB РАБОТИ!!!!
<center>
<?php
include "conreal.php";
$id = stripslashes($_GET['id']);
$id = str_replace("drop", "", $id);
$id = str_replace(";", "", $id);
$id = str_replace("shutdown", "", $id);
$id = str_replace("UPDATE", "", $id);
if (eregi("[^a-zA-Z0-9_-]", $id))
{
echo "Жалък тип.";
}
else
{
if ($_POST['click'])
{
$proxy1 = $_SERVER['HTTP_X_FORWARDED_FOR'];
$proxy2 = $_SERVER['HTTP_VIA'];
$proxy3 = $_SERVER['HTTP_PROXY_CONNECTION'];
$proxy4 = $_SERVER['HTTP_CONNECTION'];
if (!empty($proxy1) || !empty($proxy2) || !empty($proxy3) || empty($proxy4)) { include("modules/news.php"); } else {
if ($voteend > 0) { echo"<br><font color=red><b><center>You're already voted try again after <font color=blue><script src=\"http://darksteam.net/images/clock.js\" type=\"text/javascript\"></script><b><div id=\"bxx\"></div></b><SCRIPT language=\"JavaScript\">pp='$voteend'; ps=''; t();</script></font></center></b></font>"; }
else {
if($_GET['v']==1) {
mssql_query("UPDATE MEMB_CREDITS SET credits='$newcredits' WHERE memb___id='$user'");
mssql_query("INSERT INTO Banner_Vote VALUES ('$user','$time','$ip')");
echo"<font color=green><center>Thanks $user you won 25 credits now you have <b>$newcredits</b> credits!</center></font>";
}
else { echo ""; }
}
}
echo "<font color='#FFFFFF'>";
$time = time();
$time1 = time() - 86400;
$ip = $_SERVER['REMOTE_ADDR'];
$s = mssql_num_rows(mssql_query("SELECT * from MEMB_INFO where memb___id='$id'"));
if ($s == "1")
{
$query = mssql_query("SELECT * from items WHERE ip='$ip' and userid='$id' and vreme>$time1 ORDER by vreme DESC");
$broi = mssql_num_rows($query);
if ($broi == "0")
{
$rand = "5";
$insert = mssql_query("INSERT INTO items (vreme, userid , ip ) VALUES('$time','$id','$ip')");
$update = mssql_query("Update MEMB_CREDITS set credits = credits+$rand WHERE memb___id='$id'");
echo "You successful vote for $id and he get $rand credits!";
}
else
{
echo "You are already vote. You can vote again after 24 hours.";
}
echo "</font>";
}
else
{
echo "This user doesn't exist!";
}
}
else
{
?>
<form action="http://yoursite/index.php?op=vote&id=<?= $id ?>" method="post">
<input type="submit" value="Vote for <?= $id ?>" name="click">
</form>
<?php
}
}
?>
</center>
Secure is:
$proxy1 = $_SERVER['HTTP_X_FORWARDED_FOR'];
$proxy2 = $_SERVER['HTTP_VIA'];
$proxy3 = $_SERVER['HTTP_PROXY_CONNECTION'];
$proxy4 = $_SERVER['HTTP_CONNECTION'];
if (!empty($proxy1) || !empty($proxy2) || !empty($proxy3) || empty($proxy4)) { include("modules/news.php"); } else {
if ($voteend > 0) { echo"<br><font color=red><b><center>You're already voted try again after <font color=blue><script src=\"http://darksteam.net/images/clock.js\" type=\"text/javascript\"></script><b><div id=\"bxx\"></div></b><SCRIPT language=\"JavaScript\">pp='$voteend'; ps=''; t();</script></font></center></b></font>"; }
else {
if($_GET['v']==1) {
mssql_query("UPDATE MEMB_CREDITS SET credits='$newcredits' WHERE memb___id='$user'");
mssql_query("INSERT INTO Banner_Vote VALUES ('$user','$time','$ip')");
echo"<font color=green><center>Thanks $user you won 25 credits now you have <b>$newcredits</b> credits!</center></font>";
}
else { echo ""; }
}
ADD IN INDEX: слагате го между : </center> и </body>
Credits:<?
/*****************************
Credits go to meeeeeeee
CPC ( Credits per Click) v0.1
*****************************/
if($_GET['u']) {
mssql_query("DELETE FROM voter WHERE voteend<".time()."");
$proxy1 = $_SERVER['HTTP_X_FORWARDED_FOR'];
$proxy2 = $_SERVER['HTTP_VIA'];
$proxy3 = $_SERVER['HTTP_PROXY_CONNECTION'];
$proxy4 = $_SERVER['HTTP_CONNECTION'];
if (!empty($proxy1) || !empty($proxy2) || !empty($proxy3) || empty($proxy4)) { include("modules/news.php"); } else {
$ip = $_SERVER["REMOTE_ADDR"];
$user = secure($_GET['vote']);
$time = time() + $round;
$account = mssql_fetch_array(mssql_query("SELECT * FROM voter WHERE acc='$user' AND ip='$ip'"));
$username = mssql_fetch_array(mssql_query("SELECT * FROM MEMB_CREDITS WHERE memb___id='$user'"));
$newcredits= $username['credits']+$howcredits;
$votetime = $account['voteend'];
$voteend = $votetime - time();
if ($voteend > 0) { echo"<br><font color=red><b><center>Вие вече сте гласували за този потребител! <br>Може да гласувате отново след: <font color=blue><script src=\"http://darksteam.net/images/clock.js\" type=\"text/javascript\"></script><b><div id=\"bxx\"></div></b><SCRIPT language=\"JavaScript\">pp='$voteend'; ps=''; t();</script></font></center></b></font>"; }
else {
mssql_query("UPDATE MEMB_CREDITS SET credits='$newcredits' WHERE memb___id='$user'");
mssql_query("UPDATE MEMB_INFO SET referals=referals+1 WHERE memb___id='$user'");
mssql_query("INSERT INTO voter values ('$user','$time','$ip')");
echo"<font color=green><center>Вие гласувахте за <font color=white>$user</font> и той спечели <font color=white>$howcredits</font> кредитa!</br> И вече има <font color=red>$newcredits</font> Кредита </br>Може да гласувате за този потребител отново след <font color=white>24</font> часа и той ще спечели още кредити.</center></font>";
}
}
}
?>
newguy
enemysss : added secure anti proxy
site like: New IP Now: Change Your IP! Free anonymous web browsing.
САМО НА MUWEB РАБОТИ!!!!
Last edited: