请求始终重定向到错误403

时间:2014-10-01 18:38:47

标签: php

最近,我将我的网站从一个虚拟主机网站转移到另一个网站。

奇怪的是,我的一个PHP请求总是重定向到错误403页面,但我无法理解原因。同样的PHP请求总是在第一个托管站点上运行。

我四处寻找有关错误403的解释,但没有任何有用的信息。

有关为何发生这种情况的任何想法?

如果重要,请点击我的PHP文件:

<?php 
include "connect.php";

$username = mysql_real_escape_string($_POST['username']);
$duelLink = mysql_real_escape_string($_POST['linx']);
$thumb = mysql_real_escape_string($_POST['finger']);
$guy = mysql_real_escape_string($_POST['guy']);

$timestime = time();
$sql = "UPDATE users SET lastActive='$timestime' WHERE username='$username'";
$query = mysql_query($sql);

$sql = "UPDATE duels SET checked='Yes' WHERE duelLink='$duelLink'";
$query = mysql_query($sql);

if ($thumb == "up")
{
$sql = "UPDATE duels SET reality='Real' WHERE duelLink='$duelLink'";
$query = mysql_query($sql);
} else if ($thumb == "down")
{
$sql = "UPDATE duels SET reality='Fake' WHERE duelLink='$duelLink'";
$query = mysql_query($sql);
$sql = "UPDATE users SET warnings=warnings+10 WHERE username='$guy'";
$query = mysql_query($sql);

$sql = "SELECT * FROM users WHERE username='$guy'";
$query = mysql_query($sql);
while ($data = mysql_fetch_array($query)) {
$banner = $data["warnings"];
}
if ($banner >= 30)
{
$sql = "UPDATE users SET user_bio='Banned' WHERE username='$guy'";
$query = mysql_query($sql);
}
}
print "systemResult=Success";
?>

编辑:我还收到以下错误:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://site.hol.es/site.swf cannot load data from http://error.host.eu/403.php?.
    at _302_fla::MainTimeline/thisImg()

EDIT2: .htaccess:

# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /

0 个答案:

没有答案