refactor: OOP code movements started :)

This commit is contained in:
Martin Ambrus
2017-10-25 13:38:38 +02:00
parent ab461e5945
commit 30d3b9c4fa
20 changed files with 484 additions and 76 deletions
+5 -2
View File
@@ -18,7 +18,10 @@
#################################################################################
include_once ("GameEngine/Session.php");
include_once("src/Entity/User.php");
use App\Entity\User;
include_once ("GameEngine/Session.php");
include_once ("GameEngine/config.php");
@@ -493,7 +496,7 @@ if($_POST['password'] != ""){
}
echo "Done";
}elseif($database->checkExist('Natars', 0)) {
}elseif(User::exists($database,'Natars')) {
?>
<p>
<span class="c2">Error: Natar account already exist</span>