Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 普拉德。“。由于各种安全问题,各种浏览器都有严格的限制,甚至拒绝使用iFrame。因此,如果您将文件更改为仅hello或其他内容,您仍然会收到,您将被禁止。?”?您还应该使用准备好的语句。@chris85是的,在更改文件名而不是名称、内容后仍然会出现错误…_Php_Mysql - Fatal编程技术网

Php 普拉德。“。由于各种安全问题,各种浏览器都有严格的限制,甚至拒绝使用iFrame。因此,如果您将文件更改为仅hello或其他内容,您仍然会收到,您将被禁止。?”?您还应该使用准备好的语句。@chris85是的,在更改文件名而不是名称、内容后仍然会出现错误…

Php 普拉德。“。由于各种安全问题,各种浏览器都有严格的限制,甚至拒绝使用iFrame。因此,如果您将文件更改为仅hello或其他内容,您仍然会收到,您将被禁止。?”?您还应该使用准备好的语句。@chris85是的,在更改文件名而不是名称、内容后仍然会出现错误…,php,mysql,Php,Mysql,普拉德。“。由于各种安全问题,各种浏览器都有严格的限制,甚至拒绝使用iFrame。因此,如果您将文件更改为仅hello或其他内容,您仍然会收到,您将被禁止。?”?您还应该使用准备好的语句。@chris85是的,在更改文件名而不是名称、内容后仍然会出现错误……除非您加载了新命名的文件并获得了相同的输出?@chris85还有一点很奇怪,当您转到/admin时,它会重定向到/admin/pages/index.html,即使在任何.htaccess文件中都没有/admin文件夹和重定向。我想我的本地主


普拉德。“。由于各种安全问题,各种浏览器都有严格的限制,甚至拒绝使用iFrame。因此,如果您将文件更改为仅
hello
或其他内容,您仍然会收到
,您将被禁止。
?”?您还应该使用准备好的语句。@chris85是的,在更改文件名而不是名称、内容后仍然会出现错误……除非您加载了新命名的文件并获得了相同的输出?@chris85还有一点很奇怪,当您转到
/admin
时,它会重定向到
/admin/pages/index.html
,即使在任何.htaccess文件中都没有
/admin
文件夹和重定向。我想我的本地主机可能会闹鬼,恕我直言,“您的浏览器不支持iFrame。请升级”这句话类似于“您的汽车不支持使用含铅燃油,请升级。”。由于各种安全问题,各种浏览器都有严格的限制,甚至拒绝使用iFrame。
You have been banned.
Your account has been disabled and cannot be used anymore.
You find the details below.

Date: 13-04-2016 16:06:27
Reason: Violation of the EULA.

If you have questions, feel free to contact the administrator.
$sql = "SELECT * FROM bans WHERE user_name='".$_SESSION['user_name']."'";
$result = $conn->query($sql);
if(mysqli_num_rows($result) != 0) {
    if ($result->num_rows > 0) {
        while($row = $result->fetch_assoc()) {
            $blocked = "
            <div class='modal-inner' style='width:500px'>
            <h2>Account disabled</h2>
            Your account has been disabled and cannot be used anymore.<br />You find the details below.<br /><br />
            Processed: ". $row["user_dateofban"] ."<br />
            Reason: ". $row["reason"] ."<br /><br />
            If you have questions, feel free to contact the administrator.
            </div>
            ";
            exit($blocked);
        }
    }
}
<?php
include("loginsys.php");

if ($login->isUserLoggedIn() == true) {

//ban config
$sql = "SELECT * FROM bans WHERE user_name='".$_SESSION['user_name']."'";
$result = $conn->query($sql);
if(mysqli_num_rows($result) != 0) {
    if ($result->num_rows > 0) {
        while($row = $result->fetch_assoc()) {
            $blocked = "
            <div class='modal-inner' style='width:500px'>
            <h2>Account disabled</h2>
            Your account has been disabled and cannot be used anymore.<br />You find the details below.<br /><br />
            Processed: ". $row["user_dateofban"] ."<br />
            Reason: ". $row["reason"] ."<br /><br />
            If you have questions, feel free to contact the administrator.
            </div>
            ";
            exit($blocked);
        }
    }
}

    if(isset($_SESSION['user_rank']) && $_SESSION['user_rank'] == "3") {
if(isset($_GET["page"]) && $_GET["page"] == "customization") {
    include("assets/top.php");

            if(isset($_POST['editcustom'])) {
                $sql = "UPDATE customization SET iam='".$_POST["iam"]."', iam2='".$_POST["iam2"]."', about='".$_POST["about"]."', about2='".$_POST["about2"]."', about3='".$_POST["about3"]."', recentwork='".$_POST["recentwork"]."', recentwork2='".$_POST["recentwork2"]."', getintouch='".$_POST["getintouch"]."', getintouch2='".$_POST["getintouch2"]."', address='".$_POST["address"]."', phone='".$_POST["phone"]."', email='".$_POST["email"]."', sendbutton='".$_POST["sendbutton"]."', copyright='".$_POST["copyright"]."'";
                $updateuser = $conn->query($sql);
                if ($updateuser) {
                    echo '<div class="alert alert-success">Settings saved.</div>';
                } else {
                    echo '<div class="alert alert-danger">Something went wrong executing the query. Try again.</div>';
                }
            }

    $sql = "SELECT * FROM customization LIMIT 1";
    $result = $conn->query($sql);
    if ($result->num_rows > 0) {
        while($row = $result->fetch_assoc()) {
            ?>
<h1>Header</h1>
<form method="post">
<table>
    <tr>
        <td>Header 1</td>
        <td><input type="text" value="<?php echo $row["iam"]; ?>" name="iam" />
    </tr>
    <tr>
        <td>Header 2</td>
        <td><input type="text" value="<?php echo $row["iam2"]; ?>" name="iam2" />
    </tr>
</table>
<h1>About</h1>
<table>
    <tr>
        <td>About heading</td>
        <td><input type="text" value="<?php echo $row["about"]; ?>" name="about" />
    </tr>
    <tr>
        <td>About text</td>
        <td><input type="text" value="<?php echo $row["about2"]; ?>" name="about2" />
    </tr>
    <tr>
        <td>About button</td>
        <td><input type="text" value="<?php echo $row["about3"]; ?>" name="about3" />
    </tr>
</table>
<h1>Recent Work</h1>
<table>
    <tr>
        <td>Recent Work heading</td>
        <td><input type="text" value="<?php echo $row["recentwork"]; ?>" name="recentwork" />
    </tr>
    <tr>
        <td>Recent Work button</td>
        <td><input type="text" value="<?php echo $row["recentwork2"]; ?>" name="recentwork2" />
    </tr>
</table>
<h1>Contact</h1>
<table>
    <tr>
        <td>Heading</td>
        <td><input type="text" value="<?php echo $row["getintouch"]; ?>" name="getintouch" />
    </tr>
    <tr>
        <td>Text</td>
        <td><input type="text" value="<?php echo $row["getintouch2"]; ?>" name="getintouch2" />
    </tr>
    <tr>
        <td>Address</td>
        <td><input type="text" value="<?php echo $row["address"]; ?>" name="address" />
    </tr>
    <tr>
        <td>Phone</td>
        <td><input type="text" value="<?php echo $row["phone"]; ?>" name="phone" />
    </tr>
    <tr>
        <td>Email</td>
        <td><input type="text" value="<?php echo $row["email"]; ?>" name="email" />
    </tr>
    <tr>
        <td>Button text</td>
        <td><input type="text" value="<?php echo $row["sendbutton"]; ?>" name="sendbutton" />
    </tr>
</table>
<h1>Copyright</h1>
<table>
    <tr>
        <td>Copyright</td>
        <td><input type="text" value="<?php echo $row["copyright"]; ?>" name="copyright" />
    </tr>
</table>
<input type="submit" value="Save changes" name="editcustom" />
</form>
            <?php           
        }
    } else {
        echo "No customization yet.";
    }

    include("assets/bot.php");
} else {
?>
<iframe src="admin.php?page=dashboard" style="width:700px;height:500px;">
    Your browser doesn't support iframes. Please upgrade.
</iframe>
<?php
}
    } else {
        echo "Error: No permissions";
    }
} else {
    echo "Error: Not signed in";
}
?>