From 76bfab13038f70ed2fe7935182dc193b6f2b6e0d Mon Sep 17 00:00:00 2001 From: SRNT-GG <95472530+SRNT-GG@users.noreply.github.com> Date: Thu, 15 Jun 2023 20:53:55 +0200 Subject: [PATCH] WIP - Removing unneccessary closing tags to prevent potential issues. (#223) * Part 1 Removing closing tags when no HTML or other output comes after the last PHP codeblock. * Further removals * nothing --------- Co-authored-by: slawkens --- admin/includes/functions.php | 3 ++- admin/pages/pages.php | 2 -- admin/pages/statistics.php | 1 - admin/pages/version.php | 1 - admin/tools/phpinfo.php | 1 - install/includes/config.php | 1 - install/steps/2-license.php | 1 - install/steps/4-config.php | 1 - system/counter.php | 1 - system/init.php | 2 +- system/item.php | 1 - system/libs/data.php | 1 - system/libs/pot/E_OTS_ErrorCode.php | 2 -- system/libs/pot/E_OTS_Generic.php | 2 -- system/libs/pot/E_OTS_NotAContainer.php | 2 -- system/libs/pot/E_OTS_OTBMError.php | 2 -- system/libs/pot/E_OTS_ReadOnly.php | 2 -- system/libs/pot/IOTS_Cipher.php | 2 -- system/libs/pot/IOTS_DataDisplay.php | 2 -- system/libs/pot/IOTS_Display.php | 2 -- system/libs/pot/IOTS_GuildAction.php | 2 -- system/libs/pot/OTS_Account.php | 2 -- system/libs/pot/OTS_AccountBans_List.php | 2 -- system/libs/pot/OTS_Admin.php | 2 -- system/libs/pot/OTS_Bans_List.php | 2 -- system/libs/pot/OTS_Base_DB.php | 2 -- system/libs/pot/OTS_BinaryTools.php | 2 -- system/libs/pot/OTS_Container.php | 2 -- system/libs/pot/OTS_FileLoader.php | 2 -- system/libs/pot/OTS_Group.php | 2 -- system/libs/pot/OTS_Guild.php | 2 -- system/libs/pot/OTS_GuildRanks_List.php | 2 -- system/libs/pot/OTS_House.php | 2 -- system/libs/pot/OTS_IPBans_List.php | 2 -- system/libs/pot/OTS_InfoRespond.php | 2 -- system/libs/pot/OTS_ItemsList.php | 2 -- system/libs/pot/OTS_MapCoords.php | 2 -- system/libs/pot/OTS_MonstersList.php | 2 -- system/libs/pot/OTS_Player.php | 2 -- system/libs/pot/OTS_PlayerBans_List.php | 2 -- system/libs/pot/OTS_Row_DAO.php | 2 -- system/libs/pot/OTS_SQLField.php | 2 -- system/libs/pot/OTS_ServerInfo.php | 2 -- system/libs/pot/OTS_Spell.php | 2 -- system/libs/pot/OTS_Toolbox.php | 2 -- system/libs/pot/OTS_XTEA.php | 2 -- system/libs/rfc6238.php | 1 - system/libs/validator.php | 1 - system/locale/de/admin.php | 1 - system/locale/de/main.php | 3 +-- system/locale/en/install.php | 1 - system/locale/pl/admin.php | 1 - system/locale/pl/main.php | 2 +- system/locale/pt_br/install.php | 1 - system/locale/sv/admin.php | 1 - system/locale/sv/main.php | 1 - system/migrations/11.php | 1 - system/migrations/13.php | 3 +-- system/migrations/15.php | 1 - system/migrations/17.php | 1 - system/migrations/19.php | 3 +-- system/migrations/2.php | 1 - system/migrations/20.php | 1 - system/migrations/4.php | 3 +-- system/migrations/6.php | 3 +-- system/migrations/8.php | 3 +-- system/pages/account/change_email.php | 1 - system/pages/account/change_name.php | 2 -- system/pages/account/change_sex.php | 2 -- system/pages/account/lost.php | 1 - system/pages/bugtracker.php | 1 - system/pages/faq.php | 1 - system/pages/forum/edit_post.php | 2 -- system/pages/forum/new_thread.php | 2 -- system/pages/gallery.php | 1 - system/pages/guilds/change_description.php | 2 -- system/pages/guilds/change_motd.php | 2 -- system/pages/guilds/cleanup_players.php | 1 - system/pages/guilds/delete_by_admin.php | 2 -- system/pages/guilds/delete_rank.php | 2 -- system/pages/guilds/leave.php | 2 -- system/pages/guilds/pass_leadership.php | 2 -- system/pages/polls.php | 1 - system/pages/server_info.php | 3 --- system/pages/team.php | 1 - templates/tibiacom/index.php | 1 - tools/news_preview.php | 2 -- tools/signature/gesior.php | 3 +-- tools/signature/mango.php | 1 - 89 files changed, 11 insertions(+), 144 deletions(-) diff --git a/admin/includes/functions.php b/admin/includes/functions.php index ab604f7621..620272f5bd 100644 --- a/admin/includes/functions.php +++ b/admin/includes/functions.php @@ -1 +1,2 @@ - \ No newline at end of file + diff --git a/admin/pages/statistics.php b/admin/pages/statistics.php index 17d8118f16..b740c21764 100644 --- a/admin/pages/statistics.php +++ b/admin/pages/statistics.php @@ -36,4 +36,3 @@ 'account_type' => (USE_ACCOUNT_NAME ? 'name' : 'number'), 'points' => $points )); -?> \ No newline at end of file diff --git a/admin/pages/version.php b/admin/pages/version.php index e643e7284f..64f673c833 100644 --- a/admin/pages/version.php +++ b/admin/pages/version.php @@ -47,4 +47,3 @@ function version_revert($version) $release = $version; return $major . '.' . $minor . '.' . $release; }*/ -?> diff --git a/admin/tools/phpinfo.php b/admin/tools/phpinfo.php index 96a9aad9ec..cd0432797c 100644 --- a/admin/tools/phpinfo.php +++ b/admin/tools/phpinfo.php @@ -13,4 +13,3 @@ die('phpinfo() disabled on this web server.'); phpinfo(); -?> diff --git a/install/includes/config.php b/install/includes/config.php index 380fff7dfa..5d9ae07a93 100644 --- a/install/includes/config.php +++ b/install/includes/config.php @@ -38,4 +38,3 @@ $error = true; } } -?> \ No newline at end of file diff --git a/install/steps/2-license.php b/install/steps/2-license.php index e84ce0e63e..4976dd70ff 100644 --- a/install/steps/2-license.php +++ b/install/steps/2-license.php @@ -5,4 +5,3 @@ 'license' => file_get_contents(BASE . 'LICENSE'), 'buttons' => next_buttons() )); -?> diff --git a/install/steps/4-config.php b/install/steps/4-config.php index b1555201eb..325b97f1b4 100644 --- a/install/steps/4-config.php +++ b/install/steps/4-config.php @@ -18,4 +18,3 @@ 'errors' => isset($errors) ? $errors : null, 'buttons' => next_buttons() )); -?> \ No newline at end of file diff --git a/system/counter.php b/system/counter.php index ada05903c6..63905ba231 100644 --- a/system/counter.php +++ b/system/counter.php @@ -51,4 +51,3 @@ updateDatabaseConfig('views_counter', $views_counter); // update counter } } -?> diff --git a/system/init.php b/system/init.php index 056bbd4079..2815f79157 100644 --- a/system/init.php +++ b/system/init.php @@ -122,7 +122,7 @@ $config['data_path'] = $foundValue; unset($foundValue); -// new config values for compability +// new config values for compatibility if(!isset($config['highscores_ids_hidden']) || count($config['highscores_ids_hidden']) == 0) { $config['highscores_ids_hidden'] = array(0); } diff --git a/system/item.php b/system/item.php index 4d2133601c..66d4bfc5d1 100644 --- a/system/item.php +++ b/system/item.php @@ -58,4 +58,3 @@ function outputItem($id = 100, $count = 1) $file_name = Items_Images::$outputDir . $file_name . '.gif'; readfile($file_name); } -?> diff --git a/system/libs/data.php b/system/libs/data.php index 64d93f7807..af66744809 100644 --- a/system/libs/data.php +++ b/system/libs/data.php @@ -41,4 +41,3 @@ public function update($data, $where) return $db->update($this->table, $data, $where); } } -?> diff --git a/system/libs/pot/E_OTS_ErrorCode.php b/system/libs/pot/E_OTS_ErrorCode.php index f5bbd2fcdc..451e5a07da 100644 --- a/system/libs/pot/E_OTS_ErrorCode.php +++ b/system/libs/pot/E_OTS_ErrorCode.php @@ -32,5 +32,3 @@ public function __construct($code, $message = '') } /**#@-*/ - -?> diff --git a/system/libs/pot/E_OTS_Generic.php b/system/libs/pot/E_OTS_Generic.php index 3ca0a914c9..7a95d67508 100644 --- a/system/libs/pot/E_OTS_Generic.php +++ b/system/libs/pot/E_OTS_Generic.php @@ -36,5 +36,3 @@ class E_OTS_Generic extends E_OTS_ErrorCode } /**#@-*/ - -?> diff --git a/system/libs/pot/E_OTS_NotAContainer.php b/system/libs/pot/E_OTS_NotAContainer.php index 3a8d224bcf..8285691fc9 100644 --- a/system/libs/pot/E_OTS_NotAContainer.php +++ b/system/libs/pot/E_OTS_NotAContainer.php @@ -22,5 +22,3 @@ class E_OTS_NotAContainer extends Exception } /**#@-*/ - -?> diff --git a/system/libs/pot/E_OTS_OTBMError.php b/system/libs/pot/E_OTS_OTBMError.php index d84d740ca4..9ab1228d20 100644 --- a/system/libs/pot/E_OTS_OTBMError.php +++ b/system/libs/pot/E_OTS_OTBMError.php @@ -32,5 +32,3 @@ class E_OTS_OTBMError extends E_OTS_ErrorCode } /**#@-*/ - -?> diff --git a/system/libs/pot/E_OTS_ReadOnly.php b/system/libs/pot/E_OTS_ReadOnly.php index 003d12af60..5fb3b39b24 100644 --- a/system/libs/pot/E_OTS_ReadOnly.php +++ b/system/libs/pot/E_OTS_ReadOnly.php @@ -22,5 +22,3 @@ class E_OTS_ReadOnly extends Exception } /**#@-*/ - -?> diff --git a/system/libs/pot/IOTS_Cipher.php b/system/libs/pot/IOTS_Cipher.php index 82044cc806..542b4abb51 100644 --- a/system/libs/pot/IOTS_Cipher.php +++ b/system/libs/pot/IOTS_Cipher.php @@ -37,5 +37,3 @@ public function decrypt($message); } /**#@-*/ - -?> diff --git a/system/libs/pot/IOTS_DataDisplay.php b/system/libs/pot/IOTS_DataDisplay.php index 7c5abc2c70..359dc1a62b 100644 --- a/system/libs/pot/IOTS_DataDisplay.php +++ b/system/libs/pot/IOTS_DataDisplay.php @@ -89,5 +89,3 @@ public function displaySpellsList(OTS_SpellsList $spellsList); } /**#@-*/ - -?> diff --git a/system/libs/pot/IOTS_Display.php b/system/libs/pot/IOTS_Display.php index cb2d8e90d6..3b75d53745 100644 --- a/system/libs/pot/IOTS_Display.php +++ b/system/libs/pot/IOTS_Display.php @@ -96,5 +96,3 @@ public function displayGuildRanksList(OTS_GuildRanks_List $guildRanksList); } /**#@-*/ - -?> diff --git a/system/libs/pot/IOTS_GuildAction.php b/system/libs/pot/IOTS_GuildAction.php index 7ed97f947b..680025cd91 100644 --- a/system/libs/pot/IOTS_GuildAction.php +++ b/system/libs/pot/IOTS_GuildAction.php @@ -67,5 +67,3 @@ public function submitRequest(OTS_Player $player); } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Account.php b/system/libs/pot/OTS_Account.php index d5b429615d..9a6b39a796 100644 --- a/system/libs/pot/OTS_Account.php +++ b/system/libs/pot/OTS_Account.php @@ -1198,5 +1198,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_AccountBans_List.php b/system/libs/pot/OTS_AccountBans_List.php index f368740903..fdd2f92389 100644 --- a/system/libs/pot/OTS_AccountBans_List.php +++ b/system/libs/pot/OTS_AccountBans_List.php @@ -34,5 +34,3 @@ public function __construct() $this->setFilter($filter); } } - -?> diff --git a/system/libs/pot/OTS_Admin.php b/system/libs/pot/OTS_Admin.php index 3507e10d32..7530d6ef07 100644 --- a/system/libs/pot/OTS_Admin.php +++ b/system/libs/pot/OTS_Admin.php @@ -735,5 +735,3 @@ public function __wakeup() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Bans_List.php b/system/libs/pot/OTS_Bans_List.php index 5f58788e43..8eb59df6d4 100644 --- a/system/libs/pot/OTS_Bans_List.php +++ b/system/libs/pot/OTS_Bans_List.php @@ -100,5 +100,3 @@ public function current() } } } - -?> diff --git a/system/libs/pot/OTS_Base_DB.php b/system/libs/pot/OTS_Base_DB.php index f97745b402..21d6f75669 100644 --- a/system/libs/pot/OTS_Base_DB.php +++ b/system/libs/pot/OTS_Base_DB.php @@ -265,5 +265,3 @@ public function getLog() { } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_BinaryTools.php b/system/libs/pot/OTS_BinaryTools.php index 7e6a86e5d0..84fbf54c81 100644 --- a/system/libs/pot/OTS_BinaryTools.php +++ b/system/libs/pot/OTS_BinaryTools.php @@ -146,5 +146,3 @@ public static function int2Bin($number) } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Container.php b/system/libs/pot/OTS_Container.php index 7b93570fbf..ff910401e9 100644 --- a/system/libs/pot/OTS_Container.php +++ b/system/libs/pot/OTS_Container.php @@ -149,5 +149,3 @@ public function __clone() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_FileLoader.php b/system/libs/pot/OTS_FileLoader.php index 8f86712ecd..77f184f30f 100644 --- a/system/libs/pot/OTS_FileLoader.php +++ b/system/libs/pot/OTS_FileLoader.php @@ -357,5 +357,3 @@ public function __set($name, $value) } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Group.php b/system/libs/pot/OTS_Group.php index 19f770f15d..d094d36587 100644 --- a/system/libs/pot/OTS_Group.php +++ b/system/libs/pot/OTS_Group.php @@ -671,5 +671,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Guild.php b/system/libs/pot/OTS_Guild.php index 98dd47cfe1..bab363a8b7 100644 --- a/system/libs/pot/OTS_Guild.php +++ b/system/libs/pot/OTS_Guild.php @@ -837,5 +837,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_GuildRanks_List.php b/system/libs/pot/OTS_GuildRanks_List.php index f2f9e57e59..aec6114a0a 100644 --- a/system/libs/pot/OTS_GuildRanks_List.php +++ b/system/libs/pot/OTS_GuildRanks_List.php @@ -72,5 +72,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_House.php b/system/libs/pot/OTS_House.php index e6aca32250..12a8f1cbec 100644 --- a/system/libs/pot/OTS_House.php +++ b/system/libs/pot/OTS_House.php @@ -529,5 +529,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_IPBans_List.php b/system/libs/pot/OTS_IPBans_List.php index dd614e9a1b..1fdfc0ce94 100644 --- a/system/libs/pot/OTS_IPBans_List.php +++ b/system/libs/pot/OTS_IPBans_List.php @@ -34,5 +34,3 @@ public function __construct() $this->setFilter($filter); } } - -?> diff --git a/system/libs/pot/OTS_InfoRespond.php b/system/libs/pot/OTS_InfoRespond.php index f64fca05f9..6e452371c6 100644 --- a/system/libs/pot/OTS_InfoRespond.php +++ b/system/libs/pot/OTS_InfoRespond.php @@ -387,5 +387,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_ItemsList.php b/system/libs/pot/OTS_ItemsList.php index 1865117a8f..30465a9d4d 100644 --- a/system/libs/pot/OTS_ItemsList.php +++ b/system/libs/pot/OTS_ItemsList.php @@ -676,5 +676,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_MapCoords.php b/system/libs/pot/OTS_MapCoords.php index dfe1a1cd6b..738b0bead4 100644 --- a/system/libs/pot/OTS_MapCoords.php +++ b/system/libs/pot/OTS_MapCoords.php @@ -130,5 +130,3 @@ public function __get($name) } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_MonstersList.php b/system/libs/pot/OTS_MonstersList.php index fb51a08506..f7d1b2da9d 100644 --- a/system/libs/pot/OTS_MonstersList.php +++ b/system/libs/pot/OTS_MonstersList.php @@ -299,5 +299,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Player.php b/system/libs/pot/OTS_Player.php index 2143c12e76..7fd96fecc4 100644 --- a/system/libs/pot/OTS_Player.php +++ b/system/libs/pot/OTS_Player.php @@ -3627,5 +3627,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_PlayerBans_List.php b/system/libs/pot/OTS_PlayerBans_List.php index 7e06c7caee..f9826f78fb 100644 --- a/system/libs/pot/OTS_PlayerBans_List.php +++ b/system/libs/pot/OTS_PlayerBans_List.php @@ -34,5 +34,3 @@ public function __construct() $this->setFilter($filter); } } - -?> diff --git a/system/libs/pot/OTS_Row_DAO.php b/system/libs/pot/OTS_Row_DAO.php index c1a0985893..2a0a100c0d 100644 --- a/system/libs/pot/OTS_Row_DAO.php +++ b/system/libs/pot/OTS_Row_DAO.php @@ -75,5 +75,3 @@ abstract public function find($name); } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_SQLField.php b/system/libs/pot/OTS_SQLField.php index 2f7ac74ed9..ba2bb55c9b 100644 --- a/system/libs/pot/OTS_SQLField.php +++ b/system/libs/pot/OTS_SQLField.php @@ -121,5 +121,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_ServerInfo.php b/system/libs/pot/OTS_ServerInfo.php index eb153c932c..fd06749e61 100644 --- a/system/libs/pot/OTS_ServerInfo.php +++ b/system/libs/pot/OTS_ServerInfo.php @@ -227,5 +227,3 @@ public function __get($name) } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Spell.php b/system/libs/pot/OTS_Spell.php index 0ec51bdf81..419ee292c3 100644 --- a/system/libs/pot/OTS_Spell.php +++ b/system/libs/pot/OTS_Spell.php @@ -482,5 +482,3 @@ public function __toString() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_Toolbox.php b/system/libs/pot/OTS_Toolbox.php index 4d22d0dd14..980e5cb599 100644 --- a/system/libs/pot/OTS_Toolbox.php +++ b/system/libs/pot/OTS_Toolbox.php @@ -113,5 +113,3 @@ public static function bannedAccounts() } /**#@-*/ - -?> diff --git a/system/libs/pot/OTS_XTEA.php b/system/libs/pot/OTS_XTEA.php index 96ee755348..ff5a109567 100644 --- a/system/libs/pot/OTS_XTEA.php +++ b/system/libs/pot/OTS_XTEA.php @@ -151,5 +151,3 @@ public function decrypt($message) } /**#@-*/ - -?> diff --git a/system/libs/rfc6238.php b/system/libs/rfc6238.php index 579f08f2d2..5effedd308 100644 --- a/system/libs/rfc6238.php +++ b/system/libs/rfc6238.php @@ -282,4 +282,3 @@ private static function oath_truncate($hash, $length = 6, $debug=false) { return $result; } } -?> diff --git a/system/libs/validator.php b/system/libs/validator.php index 38db7068ee..91f71c24df 100644 --- a/system/libs/validator.php +++ b/system/libs/validator.php @@ -451,4 +451,3 @@ public static function getLastError() { return self::$lastError; } } -?> diff --git a/system/locale/de/admin.php b/system/locale/de/admin.php index 8a128216dd..dae5fdeeff 100644 --- a/system/locale/de/admin.php +++ b/system/locale/de/admin.php @@ -6,4 +6,3 @@ * @author Slawkens */ $locale['title'] = 'MyAAC Admin'; -?> diff --git a/system/locale/de/main.php b/system/locale/de/main.php index 3f9b247964..e448257206 100644 --- a/system/locale/de/main.php +++ b/system/locale/de/main.php @@ -11,5 +11,4 @@ $locale['direction']= 'ltr'; $locale['error404'] = 'Diese Seite konnte nicht gefunden werden.'; -$locale['news'] = 'Neuesten Nachrichten'; -?> \ No newline at end of file +$locale['news'] = 'Neuesten Nachrichten'; \ No newline at end of file diff --git a/system/locale/en/install.php b/system/locale/en/install.php index f856dcbf8b..3de8589667 100644 --- a/system/locale/en/install.php +++ b/system/locale/en/install.php @@ -131,4 +131,3 @@ $locale['step_finish_desc'] = 'Congratulations! MyAAC is ready to use!
You can now login to $ADMIN_PANEL$, or visit $HOMEPAGE$.

Please delete install/ directory.

Post bugs and suggestions at $LINK$, thanks!'; -?> diff --git a/system/locale/pl/admin.php b/system/locale/pl/admin.php index 91adfc6036..8431b43894 100644 --- a/system/locale/pl/admin.php +++ b/system/locale/pl/admin.php @@ -6,4 +6,3 @@ * @author Slawkens */ $locale['title'] = 'MyAAC Admin'; -?> diff --git a/system/locale/pl/main.php b/system/locale/pl/main.php index 200bba229c..b86b331f45 100644 --- a/system/locale/pl/main.php +++ b/system/locale/pl/main.php @@ -12,4 +12,4 @@ $locale['error404'] = 'Strona nie została odnaleziona.'; $locale['news'] = 'Ostatnie newsy'; -$locale['loaded_in_ms'] = 'w $TIME$ ms'; \ No newline at end of file +$locale['loaded_in_ms'] = 'w $TIME$ ms'; diff --git a/system/locale/pt_br/install.php b/system/locale/pt_br/install.php index e47faedeba..3a9ca9cc74 100644 --- a/system/locale/pt_br/install.php +++ b/system/locale/pt_br/install.php @@ -118,4 +118,3 @@ $locale['step_finish_title'] = 'Instalação terminada!'; $locale['step_finish_desc'] = 'Parabéns! MyAAC está pronto para uso!
Agora você pode fazer login em $ADMIN_PANEL$ ou visitar $HOMEPAGE$.

Por favor remova a pasta install/.

Postar bugs e sugestões em $LINK$, obrigado!'; -?> diff --git a/system/locale/sv/admin.php b/system/locale/sv/admin.php index 69f4f20abe..8fa07f7430 100644 --- a/system/locale/sv/admin.php +++ b/system/locale/sv/admin.php @@ -6,4 +6,3 @@ * @author Sizaro */ $locale['title'] = 'MyAAC Admin'; -?> diff --git a/system/locale/sv/main.php b/system/locale/sv/main.php index fc7141909e..83f6bb8423 100644 --- a/system/locale/sv/main.php +++ b/system/locale/sv/main.php @@ -12,4 +12,3 @@ $locale['error404'] = 'Sidan kunde inte hittas.'; $locale['news'] = 'Senaste nyheterna'; -?> \ No newline at end of file diff --git a/system/migrations/11.php b/system/migrations/11.php index dc335577be..845f9e67fc 100644 --- a/system/migrations/11.php +++ b/system/migrations/11.php @@ -17,4 +17,3 @@ 'thumb' => str_replace('/screenshots/', '/gallery/', $item['thumb']), ), array('id' => $item['id'])); } -?> diff --git a/system/migrations/13.php b/system/migrations/13.php index 71d3735ca1..4eee77f3c4 100644 --- a/system/migrations/13.php +++ b/system/migrations/13.php @@ -1,4 +1,3 @@ hasColumn(TABLE_PREFIX . 'spells', 'spell')) - $db->query("ALTER TABLE `" . TABLE_PREFIX . "spells` DROP COLUMN `spell`;"); -?> \ No newline at end of file + $db->query("ALTER TABLE `" . TABLE_PREFIX . "spells` DROP COLUMN `spell`;"); \ No newline at end of file diff --git a/system/migrations/15.php b/system/migrations/15.php index 28996d8a38..971587ec13 100644 --- a/system/migrations/15.php +++ b/system/migrations/15.php @@ -8,4 +8,3 @@ if(!$db->hasColumn(TABLE_PREFIX . 'forum_boards', 'access')) { $db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `access` TINYINT(1) NOT NULL DEFAULT 0 AFTER `guild`;"); } -?> \ No newline at end of file diff --git a/system/migrations/17.php b/system/migrations/17.php index e4b1667c42..220bc90bee 100644 --- a/system/migrations/17.php +++ b/system/migrations/17.php @@ -86,4 +86,3 @@ INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Shop History', 'gifts/history', 6, 2); "); } -?> \ No newline at end of file diff --git a/system/migrations/19.php b/system/migrations/19.php index 50baa271ba..81c818d2b7 100644 --- a/system/migrations/19.php +++ b/system/migrations/19.php @@ -1,3 +1,2 @@ \ No newline at end of file +// this migration has been removed, but file kept for compatibility diff --git a/system/migrations/2.php b/system/migrations/2.php index db5fd70f64..90d9a61053 100644 --- a/system/migrations/2.php +++ b/system/migrations/2.php @@ -3,4 +3,3 @@ $db->query("ALTER TABLE `" . TABLE_PREFIX . "movies` MODIFY `title` VARCHAR(100) NOT NULL DEFAULT '';"); $db->query("ALTER TABLE `" . TABLE_PREFIX . "news` MODIFY `title` VARCHAR(100) NOT NULL DEFAULT '';"); $db->query("ALTER TABLE `" . TABLE_PREFIX . "news` MODIFY `body` TEXT NOT NULL DEFAULT '';"); -?> diff --git a/system/migrations/20.php b/system/migrations/20.php index 0533b54063..d0012fdea3 100644 --- a/system/migrations/20.php +++ b/system/migrations/20.php @@ -45,4 +45,3 @@ function databaseMigration20(&$content = '') { file_put_contents($config_file, $content, FILE_APPEND); return true; } -?> \ No newline at end of file diff --git a/system/migrations/4.php b/system/migrations/4.php index 80bbc4a02b..db17feb121 100644 --- a/system/migrations/4.php +++ b/system/migrations/4.php @@ -1,4 +1,3 @@ hasColumn(TABLE_PREFIX . 'monsters', 'id')) - $db->query("ALTER TABLE `" . TABLE_PREFIX . "monsters` ADD `id` int(11) NOT NULL AUTO_INCREMENT primary key FIRST;"); -?> \ No newline at end of file + $db->query("ALTER TABLE `" . TABLE_PREFIX . "monsters` ADD `id` int(11) NOT NULL AUTO_INCREMENT primary key FIRST;"); \ No newline at end of file diff --git a/system/migrations/6.php b/system/migrations/6.php index ed5329d0e6..e287d55aba 100644 --- a/system/migrations/6.php +++ b/system/migrations/6.php @@ -1,4 +1,3 @@ hasColumn(TABLE_PREFIX . 'hooks', 'enabled')) - $db->query("ALTER TABLE `" . TABLE_PREFIX . "hooks` ADD `enabled` INT(1) NOT NULL DEFAULT 1;"); -?> \ No newline at end of file + $db->query("ALTER TABLE `" . TABLE_PREFIX . "hooks` ADD `enabled` INT(1) NOT NULL DEFAULT 1;"); \ No newline at end of file diff --git a/system/migrations/8.php b/system/migrations/8.php index a04331a880..4785e23b4a 100644 --- a/system/migrations/8.php +++ b/system/migrations/8.php @@ -14,5 +14,4 @@ foreach($boards as $id => $board) $db->query('UPDATE `' . TABLE_PREFIX . 'forum_boards` SET `ordering` = ' . $id . ' WHERE `name` = ' . $db->quote($board)); - } -?> \ No newline at end of file + } \ No newline at end of file diff --git a/system/pages/account/change_email.php b/system/pages/account/change_email.php index 2368a28421..3bc8edd7b3 100644 --- a/system/pages/account/change_email.php +++ b/system/pages/account/change_email.php @@ -166,4 +166,3 @@ 'custom_buttons' => $custom_buttons )); } -?> diff --git a/system/pages/account/change_name.php b/system/pages/account/change_name.php index ab7bd32622..448e730c4e 100644 --- a/system/pages/account/change_name.php +++ b/system/pages/account/change_name.php @@ -112,5 +112,3 @@ )); } } - -?> diff --git a/system/pages/account/change_sex.php b/system/pages/account/change_sex.php index c67ac6082e..868cf24f93 100644 --- a/system/pages/account/change_sex.php +++ b/system/pages/account/change_sex.php @@ -91,5 +91,3 @@ )); } } - -?> diff --git a/system/pages/account/lost.php b/system/pages/account/lost.php index a474540c47..3ea0957e8d 100644 --- a/system/pages/account/lost.php +++ b/system/pages/account/lost.php @@ -546,4 +546,3 @@ function validate_form(thisform) ' . $twig->render('buttons.submit.html.twig') . ' '; } -?> diff --git a/system/pages/bugtracker.php b/system/pages/bugtracker.php index a7cffcf0ec..ac37becd62 100644 --- a/system/pages/bugtracker.php +++ b/system/pages/bugtracker.php @@ -339,4 +339,3 @@ { echo '

[ADMIN PANEL]'; } -?> diff --git a/system/pages/faq.php b/system/pages/faq.php index f30e79145d..5d71aa3c66 100644 --- a/system/pages/faq.php +++ b/system/pages/faq.php @@ -185,4 +185,3 @@ static public function move($id, $i, &$errors) return !count($errors); } } -?> diff --git a/system/pages/forum/edit_post.php b/system/pages/forum/edit_post.php index 45fd675b83..d3f95c4517 100644 --- a/system/pages/forum/edit_post.php +++ b/system/pages/forum/edit_post.php @@ -114,5 +114,3 @@ } else echo "
Your account is banned, deleted or you don't have any player with level " . $config['forum_level_required'] . " on your account. You can't post."; - -?> diff --git a/system/pages/forum/new_thread.php b/system/pages/forum/new_thread.php index 4db06c631f..c3b688adc3 100644 --- a/system/pages/forum/new_thread.php +++ b/system/pages/forum/new_thread.php @@ -103,5 +103,3 @@ } else echo 'Your account is banned, deleted or you don\'t have any player with level '.$config['forum_level_required'].' on your account. You can\'t post.'; - -?> diff --git a/system/pages/gallery.php b/system/pages/gallery.php index c893ce90c6..b6e2b07ffb 100644 --- a/system/pages/gallery.php +++ b/system/pages/gallery.php @@ -312,4 +312,3 @@ static public function generateThumb($id, $file, &$errors) return !count($errors); } } -?> diff --git a/system/pages/guilds/change_description.php b/system/pages/guilds/change_description.php index b4e787ee91..9f6fc0dc5f 100644 --- a/system/pages/guilds/change_description.php +++ b/system/pages/guilds/change_description.php @@ -72,5 +72,3 @@ 'action' => '?subtopic=guilds' )); } - -?> diff --git a/system/pages/guilds/change_motd.php b/system/pages/guilds/change_motd.php index c777548df0..845814857e 100644 --- a/system/pages/guilds/change_motd.php +++ b/system/pages/guilds/change_motd.php @@ -75,5 +75,3 @@ 'action' => '?subtopic=guilds' )); } - -?> diff --git a/system/pages/guilds/cleanup_players.php b/system/pages/guilds/cleanup_players.php index 30b1e8af43..61b1ce4978 100644 --- a/system/pages/guilds/cleanup_players.php +++ b/system/pages/guilds/cleanup_players.php @@ -68,4 +68,3 @@ echo "0 players found."; $twig->display('guilds.back_button.html.twig'); -?> diff --git a/system/pages/guilds/delete_by_admin.php b/system/pages/guilds/delete_by_admin.php index 3e083c8ac8..7da54aea54 100644 --- a/system/pages/guilds/delete_by_admin.php +++ b/system/pages/guilds/delete_by_admin.php @@ -66,5 +66,3 @@ 'action' => '?subtopic=guilds' )); } - -?> diff --git a/system/pages/guilds/delete_rank.php b/system/pages/guilds/delete_rank.php index 6a8f642cb8..48eeba4df7 100644 --- a/system/pages/guilds/delete_rank.php +++ b/system/pages/guilds/delete_rank.php @@ -125,5 +125,3 @@ 'action' => '?subtopic=guilds' )); } - -?> diff --git a/system/pages/guilds/leave.php b/system/pages/guilds/leave.php index 892deb8950..9a11595d25 100644 --- a/system/pages/guilds/leave.php +++ b/system/pages/guilds/leave.php @@ -114,5 +114,3 @@ )); } } - -?> \ No newline at end of file diff --git a/system/pages/guilds/pass_leadership.php b/system/pages/guilds/pass_leadership.php index 462ac9ec24..d5f0ed2081 100644 --- a/system/pages/guilds/pass_leadership.php +++ b/system/pages/guilds/pass_leadership.php @@ -117,5 +117,3 @@ echo '
' . $twig->render('buttons.back.html.twig') . '
'; } - -?> diff --git a/system/pages/polls.php b/system/pages/polls.php index c31b61cba8..dcc781c20d 100644 --- a/system/pages/polls.php +++ b/system/pages/polls.php @@ -369,4 +369,3 @@ function slaw_getPercentBar($percent) echo 'This poll doesn\'t exist.
'; echo '
Go to list of polls'; } -?> diff --git a/system/pages/server_info.php b/system/pages/server_info.php index 7c2a519e01..b750c3eeef 100644 --- a/system/pages/server_info.php +++ b/system/pages/server_info.php @@ -108,6 +108,3 @@ 'finalBanishmentLength' => isset($config['lua']['final_banishment_length']) ? eval('return (' . $config['lua']['final_banishment_length'] . ') / (24 * 60 * 60);') : null, 'ipBanishmentLength' => isset($config['lua']['ip_banishment_length']) ? eval('return (' . $config['lua']['ip_banishment_length'] . ') / (24 * 60 * 60);') : null, )); -?> - - diff --git a/system/pages/team.php b/system/pages/team.php index 2e410e1241..fbc0df990f 100644 --- a/system/pages/team.php +++ b/system/pages/team.php @@ -74,4 +74,3 @@ $twig->display('team.html.twig', array( 'groupmember' => $groupMember )); -?> \ No newline at end of file diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index 989a05cabb..539453c9ab 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -459,4 +459,3 @@ function logo_monster() global $config; return str_replace(" ", "", trim(strtolower($config['logo_monster']))); } -?> diff --git a/tools/news_preview.php b/tools/news_preview.php index 7fa1e125c9..a1709e812c 100644 --- a/tools/news_preview.php +++ b/tools/news_preview.php @@ -112,5 +112,3 @@ function error_($desc) { )); exit(); } - -?> \ No newline at end of file diff --git a/tools/signature/gesior.php b/tools/signature/gesior.php index d3b4edceec..a9b88a25ee 100644 --- a/tools/signature/gesior.php +++ b/tools/signature/gesior.php @@ -12,7 +12,7 @@ $vocation = 'Unknown vocation'; if(isset($config['vocations'][$player->getVocation()])) $vocation = $config['vocations'][$player->getVocation()]; - + imagettftext($image , $fontsize, 0, 20, 52, $color, $font, 'Level:'); imagettftext($image , $fontsize, 0, 70, 52, $color, $font, $player->getLevel() . ' ' . $vocation); @@ -26,4 +26,3 @@ imagettftext($image , $fontsize, 0, 100, 95, $color, $font, (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.')); imagepng($image, SIGNATURES_CACHE . $player->getID() . '.png'); imagedestroy($image); -?> \ No newline at end of file diff --git a/tools/signature/mango.php b/tools/signature/mango.php index acdf37b3a6..f00f7f1834 100644 --- a/tools/signature/mango.php +++ b/tools/signature/mango.php @@ -168,4 +168,3 @@ function getExpToLevel( $level ) } $MadGD->save($player->getID()); -?>