mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
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 <slawkens@gmail.com>
This commit is contained in:
parent
171c114b0f
commit
76bfab1303
@ -1 +1,2 @@
|
|||||||
<?php
// nothing yet here
?>
|
<?php
|
||||||
|
// nothing yet here
|
@ -258,5 +258,3 @@ class Pages
|
|||||||
return !count($errors);
|
return !count($errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -36,4 +36,3 @@ $twig->display('admin.statistics.html.twig', array(
|
|||||||
'account_type' => (USE_ACCOUNT_NAME ? 'name' : 'number'),
|
'account_type' => (USE_ACCOUNT_NAME ? 'name' : 'number'),
|
||||||
'points' => $points
|
'points' => $points
|
||||||
));
|
));
|
||||||
?>
|
|
@ -47,4 +47,3 @@ function version_revert($version)
|
|||||||
$release = $version;
|
$release = $version;
|
||||||
return $major . '.' . $minor . '.' . $release;
|
return $major . '.' . $minor . '.' . $release;
|
||||||
}*/
|
}*/
|
||||||
?>
|
|
||||||
|
@ -13,4 +13,3 @@ if(!function_exists('phpinfo'))
|
|||||||
die('phpinfo() disabled on this web server.');
|
die('phpinfo() disabled on this web server.');
|
||||||
|
|
||||||
phpinfo();
|
phpinfo();
|
||||||
?>
|
|
||||||
|
@ -38,4 +38,3 @@ if(!isset($error) || !$error) {
|
|||||||
$error = true;
|
$error = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
@ -5,4 +5,3 @@ $twig->display('install.license.html.twig', array(
|
|||||||
'license' => file_get_contents(BASE . 'LICENSE'),
|
'license' => file_get_contents(BASE . 'LICENSE'),
|
||||||
'buttons' => next_buttons()
|
'buttons' => next_buttons()
|
||||||
));
|
));
|
||||||
?>
|
|
||||||
|
@ -18,4 +18,3 @@ $twig->display('install.config.html.twig', array(
|
|||||||
'errors' => isset($errors) ? $errors : null,
|
'errors' => isset($errors) ? $errors : null,
|
||||||
'buttons' => next_buttons()
|
'buttons' => next_buttons()
|
||||||
));
|
));
|
||||||
?>
|
|
@ -51,4 +51,3 @@ else
|
|||||||
updateDatabaseConfig('views_counter', $views_counter); // update counter
|
updateDatabaseConfig('views_counter', $views_counter); // update counter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -122,7 +122,7 @@ if(!isset($foundValue)) {
|
|||||||
$config['data_path'] = $foundValue;
|
$config['data_path'] = $foundValue;
|
||||||
unset($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) {
|
if(!isset($config['highscores_ids_hidden']) || count($config['highscores_ids_hidden']) == 0) {
|
||||||
$config['highscores_ids_hidden'] = array(0);
|
$config['highscores_ids_hidden'] = array(0);
|
||||||
}
|
}
|
||||||
|
@ -58,4 +58,3 @@ function outputItem($id = 100, $count = 1)
|
|||||||
$file_name = Items_Images::$outputDir . $file_name . '.gif';
|
$file_name = Items_Images::$outputDir . $file_name . '.gif';
|
||||||
readfile($file_name);
|
readfile($file_name);
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -41,4 +41,3 @@ class Data
|
|||||||
return $db->update($this->table, $data, $where);
|
return $db->update($this->table, $data, $where);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -32,5 +32,3 @@ class E_OTS_ErrorCode extends Exception
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -36,5 +36,3 @@ class E_OTS_Generic extends E_OTS_ErrorCode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -22,5 +22,3 @@ class E_OTS_NotAContainer extends Exception
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -32,5 +32,3 @@ class E_OTS_OTBMError extends E_OTS_ErrorCode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -22,5 +22,3 @@ class E_OTS_ReadOnly extends Exception
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -37,5 +37,3 @@ interface IOTS_Cipher
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -89,5 +89,3 @@ interface IOTS_DataDisplay
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -96,5 +96,3 @@ interface IOTS_Display
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -67,5 +67,3 @@ interface IOTS_GuildAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -1198,5 +1198,3 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -34,5 +34,3 @@ class OTS_AccountBans_List extends OTS_Bans_List
|
|||||||
$this->setFilter($filter);
|
$this->setFilter($filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -735,5 +735,3 @@ class OTS_Admin
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -100,5 +100,3 @@ class OTS_Bans_List extends OTS_Base_List
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -265,5 +265,3 @@ abstract class OTS_Base_DB extends PDO implements IOTS_DB
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -146,5 +146,3 @@ class OTS_BinaryTools
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -149,5 +149,3 @@ class OTS_Container extends OTS_Item implements IteratorAggregate
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -357,5 +357,3 @@ class OTS_FileLoader
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -671,5 +671,3 @@ class OTS_Group extends OTS_Row_DAO implements IteratorAggregate, Countable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -837,5 +837,3 @@ class OTS_Guild extends OTS_Row_DAO implements IteratorAggregate, Countable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -72,5 +72,3 @@ class OTS_GuildRanks_List extends OTS_Base_List
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -529,5 +529,3 @@ class OTS_House extends OTS_Row_DAO
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -34,5 +34,3 @@ class OTS_IPBans_List extends OTS_Bans_List
|
|||||||
$this->setFilter($filter);
|
$this->setFilter($filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -387,5 +387,3 @@ class OTS_InfoRespond extends DOMDocument
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -676,5 +676,3 @@ class OTS_ItemsList extends OTS_FileLoader implements IteratorAggregate, Countab
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -130,5 +130,3 @@ class OTS_MapCoords
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -299,5 +299,3 @@ class OTS_MonstersList implements Iterator, Countable, ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -3627,5 +3627,3 @@ class OTS_Player extends OTS_Row_DAO
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -34,5 +34,3 @@ class OTS_PlayerBans_List extends OTS_Bans_List
|
|||||||
$this->setFilter($filter);
|
$this->setFilter($filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -75,5 +75,3 @@ abstract class OTS_Row_DAO extends OTS_Base_DAO
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -121,5 +121,3 @@ class OTS_SQLField
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -227,5 +227,3 @@ class OTS_ServerInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -482,5 +482,3 @@ class OTS_Spell
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -113,5 +113,3 @@ class OTS_Toolbox
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -151,5 +151,3 @@ class OTS_XTEA implements IOTS_Cipher
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -282,4 +282,3 @@ class TokenAuth6238 {
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -451,4 +451,3 @@ class Validator
|
|||||||
return self::$lastError;
|
return self::$lastError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
* @author Slawkens <slawkens@gmail.com>
|
* @author Slawkens <slawkens@gmail.com>
|
||||||
*/
|
*/
|
||||||
$locale['title'] = 'MyAAC Admin';
|
$locale['title'] = 'MyAAC Admin';
|
||||||
?>
|
|
||||||
|
@ -12,4 +12,3 @@ $locale['direction']= 'ltr';
|
|||||||
|
|
||||||
$locale['error404'] = 'Diese Seite konnte nicht gefunden werden.';
|
$locale['error404'] = 'Diese Seite konnte nicht gefunden werden.';
|
||||||
$locale['news'] = 'Neuesten Nachrichten';
|
$locale['news'] = 'Neuesten Nachrichten';
|
||||||
?>
|
|
@ -131,4 +131,3 @@ $locale['step_finish_title'] = 'Installation finished!';
|
|||||||
$locale['step_finish_desc'] = 'Congratulations! <b>MyAAC</b> is ready to use!<br/>You can now login to $ADMIN_PANEL$, or visit $HOMEPAGE$.<br/><br/>
|
$locale['step_finish_desc'] = 'Congratulations! <b>MyAAC</b> is ready to use!<br/>You can now login to $ADMIN_PANEL$, or visit $HOMEPAGE$.<br/><br/>
|
||||||
<span style="color: red">Please delete install/ directory.</span><br/><br/>
|
<span style="color: red">Please delete install/ directory.</span><br/><br/>
|
||||||
Post bugs and suggestions at $LINK$, thanks!';
|
Post bugs and suggestions at $LINK$, thanks!';
|
||||||
?>
|
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
* @author Slawkens <slawkens@gmail.com>
|
* @author Slawkens <slawkens@gmail.com>
|
||||||
*/
|
*/
|
||||||
$locale['title'] = 'MyAAC Admin';
|
$locale['title'] = 'MyAAC Admin';
|
||||||
?>
|
|
||||||
|
@ -118,4 +118,3 @@ $locale['step_finish'] = 'Finalizar';
|
|||||||
$locale['step_finish_title'] = 'Instalação terminada!';
|
$locale['step_finish_title'] = 'Instalação terminada!';
|
||||||
$locale['step_finish_desc'] = 'Parabéns! <b>MyAAC</b> está pronto para uso!<br/>Agora você pode fazer login em $ADMIN_PANEL$ ou visitar $HOMEPAGE$.<br/><br/>
|
$locale['step_finish_desc'] = 'Parabéns! <b>MyAAC</b> está pronto para uso!<br/>Agora você pode fazer login em $ADMIN_PANEL$ ou visitar $HOMEPAGE$.<br/><br/>
|
||||||
<span style = "color: red">Por favor remova a pasta install/.</span><br/><br/>Postar bugs e sugestões em $LINK$, obrigado!';
|
<span style = "color: red">Por favor remova a pasta install/.</span><br/><br/>Postar bugs e sugestões em $LINK$, obrigado!';
|
||||||
?>
|
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
* @author Sizaro <sizaro@live.se>
|
* @author Sizaro <sizaro@live.se>
|
||||||
*/
|
*/
|
||||||
$locale['title'] = 'MyAAC Admin';
|
$locale['title'] = 'MyAAC Admin';
|
||||||
?>
|
|
||||||
|
@ -12,4 +12,3 @@ $locale['direction']= 'ltr';
|
|||||||
|
|
||||||
$locale['error404'] = 'Sidan kunde inte hittas.';
|
$locale['error404'] = 'Sidan kunde inte hittas.';
|
||||||
$locale['news'] = 'Senaste nyheterna';
|
$locale['news'] = 'Senaste nyheterna';
|
||||||
?>
|
|
@ -17,4 +17,3 @@
|
|||||||
'thumb' => str_replace('/screenshots/', '/gallery/', $item['thumb']),
|
'thumb' => str_replace('/screenshots/', '/gallery/', $item['thumb']),
|
||||||
), array('id' => $item['id']));
|
), array('id' => $item['id']));
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
if($db->hasColumn(TABLE_PREFIX . 'spells', 'spell'))
|
if($db->hasColumn(TABLE_PREFIX . 'spells', 'spell'))
|
||||||
$db->query("ALTER TABLE `" . TABLE_PREFIX . "spells` DROP COLUMN `spell`;");
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "spells` DROP COLUMN `spell`;");
|
||||||
?>
|
|
@ -8,4 +8,3 @@ if(!$db->hasColumn(TABLE_PREFIX . 'forum_boards', 'guild')) {
|
|||||||
if(!$db->hasColumn(TABLE_PREFIX . 'forum_boards', 'access')) {
|
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`;");
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `access` TINYINT(1) NOT NULL DEFAULT 0 AFTER `guild`;");
|
||||||
}
|
}
|
||||||
?>
|
|
@ -86,4 +86,3 @@ INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VA
|
|||||||
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Shop History', 'gifts/history', 6, 2);
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Shop History', 'gifts/history', 6, 2);
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
?>
|
|
@ -1,3 +1,2 @@
|
|||||||
<?php
|
<?php
|
||||||
// this migration has been removed, but file kept for compability
|
// this migration has been removed, but file kept for compatibility
|
||||||
?>
|
|
||||||
|
@ -3,4 +3,3 @@
|
|||||||
$db->query("ALTER TABLE `" . TABLE_PREFIX . "movies` MODIFY `title` VARCHAR(100) NOT NULL DEFAULT '';");
|
$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 `title` VARCHAR(100) NOT NULL DEFAULT '';");
|
||||||
$db->query("ALTER TABLE `" . TABLE_PREFIX . "news` MODIFY `body` TEXT NOT NULL DEFAULT '';");
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "news` MODIFY `body` TEXT NOT NULL DEFAULT '';");
|
||||||
?>
|
|
||||||
|
@ -45,4 +45,3 @@ function databaseMigration20(&$content = '') {
|
|||||||
file_put_contents($config_file, $content, FILE_APPEND);
|
file_put_contents($config_file, $content, FILE_APPEND);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
?>
|
|
@ -1,4 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
if(!$db->hasColumn(TABLE_PREFIX . 'monsters', 'id'))
|
if(!$db->hasColumn(TABLE_PREFIX . 'monsters', 'id'))
|
||||||
$db->query("ALTER TABLE `" . TABLE_PREFIX . "monsters` ADD `id` int(11) NOT NULL AUTO_INCREMENT primary key FIRST;");
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "monsters` ADD `id` int(11) NOT NULL AUTO_INCREMENT primary key FIRST;");
|
||||||
?>
|
|
@ -1,4 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
if(!$db->hasColumn(TABLE_PREFIX . 'hooks', 'enabled'))
|
if(!$db->hasColumn(TABLE_PREFIX . 'hooks', 'enabled'))
|
||||||
$db->query("ALTER TABLE `" . TABLE_PREFIX . "hooks` ADD `enabled` INT(1) NOT NULL DEFAULT 1;");
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "hooks` ADD `enabled` INT(1) NOT NULL DEFAULT 1;");
|
||||||
?>
|
|
@ -15,4 +15,3 @@
|
|||||||
foreach($boards as $id => $board)
|
foreach($boards as $id => $board)
|
||||||
$db->query('UPDATE `' . TABLE_PREFIX . 'forum_boards` SET `ordering` = ' . $id . ' WHERE `name` = ' . $db->quote($board));
|
$db->query('UPDATE `' . TABLE_PREFIX . 'forum_boards` SET `ordering` = ' . $id . ' WHERE `name` = ' . $db->quote($board));
|
||||||
}
|
}
|
||||||
?>
|
|
@ -166,4 +166,3 @@ if(isset($_POST['emailchangecancel']) && $_POST['emailchangecancel'] == 1) {
|
|||||||
'custom_buttons' => $custom_buttons
|
'custom_buttons' => $custom_buttons
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -112,5 +112,3 @@ else
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -91,5 +91,3 @@ else
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -546,4 +546,3 @@ elseif($action == 'setnewpassword')
|
|||||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -339,4 +339,3 @@ $showed = $post = $reply = false;
|
|||||||
{
|
{
|
||||||
echo '<br><br><a href="?subtopic=bugtracker&control=true">[ADMIN PANEL]</a>';
|
echo '<br><br><a href="?subtopic=bugtracker&control=true">[ADMIN PANEL]</a>';
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -185,4 +185,3 @@ class FAQ
|
|||||||
return !count($errors);
|
return !count($errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -114,5 +114,3 @@ if(Forum::canPost($account_logged))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
echo "<br/>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.";
|
echo "<br/>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.";
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -103,5 +103,3 @@ if(Forum::canPost($account_logged))
|
|||||||
}
|
}
|
||||||
else
|
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.';
|
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.';
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -312,4 +312,3 @@ class Gallery
|
|||||||
return !count($errors);
|
return !count($errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -72,5 +72,3 @@ if(!empty($errors)) {
|
|||||||
'action' => '?subtopic=guilds'
|
'action' => '?subtopic=guilds'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -75,5 +75,3 @@ if(!empty($errors)) {
|
|||||||
'action' => '?subtopic=guilds'
|
'action' => '?subtopic=guilds'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -68,4 +68,3 @@ else
|
|||||||
echo "0 players found.";
|
echo "0 players found.";
|
||||||
|
|
||||||
$twig->display('guilds.back_button.html.twig');
|
$twig->display('guilds.back_button.html.twig');
|
||||||
?>
|
|
||||||
|
@ -66,5 +66,3 @@ if(!empty($errors)) {
|
|||||||
'action' => '?subtopic=guilds'
|
'action' => '?subtopic=guilds'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -125,5 +125,3 @@ if(!empty($guild_errors)) {
|
|||||||
'action' => '?subtopic=guilds'
|
'action' => '?subtopic=guilds'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -114,5 +114,3 @@ else
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
@ -117,5 +117,3 @@ if(!empty($guild_errors)) {
|
|||||||
|
|
||||||
echo '<br/><div style="text-align:center"><form action="?subtopic=guilds" method="post">' . $twig->render('buttons.back.html.twig') . '</form></div>';
|
echo '<br/><div style="text-align:center"><form action="?subtopic=guilds" method="post">' . $twig->render('buttons.back.html.twig') . '</form></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -369,4 +369,3 @@ function getColorByPercent($percent)
|
|||||||
echo 'This poll doesn\'t exist.<br>';
|
echo 'This poll doesn\'t exist.<br>';
|
||||||
echo '<div class=\'hr1\'></div><a href="?subtopic='.$link.'"><span style="font-size: 13px"><b>Go to list of polls</b></span></a>';
|
echo '<div class=\'hr1\'></div><a href="?subtopic='.$link.'"><span style="font-size: 13px"><b>Go to list of polls</b></span></a>';
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -108,6 +108,3 @@ $twig->display('serverinfo.html.twig', array(
|
|||||||
'finalBanishmentLength' => isset($config['lua']['final_banishment_length']) ? eval('return (' . $config['lua']['final_banishment_length'] . ') / (24 * 60 * 60);') : null,
|
'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,
|
'ipBanishmentLength' => isset($config['lua']['ip_banishment_length']) ? eval('return (' . $config['lua']['ip_banishment_length'] . ') / (24 * 60 * 60);') : null,
|
||||||
));
|
));
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,4 +74,3 @@ foreach($groupList as $id => $group)
|
|||||||
$twig->display('team.html.twig', array(
|
$twig->display('team.html.twig', array(
|
||||||
'groupmember' => $groupMember
|
'groupmember' => $groupMember
|
||||||
));
|
));
|
||||||
?>
|
|
@ -459,4 +459,3 @@ function logo_monster()
|
|||||||
global $config;
|
global $config;
|
||||||
return str_replace(" ", "", trim(strtolower($config['logo_monster'])));
|
return str_replace(" ", "", trim(strtolower($config['logo_monster'])));
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
@ -112,5 +112,3 @@ function error_($desc) {
|
|||||||
));
|
));
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
@ -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.'));
|
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');
|
imagepng($image, SIGNATURES_CACHE . $player->getID() . '.png');
|
||||||
imagedestroy($image);
|
imagedestroy($image);
|
||||||
?>
|
|
@ -168,4 +168,3 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$MadGD->save($player->getID());
|
$MadGD->save($player->getID());
|
||||||
?>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user