diff --git a/system/pages/creatures.php b/system/pages/creatures.php index dda4544b..dc8b4514 100644 --- a/system/pages/creatures.php +++ b/system/pages/creatures.php @@ -23,26 +23,6 @@ $title = "Creatures"; hasErrors()) - error('There were some problems loading your monsters.xml file. Please check system/logs/error.log for more info.'); - } else { - error(Creatures::getLastError()); - } -} - -if ($canEdit) { - ?> -
- - -
- query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1 ORDER BY name asc'); @@ -170,4 +150,4 @@ if (empty($_REQUEST['creature'])) { - \ No newline at end of file + diff --git a/system/pages/spells.php b/system/pages/spells.php index eb747862..0ec277de 100644 --- a/system/pages/spells.php +++ b/system/pages/spells.php @@ -11,15 +11,6 @@ defined('MYAAC') or die('Direct access not allowed!'); $title = 'Spells'; -$canEdit = hasFlag(FLAG_CONTENT_SPELLS) || admin(); -if(isset($_POST['reload_spells']) && $canEdit) -{ - require LIBS . 'spells.php'; - if(!Spells::loadFromXML(true)) { - error(Spells::getLastError()); - } -} - if(isset($_REQUEST['vocation_id'])) { $vocation_id = $_REQUEST['vocation_id']; if($vocation_id == 'all') { @@ -90,4 +81,4 @@ $twig->display('spells.html.twig', array( } ); - \ No newline at end of file + diff --git a/system/templates/spells.html.twig b/system/templates/spells.html.twig index 1c76e8f7..33aa3432 100644 --- a/system/templates/spells.html.twig +++ b/system/templates/spells.html.twig @@ -32,13 +32,6 @@ } -{% if canEdit %} -
- - -
-{% endif %} -
@@ -198,4 +191,4 @@
- \ No newline at end of file +