ob_start(); if (empty($_SESSION)) { exit(header("Location: ../../index.php")); } require_once $_SESSION['File_Root'] . '/Kernel/Include.php'; require_once $_SESSION['File_Root'] . '/HTML/Header.php'; require_once 'Functions/SQL.php'; redirectToLogin($accountID, $linkRoot); redirectToBattle($verifyBattle, $linkRoot); $magicID = htmlspecialchars(addslashes($_POST['magicID'])); $canBePurchased = canBePurchased($bdd, $magicID, $characterTownID); if ($canBePurchased == 1) { $number = verifyMagic($bdd, $magicID, $characterID); if ($number <= 0) { $magic = newMagic($bdd, $magicID); addMagic($bdd, $magicID, $characterID); $gold = $character->getGold() - $magic->getPrice(); updateCharacterGold($bdd, $gold, $characterID); } else { ?> <?php echo $magicShop8; ?> <?php } } else { ?> An error has surved <?php } require_once $_SESSION['File_Root'] . '/HTML/Footer.php';
<?php $timeStart = microtime(true); session_start(); ob_start(); if (empty($_SESSION)) { exit(header("Location: ../../index.php")); } require_once $_SESSION['File_Root'] . '/Kernel/Include.php'; require_once $_SESSION['File_Root'] . '/HTML/Header.php'; require_once 'Functions/SQL.php'; redirectToLogin($accountID, $linkRoot); redirectToBattle($verifyBattle, $linkRoot); if ($characterSkillPoint >= 1) { addMagic($bdd, $characterID); updateAllStats($bdd, $characterID); exit(header("Location: {$linkRoot}/Modules/SkillPoint/index.php")); } else { echo $skillpoint11; } require_once $_SESSION['File_Root'] . '/HTML/Footer.php';
if (empty($_SESSION)) { exit(header("Location: ../../index.php")); } require_once $_SESSION['File_Root'] . '/Kernel/Include.php'; require_once $_SESSION['File_Root'] . '/HTML/Header.php'; require_once 'Functions/SQL.php'; redirectToLogin($accountID, $linkRoot); redirectToBattle($verifyBattle, $linkRoot); hasAdmin($accountAccess); $magicPicture = htmlspecialchars(addslashes($_POST['magicPicture'])); $magicName = htmlspecialchars(addslashes($_POST['magicName'])); $magicDescription = htmlspecialchars(addslashes($_POST['magicDescription'])); $magicType = htmlspecialchars(addslashes($_POST['magicType'])); $magicEffect = htmlspecialchars(addslashes($_POST['magicEffect'])); $magicMPCost = htmlspecialchars(addslashes($_POST['magicMPCost'])); $magicPrice = htmlspecialchars(addslashes($_POST['magicPrice'])); addMagic($bdd, $magicPicture, $magicName, $magicDescription, $magicType, $magicEffect, $magicMPCost, $magicPrice); ?> <?php echo $amagics21; ?> <br> <form method="POST" action="index.php"> <input class="btn btn-success" type="submit" value="Ok"> </form> <br/> <?php require_once $_SESSION['File_Root'] . '/HTML/Footer.php';