Fixed some PHP warnings

This commit is contained in:
Znote
2016-10-24 01:06:44 +02:00
parent 436d68f5d9
commit 01e4441b6b
14 changed files with 33 additions and 34 deletions

View File

@@ -108,7 +108,7 @@ if (empty($_POST) === false) {
}
// Teleport Player
if (in_array($_POST['from'], ['all', 'only'])) {
if (isset($_POST['from']) && in_array($_POST['from'], ['all', 'only'])) {
$from = $_POST['from'];
if ($from === 'only') {
if (empty($_POST['player_name']) || !user_character_exist($_POST['player_name'])) {
@@ -160,13 +160,13 @@ echo "Last cached on: ". getClock($basic['cached'], true) .".<br>";
</p>
<ul>
<li>
<b>Permanently Delete/erase character from database:</b>
<b>Permanently delete/erase character from database:</b>
<form type="submit" action="" method="post">
<input type="text" name="del_name" placeholder="Character name...">
</form>
</li>
<li>
<b>Ban/violate :3 character and/or his account:</b>
<b>Ban character and/or account:</b>
<form action="" method="post">
<table style="background-color:lightblue;">
<!-- row 1 -->