* @copyright 2019 MyAAC * @link https://my-aac.org */ defined('MYAAC') or die('Direct access not allowed!'); $title = 'Player editor'; $player_base = BASE_URL . 'admin/?p=players'; require_once LIBS . 'forum.php'; $skills = array( POT::SKILL_FIST => array('Fist fighting', 'fist'), POT::SKILL_CLUB => array('Club fighting', 'club'), POT::SKILL_SWORD => array('Sword fighting', 'sword'), POT::SKILL_AXE => array('Axe fighting', 'axe'), POT::SKILL_DIST => array('Distance fighting', 'dist'), POT::SKILL_SHIELD => array('Shielding', 'shield'), POT::SKILL_FISH => array('Fishing', 'fish') ); $hasBlessingsColumn = $db->hasColumn('players', 'blessings'); $hasBlessingColumn = $db->hasColumn('players', 'blessings1'); $hasLookAddons = $db->hasColumn('players', 'lookaddons'); $skull_type = array("None", "Yellow", "Green", "White", "Red", "Black", "Orange"); ?> query('SELECT `id` FROM `players` WHERE `name` = ' . $db->quote($search_player)); if ($query->rowCount() == 1) { $query = $query->fetch(); $id = (int)$query['id']; } else { $query = $db->query('SELECT `id`, `name` FROM `players` WHERE `name` LIKE ' . $db->quote('%' . $search_player . '%')); if ($query->rowCount() > 0 && $query->rowCount() <= 10) { $str_construct = 'Do you mean?