diff --git a/README.md b/README.md
index 9daa03fb..9f7a83d7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](https://travis-ci.org/MPOS/php-mpos) [](https://scrutinizer-ci.com/g/MPOS/php-mpos/?branch=master) [](https://scrutinizer-ci.com/g/MPOS/php-mpos/?branch=master) master
+[](https://travis-ci.org/MPOS/php-mpos) [](https://codeclimate.com/github/MPOS/php-mpos) [](https://scrutinizer-ci.com/g/MPOS/php-mpos/?branch=master) [](https://scrutinizer-ci.com/g/MPOS/php-mpos/?branch=master) master
[](https://travis-ci.org/MPOS/php-mpos) [](https://scrutinizer-ci.com/g/MPOS/php-mpos/?branch=development) [](https://scrutinizer-ci.com/g/MPOS/php-mpos/?branch=development) development
diff --git a/cronjobs/blockupdate.php b/cronjobs/blockupdate.php
index c1ef23b5..99b24d5b 100755
--- a/cronjobs/blockupdate.php
+++ b/cronjobs/blockupdate.php
@@ -80,4 +80,3 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
}
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/cron_end.inc.php b/cronjobs/cron_end.inc.php
index f0b9fd8a..460e49c0 100644
--- a/cronjobs/cron_end.inc.php
+++ b/cronjobs/cron_end.inc.php
@@ -22,4 +22,3 @@ limitations under the License.
$monitoring->endCronjob($cron_name, 'OK', 0, false, false);
$monitoring->setStatus($cron_name . "_runtime", "time", microtime(true) - $cron_start[$cron_name]);
$monitoring->setStatus($cron_name . "_endtime", "date", time());
-?>
diff --git a/cronjobs/findblock.php b/cronjobs/findblock.php
index 3516fe2c..75991e94 100755
--- a/cronjobs/findblock.php
+++ b/cronjobs/findblock.php
@@ -178,4 +178,3 @@ if (empty($aAllBlocks)) {
}
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/notifications.php b/cronjobs/notifications.php
index ffbc6943..6d590d77 100755
--- a/cronjobs/notifications.php
+++ b/cronjobs/notifications.php
@@ -75,4 +75,3 @@ if ($setting->getValue('notifications_disable_idle_worker') != 1) {
}
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/pplns_payout.php b/cronjobs/pplns_payout.php
index 832f6e59..00c8fc92 100755
--- a/cronjobs/pplns_payout.php
+++ b/cronjobs/pplns_payout.php
@@ -289,4 +289,3 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
}
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/pps_payout.php b/cronjobs/pps_payout.php
index f35f1560..7fd7e138 100755
--- a/cronjobs/pps_payout.php
+++ b/cronjobs/pps_payout.php
@@ -200,4 +200,3 @@ if ($aAllBlocks = $block->getAllUnaccounted('ASC')) {
$log->logInfo("Completed PPS Payout");
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/proportional_payout.php b/cronjobs/proportional_payout.php
index faf4e53a..98911bc2 100755
--- a/cronjobs/proportional_payout.php
+++ b/cronjobs/proportional_payout.php
@@ -169,4 +169,3 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
}
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/shared.inc.php b/cronjobs/shared.inc.php
index f26e692b..1794f76b 100644
--- a/cronjobs/shared.inc.php
+++ b/cronjobs/shared.inc.php
@@ -87,5 +87,3 @@ if ($setting->getValue('DB_VERSION') != DB_VERSION || $config['version'] != CONF
$log->logFatal('Cronjob is currently disabled due to required upgrades. Import any outstanding SQL files and check your configuration file.');
$monitoring->endCronjob($cron_name, 'E0075', 0, true, false);
}
-
-?>
diff --git a/cronjobs/statistics.php b/cronjobs/statistics.php
index eb564c1a..4f2103d7 100755
--- a/cronjobs/statistics.php
+++ b/cronjobs/statistics.php
@@ -55,4 +55,3 @@ $statistics->getCurrentHashrate() ? $status = 'OK' : $status = 'ERROR';
$log->logInfo(sprintf($strLogMask, 'getTopContributors(shares)', number_format(microtime(true) - $start, 3), $status));
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/tables_cleanup.php b/cronjobs/tables_cleanup.php
index 42189f2f..b47918ae 100755
--- a/cronjobs/tables_cleanup.php
+++ b/cronjobs/tables_cleanup.php
@@ -89,4 +89,3 @@ $log->logInfo(sprintf($strLogMask, 'purgeUserStats', $affected, number_format(mi
// Cron cleanup and monitoring
require_once('cron_end.inc.php');
-?>
diff --git a/cronjobs/tickerupdate.php b/cronjobs/tickerupdate.php
index 0075a260..7c2ea789 100755
--- a/cronjobs/tickerupdate.php
+++ b/cronjobs/tickerupdate.php
@@ -76,4 +76,3 @@ if ($api_keys = $setting->getValue('monitoring_uptimerobot_api_keys')) {
$log->logInfo(sprintf($strLogMask, 'Uptime Robot', 'n/a', number_format(microtime(true) - $start, 3), $status, $message));
require_once('cron_end.inc.php');
-?>
diff --git a/include/admin_checks.php b/include/admin_checks.php
index 27e7011a..3ab431f9 100644
--- a/include/admin_checks.php
+++ b/include/admin_checks.php
@@ -148,5 +148,3 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][
}
}
}
-
-?>
diff --git a/include/autoloader.inc.php b/include/autoloader.inc.php
index 8f0e6e6e..a46c4dde 100644
--- a/include/autoloader.inc.php
+++ b/include/autoloader.inc.php
@@ -80,5 +80,3 @@ require_once(CLASS_DIR . '/news.class.php');
require_once(CLASS_DIR . '/api.class.php');
require_once(INCLUDE_DIR . '/lib/Michelf/Markdown.php');
require_once(INCLUDE_DIR . '/lib/scrypt.php');
-
-?>
diff --git a/include/bootstrap.php b/include/bootstrap.php
index 0e286a53..5225a96e 100644
--- a/include/bootstrap.php
+++ b/include/bootstrap.php
@@ -43,5 +43,3 @@ $master_template = 'master.tpl';
// Load Classes, they name defines the $ variable used
// We include all needed files here, even though our templates could load them themself
require_once(INCLUDE_DIR . '/autoloader.inc.php');
-
-?>
diff --git a/include/classes/base.class.php b/include/classes/base.class.php
index d9f950ad..de77b23d 100644
--- a/include/classes/base.class.php
+++ b/include/classes/base.class.php
@@ -284,4 +284,3 @@ class Base {
return $array;
}
}
-?>
diff --git a/include/classes/coins/coin_base.class.php b/include/classes/coins/coin_base.class.php
index ab84c311..035939d1 100644
--- a/include/classes/coins/coin_base.class.php
+++ b/include/classes/coins/coin_base.class.php
@@ -85,5 +85,3 @@ class CoinBase extends Base {
}
}
}
-
-?>
diff --git a/include/classes/coins/coin_scrypt.class.php b/include/classes/coins/coin_scrypt.class.php
index bf829ab1..152dfa9f 100644
--- a/include/classes/coins/coin_scrypt.class.php
+++ b/include/classes/coins/coin_scrypt.class.php
@@ -9,5 +9,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
class Coin extends CoinBase {
protected $target_bits = 16;
}
-
-?>
diff --git a/include/classes/coins/coin_scryptn.class.php b/include/classes/coins/coin_scryptn.class.php
index db588f61..02c36ec2 100644
--- a/include/classes/coins/coin_scryptn.class.php
+++ b/include/classes/coins/coin_scryptn.class.php
@@ -12,5 +12,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
class Coin extends CoinBase {
protected $target_bits = 16;
}
-
-?>
diff --git a/include/classes/coins/coin_sha256d.class.php b/include/classes/coins/coin_sha256d.class.php
index 2b830263..a3f13557 100644
--- a/include/classes/coins/coin_sha256d.class.php
+++ b/include/classes/coins/coin_sha256d.class.php
@@ -10,5 +10,3 @@ class Coin extends CoinBase {
protected $target_bits = 32;
protected $coin_value_precision = 20;
}
-
-?>
diff --git a/include/classes/coins/coin_x11.class.php b/include/classes/coins/coin_x11.class.php
index 60c14f63..91cc4aec 100644
--- a/include/classes/coins/coin_x11.class.php
+++ b/include/classes/coins/coin_x11.class.php
@@ -10,5 +10,3 @@ class Coin extends CoinBase {
protected $target_bits = 24;
protected $share_difficulty_precision = 4;
}
-
-?>
diff --git a/include/classes/csrftoken.class.php b/include/classes/csrftoken.class.php
index 4a3c8269..373a1210 100644
--- a/include/classes/csrftoken.class.php
+++ b/include/classes/csrftoken.class.php
@@ -104,4 +104,3 @@ $csrftoken->setUser($user);
$csrftoken->setToken($oToken);
$csrftoken->setConfig($config);
$csrftoken->setErrorCodes($aErrorCodes);
-?>
diff --git a/include/classes/debug.class.php b/include/classes/debug.class.php
index 72a9f510..03a8f140 100644
--- a/include/classes/debug.class.php
+++ b/include/classes/debug.class.php
@@ -111,4 +111,3 @@ class Debug {
// Instantiate this class
$debug = new Debug($log, $config['DEBUG']);
-?>
diff --git a/include/classes/invitation.class.php b/include/classes/invitation.class.php
index 2d0c6896..b4cc1164 100644
--- a/include/classes/invitation.class.php
+++ b/include/classes/invitation.class.php
@@ -139,4 +139,3 @@ $invitation->setUser($user);
$invitation->setToken($oToken);
$invitation->setConfig($config);
$invitation->setErrorCodes($aErrorCodes);
-?>
diff --git a/include/classes/logger.class.php b/include/classes/logger.class.php
index 0283798d..37cb96a1 100644
--- a/include/classes/logger.class.php
+++ b/include/classes/logger.class.php
@@ -57,4 +57,3 @@ class Logger {
}
}
$log = new Logger($config);
-?>
diff --git a/include/classes/mail.class.php b/include/classes/mail.class.php
index a60359bd..4d5e5c6c 100644
--- a/include/classes/mail.class.php
+++ b/include/classes/mail.class.php
@@ -117,4 +117,3 @@ $mail->setSmarty($smarty);
$mail->setConfig($config);
$mail->setSetting($setting);
$mail->setErrorCodes($aErrorCodes);
-?>
diff --git a/include/classes/memcache_ad.class.php b/include/classes/memcache_ad.class.php
index 447e0118..f704bea6 100644
--- a/include/classes/memcache_ad.class.php
+++ b/include/classes/memcache_ad.class.php
@@ -81,5 +81,3 @@ class MemcacheAntiDos
return $new;
}
}
-
-?>
diff --git a/include/classes/news.class.php b/include/classes/news.class.php
index b4de57e2..d98fdec8 100644
--- a/include/classes/news.class.php
+++ b/include/classes/news.class.php
@@ -101,4 +101,3 @@ $news->setDebug($debug);
$news->setMysql($mysqli);
$news->setUser($user);
$news->setErrorCodes($aErrorCodes);
-?>
diff --git a/include/classes/notification.class.php b/include/classes/notification.class.php
index 44860281..afe2d069 100644
--- a/include/classes/notification.class.php
+++ b/include/classes/notification.class.php
@@ -195,4 +195,3 @@ $notification->setSmarty($smarty);
$notification->setConfig($config);
$notification->setSetting($setting);
$notification->setErrorCodes($aErrorCodes);
-?>
diff --git a/include/classes/payout.class.php b/include/classes/payout.class.php
index 68058802..44b041d6 100644
--- a/include/classes/payout.class.php
+++ b/include/classes/payout.class.php
@@ -67,5 +67,3 @@ $oPayout->setMysql($mysqli);
$oPayout->setConfig($config);
$oPayout->setToken($oToken);
$oPayout->setErrorCodes($aErrorCodes);
-
-?>
diff --git a/include/classes/statistics.class.php b/include/classes/statistics.class.php
index 4a9c36f3..777fe320 100644
--- a/include/classes/statistics.class.php
+++ b/include/classes/statistics.class.php
@@ -927,4 +927,3 @@ $statistics->setConfig($config);
$statistics->setBitcoin($bitcoin);
$statistics->setErrorCodes($aErrorCodes);
$statistics->setCoin($coin);
-?>
diff --git a/include/classes/strict.class.php b/include/classes/strict.class.php
index 26576bd1..db417ea2 100644
--- a/include/classes/strict.class.php
+++ b/include/classes/strict.class.php
@@ -35,5 +35,3 @@ class mysqli_strict extends mysqli {
}
}
}
-
-?>
\ No newline at end of file
diff --git a/include/classes/transaction.class.php b/include/classes/transaction.class.php
index 5ad9e44e..b2d30b59 100644
--- a/include/classes/transaction.class.php
+++ b/include/classes/transaction.class.php
@@ -488,4 +488,3 @@ $transaction->setBlock($block);
$transaction->setUser($user);
$transaction->setPayout($oPayout);
$transaction->setErrorCodes($aErrorCodes);
-?>
diff --git a/include/classes/worker.class.php b/include/classes/worker.class.php
index 3f9569f9..5d6cfb52 100644
--- a/include/classes/worker.class.php
+++ b/include/classes/worker.class.php
@@ -313,4 +313,3 @@ $worker->setShare($share);
$worker->setUser($user);
$worker->setErrorCodes($aErrorCodes);
$worker->setCoin($coin);
-?>
diff --git a/include/config/error_codes.inc.php b/include/config/error_codes.inc.php
index 36a40b0f..c668b565 100644
--- a/include/config/error_codes.inc.php
+++ b/include/config/error_codes.inc.php
@@ -78,4 +78,3 @@ $aErrorCodes['E0079'] = 'Wallet does not cover payouts total amount';
$aErrorCodes['E0080'] = 'No new unaccounted shares since last run';
$aErrorCodes['E0081'] = 'Failed to insert new block into database';
$aErrorCodes['E0082'] = 'Block does not supply any usable confirmation information';
-?>
diff --git a/include/config/global.inc.dist.php b/include/config/global.inc.dist.php
index 464759a7..5d240a7e 100644
--- a/include/config/global.inc.dist.php
+++ b/include/config/global.inc.dist.php
@@ -298,5 +298,3 @@ $config['smarty']['cache_lifetime'] = 30;
* https://github.com/MPOS/php-mpos/wiki/Config-Setup#wiki-system-load
**/
$config['system']['load']['max'] = 10.0;
-
-?>
diff --git a/include/config/memcache_keys.inc.php b/include/config/memcache_keys.inc.php
index 1f4e30e7..b40d5e72 100644
--- a/include/config/memcache_keys.inc.php
+++ b/include/config/memcache_keys.inc.php
@@ -4,4 +4,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
define('STATISTICS_ALL_USER_SHARES', 'STATISTICS_ALL_USER_SHARES');
define('STATISTICS_ALL_USER_HASHRATES', 'STATISTICS_ALL_USER_HASHRATES');
define('STATISTICS_ROUND_SHARES', 'STATISTICS_ROUND_SHARES');
-?>
diff --git a/include/config/monitor_crons.inc.php b/include/config/monitor_crons.inc.php
index d3726539..c5b8dbfa 100644
--- a/include/config/monitor_crons.inc.php
+++ b/include/config/monitor_crons.inc.php
@@ -11,5 +11,3 @@ switch ($config['payout_system']) {
}
$aMonitorCrons = array('statistics','tickerupdate','notifications','tables_cleanup','findblock',$sPayoutSystem,'blockupdate','payouts');
-
-?>
diff --git a/include/config/security.inc.dist.php b/include/config/security.inc.dist.php
index 2ff1a188..fed5ac35 100644
--- a/include/config/security.inc.dist.php
+++ b/include/config/security.inc.dist.php
@@ -59,5 +59,3 @@ $config['twofactor']['options']['changepw'] = true;
**/
$config['maxfailed']['login'] = 3;
$config['maxfailed']['pin'] = 3;
-
-?>
diff --git a/include/database.inc.php b/include/database.inc.php
index a65e708b..c8db0cca 100644
--- a/include/database.inc.php
+++ b/include/database.inc.php
@@ -17,5 +17,3 @@ if ($mysqli->query('/* MYSQLND_MS_MASTER_SWITCH */SELECT @@global.read_only AS r
if (mysqli_connect_errno()) {
die("Failed to connect to database");
}
-
-?>
diff --git a/include/lib/Michelf/Markdown.php b/include/lib/Michelf/Markdown.php
index ba45246c..d951aae1 100644
--- a/include/lib/Michelf/Markdown.php
+++ b/include/lib/Michelf/Markdown.php
@@ -3091,4 +3091,3 @@ class _MarkdownExtra_TmpImpl extends \Michelf\Markdown {
}
}
-?>
diff --git a/include/lib/Michelf/MarkdownExtra.php b/include/lib/Michelf/MarkdownExtra.php
index 267bf16d..ee433ae0 100644
--- a/include/lib/Michelf/MarkdownExtra.php
+++ b/include/lib/Michelf/MarkdownExtra.php
@@ -35,6 +35,3 @@ class MarkdownExtra extends \Michelf\_MarkdownExtra_TmpImpl {
# See note above.
}
-
-
-?>
\ No newline at end of file
diff --git a/include/lib/recaptchalib.php b/include/lib/recaptchalib.php
index 32c4f4d7..6d7619e4 100644
--- a/include/lib/recaptchalib.php
+++ b/include/lib/recaptchalib.php
@@ -272,6 +272,3 @@ function recaptcha_mailhide_html($pubkey, $privkey, $email) {
"' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...@" . htmlentities ($emailparts [1]);
}
-
-
-?>
diff --git a/include/lib/scrypt.php b/include/lib/scrypt.php
index 3d501b7d..17e723a3 100644
--- a/include/lib/scrypt.php
+++ b/include/lib/scrypt.php
@@ -532,5 +532,3 @@ function word_reverse($str) {
}
return $ret;
}
-
-?>
diff --git a/include/lib/smarty_plugins/function.acl.php b/include/lib/smarty_plugins/function.acl.php
index 6a358f15..7f43ba43 100644
--- a/include/lib/smarty_plugins/function.acl.php
+++ b/include/lib/smarty_plugins/function.acl.php
@@ -31,4 +31,3 @@ function check_acl_access($params, $smarty)
break;
}
}
-?>
diff --git a/include/pages/about.inc.php b/include/pages/about.inc.php
index ac4117c0..957a62c6 100644
--- a/include/pages/about.inc.php
+++ b/include/pages/about.inc.php
@@ -3,4 +3,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/about/pplns.inc.php b/include/pages/about/pplns.inc.php
index ac4117c0..957a62c6 100644
--- a/include/pages/about/pplns.inc.php
+++ b/include/pages/about/pplns.inc.php
@@ -3,4 +3,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/account.inc.php b/include/pages/account.inc.php
index f3ce16c5..44d3c45d 100644
--- a/include/pages/account.inc.php
+++ b/include/pages/account.inc.php
@@ -5,4 +5,3 @@ if ($user->isAuthenticated()) {
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
}
-?>
diff --git a/include/pages/account/earnings.inc.php b/include/pages/account/earnings.inc.php
index 51453b5a..f8470cb2 100644
--- a/include/pages/account/earnings.inc.php
+++ b/include/pages/account/earnings.inc.php
@@ -19,5 +19,3 @@ if ($user->isAuthenticated() AND !$setting->getValue('disable_transactionsummary
} else {
$smarty->assign('CONTENT', 'disabled.tpl');
}
-
-?>
diff --git a/include/pages/account/edit.inc.php b/include/pages/account/edit.inc.php
index 7c1ea962..23094122 100644
--- a/include/pages/account/edit.inc.php
+++ b/include/pages/account/edit.inc.php
@@ -206,4 +206,3 @@ $smarty->assign("DONATE_THRESHOLD", $config['donate_threshold']);
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/account/invitations.inc.php b/include/pages/account/invitations.inc.php
index 627b4f46..052733c3 100644
--- a/include/pages/account/invitations.inc.php
+++ b/include/pages/account/invitations.inc.php
@@ -24,4 +24,3 @@ if ($user->isAuthenticated()) {
}
}
$smarty->assign('CONTENT', 'default.tpl');
-?>
diff --git a/include/pages/account/notifications.inc.php b/include/pages/account/notifications.inc.php
index f06c796a..2b5c850e 100644
--- a/include/pages/account/notifications.inc.php
+++ b/include/pages/account/notifications.inc.php
@@ -35,5 +35,3 @@ if ($user->isAuthenticated()) {
$smarty->assign('CONTENT', 'default.tpl');
}
}
-
-?>
diff --git a/include/pages/account/qrcode.inc.php b/include/pages/account/qrcode.inc.php
index 6e30b898..d6ff76a0 100644
--- a/include/pages/account/qrcode.inc.php
+++ b/include/pages/account/qrcode.inc.php
@@ -12,4 +12,3 @@ case '1':
$smarty->assign("CONTENT", "");
break;
}
-?>
diff --git a/include/pages/account/reset_failed.inc.php b/include/pages/account/reset_failed.inc.php
index 4d9935bc..7ac0cda0 100644
--- a/include/pages/account/reset_failed.inc.php
+++ b/include/pages/account/reset_failed.inc.php
@@ -11,4 +11,3 @@ if ($user->isAuthenticated()) {
}
// Somehow we still need to load this empty template
$smarty->assign("CONTENT", "empty");
-?>
diff --git a/include/pages/account/transactions.inc.php b/include/pages/account/transactions.inc.php
index afe405ac..7f095362 100644
--- a/include/pages/account/transactions.inc.php
+++ b/include/pages/account/transactions.inc.php
@@ -15,4 +15,3 @@ if ($user->isAuthenticated()) {
$smarty->assign('DISABLE_TRANSACTIONSUMMARY', $setting->getValue('disable_transactionsummary'));
}
$smarty->assign('CONTENT', 'default.tpl');
-?>
diff --git a/include/pages/account/unlock.inc.php b/include/pages/account/unlock.inc.php
index 1aa83fca..51bc9d36 100644
--- a/include/pages/account/unlock.inc.php
+++ b/include/pages/account/unlock.inc.php
@@ -15,5 +15,3 @@ if (!isset($_GET['token']) || empty($_GET['token'])) {
}
}
$smarty->assign('CONTENT', 'default.tpl');
-
-?>
diff --git a/include/pages/account/workers.inc.php b/include/pages/account/workers.inc.php
index a672e11c..c98ca1b8 100644
--- a/include/pages/account/workers.inc.php
+++ b/include/pages/account/workers.inc.php
@@ -55,6 +55,3 @@ if ($user->isAuthenticated()) {
$smarty->assign('CONTENT', 'default.tpl');
}
}
-
-
-?>
diff --git a/include/pages/admin.inc.php b/include/pages/admin.inc.php
index b5067a9f..529adb57 100644
--- a/include/pages/admin.inc.php
+++ b/include/pages/admin.inc.php
@@ -9,4 +9,3 @@ if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
// Tempalte specifics
$smarty->assign("CONTENT", "");
-?>
diff --git a/include/pages/admin/earnings.inc.php b/include/pages/admin/earnings.inc.php
index c4fe7015..5adfc967 100644
--- a/include/pages/admin/earnings.inc.php
+++ b/include/pages/admin/earnings.inc.php
@@ -18,4 +18,3 @@ if ($user->isAuthenticated()) {
}
$smarty->assign('CONTENT', 'default.tpl');
-?>
diff --git a/include/pages/admin/invitations.inc.php b/include/pages/admin/invitations.inc.php
index 8d8fda7c..890b713d 100644
--- a/include/pages/admin/invitations.inc.php
+++ b/include/pages/admin/invitations.inc.php
@@ -21,4 +21,3 @@ if (!$setting->getValue('disable_invitations')) {
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/admin/monitoring.inc.php b/include/pages/admin/monitoring.inc.php
index ffb9483c..08d42c5d 100644
--- a/include/pages/admin/monitoring.inc.php
+++ b/include/pages/admin/monitoring.inc.php
@@ -26,4 +26,3 @@ $smarty->assign("CRONSTATUS", $aCronStatus);
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/admin/news.inc.php b/include/pages/admin/news.inc.php
index 9d39146e..666d1a26 100644
--- a/include/pages/admin/news.inc.php
+++ b/include/pages/admin/news.inc.php
@@ -46,4 +46,3 @@ foreach ($aNews as $key => $aData) {
}
$smarty->assign("NEWS", $aNews);
$smarty->assign("CONTENT", "default.tpl");
-?>
\ No newline at end of file
diff --git a/include/pages/admin/news_edit.inc.php b/include/pages/admin/news_edit.inc.php
index 07c472b8..9ed45ad7 100644
--- a/include/pages/admin/news_edit.inc.php
+++ b/include/pages/admin/news_edit.inc.php
@@ -24,4 +24,3 @@ if (!$config['csrf']['enabled'] || $config['csrf']['enabled'] && $csrftoken->val
$aNews = $news->getEntry($_REQUEST['id']);
$smarty->assign("NEWS", $aNews);
$smarty->assign("CONTENT", "default.tpl");
-?>
\ No newline at end of file
diff --git a/include/pages/admin/newsletter.inc.php b/include/pages/admin/newsletter.inc.php
index fed4f342..e856525f 100644
--- a/include/pages/admin/newsletter.inc.php
+++ b/include/pages/admin/newsletter.inc.php
@@ -38,4 +38,3 @@ if ($setting->getValue('notifications_disable_pool_newsletter', 0) == 1) {
}
$smarty->assign("CONTENT", "default.tpl");
}
-?>
diff --git a/include/pages/admin/poolworkers.inc.php b/include/pages/admin/poolworkers.inc.php
index 8d80314a..1aced86a 100644
--- a/include/pages/admin/poolworkers.inc.php
+++ b/include/pages/admin/poolworkers.inc.php
@@ -19,5 +19,3 @@ $smarty->assign('DISABLE_IDLEWORKERNOTIFICATIONS', $setting->getValue('notificat
$smarty->assign('LIMIT', $iLimit);
$smarty->assign('WORKERS', $aWorkers);
$smarty->assign('CONTENT', 'default.tpl');
-
-?>
diff --git a/include/pages/admin/registrations.inc.php b/include/pages/admin/registrations.inc.php
index 8c760ea7..5f50528c 100644
--- a/include/pages/admin/registrations.inc.php
+++ b/include/pages/admin/registrations.inc.php
@@ -18,4 +18,3 @@ $smarty->assign("LASTREGISTEREDUSERS", $aLastRegisteredUsers);
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/admin/reports.inc.php b/include/pages/admin/reports.inc.php
index 1723fd2f..ec580460 100644
--- a/include/pages/admin/reports.inc.php
+++ b/include/pages/admin/reports.inc.php
@@ -81,4 +81,3 @@ if ($user->isAuthenticated(false)) {
} else {
$smarty->assign("CONTENT", "empty");
}
-?>
diff --git a/include/pages/admin/settings.inc.php b/include/pages/admin/settings.inc.php
index dcb749d3..9df0006d 100644
--- a/include/pages/admin/settings.inc.php
+++ b/include/pages/admin/settings.inc.php
@@ -27,4 +27,3 @@ $smarty->assign("SETTINGS", $aSettings);
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
\ No newline at end of file
diff --git a/include/pages/admin/transactions.inc.php b/include/pages/admin/transactions.inc.php
index 3ff3b626..6f4db73f 100644
--- a/include/pages/admin/transactions.inc.php
+++ b/include/pages/admin/transactions.inc.php
@@ -37,4 +37,3 @@ if (isset($_REQUEST['filter'])) {
$smarty->assign('FILTERS', $strFilters);
}
$smarty->assign('CONTENT', 'default.tpl');
-?>
diff --git a/include/pages/admin/user.inc.php b/include/pages/admin/user.inc.php
index 8f0dfa83..eb7f1e37 100644
--- a/include/pages/admin/user.inc.php
+++ b/include/pages/admin/user.inc.php
@@ -83,4 +83,3 @@ if (isset($_REQUEST['filter'])) {
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
\ No newline at end of file
diff --git a/include/pages/admin/userdetails.inc.php b/include/pages/admin/userdetails.inc.php
index 4bac75f4..09e6aecc 100644
--- a/include/pages/admin/userdetails.inc.php
+++ b/include/pages/admin/userdetails.inc.php
@@ -21,4 +21,3 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
}
$smarty->assign('CONTENT', 'default.tpl');
-?>
diff --git a/include/pages/admin/wallet.inc.php b/include/pages/admin/wallet.inc.php
index 66c11ebe..ddbe081d 100644
--- a/include/pages/admin/wallet.inc.php
+++ b/include/pages/admin/wallet.inc.php
@@ -71,4 +71,3 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
}
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/api.inc.php b/include/pages/api.inc.php
index 32fd0a34..8a0b0770 100644
--- a/include/pages/api.inc.php
+++ b/include/pages/api.inc.php
@@ -9,4 +9,3 @@ $id = $user->checkApiKey(@$_REQUEST['api_key']);
header('HTTP/1.1 400 Bad Request');
die('400 Bad Request');
-?>
diff --git a/include/pages/api/getblockcount.inc.php b/include/pages/api/getblockcount.inc.php
index 5000afdd..7ee823f9 100644
--- a/include/pages/api/getblockcount.inc.php
+++ b/include/pages/api/getblockcount.inc.php
@@ -18,4 +18,3 @@ echo $api->get_json($iBlock);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getblocksfound.inc.php b/include/pages/api/getblocksfound.inc.php
index d280b266..c3ce1fcb 100644
--- a/include/pages/api/getblocksfound.inc.php
+++ b/include/pages/api/getblocksfound.inc.php
@@ -24,4 +24,3 @@ echo $api->get_json($aBlocks);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getblockstats.inc.php b/include/pages/api/getblockstats.inc.php
index 725ad628..c1c53c1c 100644
--- a/include/pages/api/getblockstats.inc.php
+++ b/include/pages/api/getblockstats.inc.php
@@ -14,4 +14,3 @@ echo $api->get_json($blocks);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getcronjobstatus.inc.php b/include/pages/api/getcronjobstatus.inc.php
index b932b8dd..186ec1d4 100644
--- a/include/pages/api/getcronjobstatus.inc.php
+++ b/include/pages/api/getcronjobstatus.inc.php
@@ -43,5 +43,3 @@ echo $api->get_json($aCronStatus);
// Supress master template
$supress_master = 1;
-
-?>
diff --git a/include/pages/api/getcurrentworkers.inc.php b/include/pages/api/getcurrentworkers.inc.php
index 4b142822..50d634cb 100644
--- a/include/pages/api/getcurrentworkers.inc.php
+++ b/include/pages/api/getcurrentworkers.inc.php
@@ -12,4 +12,3 @@ echo $api->get_json($worker->getCountAllActiveWorkers());
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getdashboarddata.inc.php b/include/pages/api/getdashboarddata.inc.php
index ccd8a645..6f57927b 100644
--- a/include/pages/api/getdashboarddata.inc.php
+++ b/include/pages/api/getdashboarddata.inc.php
@@ -119,4 +119,3 @@ $data = array(
);
echo $api->get_json($data);
-?>
diff --git a/include/pages/api/getdifficulty.inc.php b/include/pages/api/getdifficulty.inc.php
index 7cc88766..192e7f9d 100644
--- a/include/pages/api/getdifficulty.inc.php
+++ b/include/pages/api/getdifficulty.inc.php
@@ -15,4 +15,3 @@ echo $api->get_json($dDifficulty);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getestimatedtime.inc.php b/include/pages/api/getestimatedtime.inc.php
index 5d529545..4303b7ff 100644
--- a/include/pages/api/getestimatedtime.inc.php
+++ b/include/pages/api/getestimatedtime.inc.php
@@ -16,4 +16,3 @@ echo $api->get_json($dEstimatedTime);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/gethourlyhashrates.inc.php b/include/pages/api/gethourlyhashrates.inc.php
index c6c7f670..81179dfa 100644
--- a/include/pages/api/gethourlyhashrates.inc.php
+++ b/include/pages/api/gethourlyhashrates.inc.php
@@ -18,4 +18,3 @@ echo $api->get_json($data);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getpoolhashrate.inc.php b/include/pages/api/getpoolhashrate.inc.php
index bb6fe8ea..bbe476c1 100644
--- a/include/pages/api/getpoolhashrate.inc.php
+++ b/include/pages/api/getpoolhashrate.inc.php
@@ -19,4 +19,3 @@ echo $api->get_json($dPoolHashrate);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getpoolinfo.inc.php b/include/pages/api/getpoolinfo.inc.php
index 7d08ceb5..82843c2c 100644
--- a/include/pages/api/getpoolinfo.inc.php
+++ b/include/pages/api/getpoolinfo.inc.php
@@ -36,4 +36,3 @@ echo $api->get_json($data);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getpoolsharerate.inc.php b/include/pages/api/getpoolsharerate.inc.php
index 8b8977e5..1bd79179 100644
--- a/include/pages/api/getpoolsharerate.inc.php
+++ b/include/pages/api/getpoolsharerate.inc.php
@@ -15,4 +15,3 @@ echo json_encode(array('getpoolsharerate' => $statistics->getCurrentShareRate())
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getpoolstatus.inc.php b/include/pages/api/getpoolstatus.inc.php
index 26abc851..915132e0 100644
--- a/include/pages/api/getpoolstatus.inc.php
+++ b/include/pages/api/getpoolstatus.inc.php
@@ -66,4 +66,3 @@ echo $api->get_json($data);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/gettimesincelastblock.inc.php b/include/pages/api/gettimesincelastblock.inc.php
index e586beac..e2981cbc 100644
--- a/include/pages/api/gettimesincelastblock.inc.php
+++ b/include/pages/api/gettimesincelastblock.inc.php
@@ -19,4 +19,3 @@ echo $api->get_json($dTimeSinceLast);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/gettopcontributors.inc.php b/include/pages/api/gettopcontributors.inc.php
index e5bc7e6f..e35d3e33 100644
--- a/include/pages/api/gettopcontributors.inc.php
+++ b/include/pages/api/gettopcontributors.inc.php
@@ -60,4 +60,3 @@ echo $api->get_json($data);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getuserbalance.inc.php b/include/pages/api/getuserbalance.inc.php
index e46901bb..f73209ac 100644
--- a/include/pages/api/getuserbalance.inc.php
+++ b/include/pages/api/getuserbalance.inc.php
@@ -12,4 +12,3 @@ echo $api->get_json($transaction->getBalance($user_id));
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getuserhashrate.inc.php b/include/pages/api/getuserhashrate.inc.php
index e1970030..ed83b3dd 100644
--- a/include/pages/api/getuserhashrate.inc.php
+++ b/include/pages/api/getuserhashrate.inc.php
@@ -22,4 +22,3 @@ echo $api->get_json($hashrate);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getusersharerate.inc.php b/include/pages/api/getusersharerate.inc.php
index 99650085..90e55638 100644
--- a/include/pages/api/getusersharerate.inc.php
+++ b/include/pages/api/getusersharerate.inc.php
@@ -22,4 +22,3 @@ echo $api->get_json($sharerate);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getuserstatus.inc.php b/include/pages/api/getuserstatus.inc.php
index 03b4053c..6ada148d 100644
--- a/include/pages/api/getuserstatus.inc.php
+++ b/include/pages/api/getuserstatus.inc.php
@@ -28,4 +28,3 @@ echo $api->get_json($data);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getusertransactions.inc.php b/include/pages/api/getusertransactions.inc.php
index 3903deba..62f60e19 100644
--- a/include/pages/api/getusertransactions.inc.php
+++ b/include/pages/api/getusertransactions.inc.php
@@ -27,4 +27,3 @@ echo $api->get_json($data);
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/getuserworkers.inc.php b/include/pages/api/getuserworkers.inc.php
index 69a8122a..5b071da9 100644
--- a/include/pages/api/getuserworkers.inc.php
+++ b/include/pages/api/getuserworkers.inc.php
@@ -15,4 +15,3 @@ echo $api->get_json($worker->getWorkers($user_id, $interval));
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/api/public.inc.php b/include/pages/api/public.inc.php
index 6446b5e5..324e405a 100644
--- a/include/pages/api/public.inc.php
+++ b/include/pages/api/public.inc.php
@@ -27,4 +27,3 @@ echo json_encode(
// Supress master template
$supress_master = 1;
-?>
diff --git a/include/pages/contactform.inc.php b/include/pages/contactform.inc.php
index 7cf7c021..7566bec8 100644
--- a/include/pages/contactform.inc.php
+++ b/include/pages/contactform.inc.php
@@ -15,4 +15,3 @@ if ($setting->getValue('acl_contactform') == 2) {
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
}
-?>
diff --git a/include/pages/contactform/contactform.inc.php b/include/pages/contactform/contactform.inc.php
index 9c273803..0f352c7b 100644
--- a/include/pages/contactform/contactform.inc.php
+++ b/include/pages/contactform/contactform.inc.php
@@ -32,5 +32,3 @@ if ($setting->getValue('acl_contactform') == 2) {
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-
-?>
diff --git a/include/pages/dashboard.inc.php b/include/pages/dashboard.inc.php
index 01598da6..2b28d4dc 100644
--- a/include/pages/dashboard.inc.php
+++ b/include/pages/dashboard.inc.php
@@ -59,5 +59,3 @@ if ($user->isAuthenticated()) {
$smarty->assign('INTERVAL', $interval / 60);
$smarty->assign('CONTENT', 'default.tpl');
}
-
-?>
diff --git a/include/pages/error.inc.php b/include/pages/error.inc.php
index ac4117c0..957a62c6 100644
--- a/include/pages/error.inc.php
+++ b/include/pages/error.inc.php
@@ -3,4 +3,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/error/404.inc.php b/include/pages/error/404.inc.php
index ac4117c0..957a62c6 100644
--- a/include/pages/error/404.inc.php
+++ b/include/pages/error/404.inc.php
@@ -3,4 +3,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/error/ratelimit.inc.php b/include/pages/error/ratelimit.inc.php
index 89cd2920..957a62c6 100644
--- a/include/pages/error/ratelimit.inc.php
+++ b/include/pages/error/ratelimit.inc.php
@@ -3,4 +3,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
\ No newline at end of file
diff --git a/include/pages/gettingstarted.inc.php b/include/pages/gettingstarted.inc.php
index b6f63bc7..cf722e8b 100644
--- a/include/pages/gettingstarted.inc.php
+++ b/include/pages/gettingstarted.inc.php
@@ -8,4 +8,3 @@ $smarty->assign("SITECOINURL", $config['gettingstarted']['coinurl']);
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/home.inc.php b/include/pages/home.inc.php
index 72a29af7..137d3705 100644
--- a/include/pages/home.inc.php
+++ b/include/pages/home.inc.php
@@ -22,4 +22,3 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
}
// Load news entries for Desktop site and unauthenticated users
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/login.inc.php b/include/pages/login.inc.php
index 8d4a05df..a40541a7 100644
--- a/include/pages/login.inc.php
+++ b/include/pages/login.inc.php
@@ -46,5 +46,3 @@ if (!empty($_POST['username']) && !empty($_POST['password'])) {
}
// Load login template
$smarty->assign('CONTENT', 'default.tpl');
-
-?>
diff --git a/include/pages/logout.inc.php b/include/pages/logout.inc.php
index 9b6e12a6..5f3a7cfe 100644
--- a/include/pages/logout.inc.php
+++ b/include/pages/logout.inc.php
@@ -4,4 +4,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
$user->logoutUser();
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/news.inc.php b/include/pages/news.inc.php
index 51630e9b..d09659ed 100644
--- a/include/pages/news.inc.php
+++ b/include/pages/news.inc.php
@@ -17,4 +17,3 @@ if (is_array($aNews)) {
$smarty->assign("HIDEAUTHOR", $settings->getValue('acl_hide_news_author'));
$smarty->assign("NEWS", $aNews);
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/password.inc.php b/include/pages/password.inc.php
index 8ce59fe1..957a62c6 100644
--- a/include/pages/password.inc.php
+++ b/include/pages/password.inc.php
@@ -3,5 +3,3 @@ $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-
-?>
\ No newline at end of file
diff --git a/include/pages/password/change.inc.php b/include/pages/password/change.inc.php
index 1fefc6a2..ae81b624 100644
--- a/include/pages/password/change.inc.php
+++ b/include/pages/password/change.inc.php
@@ -15,5 +15,3 @@ if (isset($_POST['do']) && $_POST['do'] == 'resetPassword') {
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
-
-?>
diff --git a/include/pages/password/reset.inc.php b/include/pages/password/reset.inc.php
index 71478ae8..7bad3cff 100644
--- a/include/pages/password/reset.inc.php
+++ b/include/pages/password/reset.inc.php
@@ -14,4 +14,3 @@ if (!$config['csrf']['enabled'] || $config['csrf']['enabled'] && $csrftoken->val
// Tempalte specifics, user default template by parent page
$smarty->assign("CONTENT", "../default.tpl");
-?>
diff --git a/include/pages/register.inc.php b/include/pages/register.inc.php
index 2dc4516d..4fa81e76 100644
--- a/include/pages/register.inc.php
+++ b/include/pages/register.inc.php
@@ -15,4 +15,3 @@ if ($setting->getValue('lock_registration') && $setting->getValue('disable_invit
// Load news entries for Desktop site and unauthenticated users
$smarty->assign("CONTENT", "default.tpl");
}
-?>
diff --git a/include/pages/register/register.inc.php b/include/pages/register/register.inc.php
index 87f856ee..ef294cb9 100644
--- a/include/pages/register/register.inc.php
+++ b/include/pages/register/register.inc.php
@@ -44,5 +44,3 @@ if ($setting->getValue('disable_invitations') && $setting->getValue('lock_regist
// We load the default registration template instead of an action specific one
$smarty->assign("CONTENT", "../default.tpl");
-
-?>
diff --git a/include/pages/statistics.inc.php b/include/pages/statistics.inc.php
index 50125993..ac2c5089 100644
--- a/include/pages/statistics.inc.php
+++ b/include/pages/statistics.inc.php
@@ -18,4 +18,3 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
}
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/statistics/graphs.inc.php b/include/pages/statistics/graphs.inc.php
index a212e941..11ce7cf7 100644
--- a/include/pages/statistics/graphs.inc.php
+++ b/include/pages/statistics/graphs.inc.php
@@ -25,4 +25,3 @@ case '2':
$smarty->assign("CONTENT", "");
break;
}
-?>
diff --git a/include/pages/tac.inc.php b/include/pages/tac.inc.php
index cdd3e92d..348eaf72 100644
--- a/include/pages/tac.inc.php
+++ b/include/pages/tac.inc.php
@@ -2,4 +2,3 @@
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
$smarty->assign("CONTENT", "default.tpl");
-?>
diff --git a/include/pages/tacpop.inc.php b/include/pages/tacpop.inc.php
index 16ae6777..531b8af3 100644
--- a/include/pages/tacpop.inc.php
+++ b/include/pages/tacpop.inc.php
@@ -2,4 +2,3 @@
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
$master_template = 'tac/default.tpl';
-?>
diff --git a/include/smarty.inc.php b/include/smarty.inc.php
index ac2935d9..2a5cba41 100644
--- a/include/smarty.inc.php
+++ b/include/smarty.inc.php
@@ -29,4 +29,3 @@ if ($config['smarty']['cache']) {
// Load custom smarty plugins
require_once(INCLUDE_DIR . '/lib/smarty_plugins/function.acl.php');
-?>
diff --git a/include/smarty/libs/plugins/modifier.relative_date.php b/include/smarty/libs/plugins/modifier.relative_date.php
index 96186266..cb802ef7 100644
--- a/include/smarty/libs/plugins/modifier.relative_date.php
+++ b/include/smarty/libs/plugins/modifier.relative_date.php
@@ -75,5 +75,3 @@ function smarty_modifier_relative_date($timestamp, $days = false, $format = "M j
return @date($format, $timestamp);
}
-
-?>
\ No newline at end of file
diff --git a/include/smarty_globals.inc.php b/include/smarty_globals.inc.php
index 8cd45a77..bf0cd8f7 100644
--- a/include/smarty_globals.inc.php
+++ b/include/smarty_globals.inc.php
@@ -260,4 +260,3 @@ if ($bMessage)
$smarty->assign('PATH', 'site_assets/' . THEME);
$smarty->assign('GLOBALASSETS', 'site_assets/global');
$smarty->assign('GLOBAL', $aGlobal);
-?>
diff --git a/public/index.php b/public/index.php
index d169fff9..1725eea2 100644
--- a/public/index.php
+++ b/public/index.php
@@ -175,5 +175,3 @@ if (!@$supress_master) $smarty->display($master_template, $smarty_cache_key);
// Unset any temporary values here
unset($_SESSION['POPUP']);
-
-?>
diff --git a/scripts/51_percent_check.php b/scripts/51_percent_check.php
index 3ac0be3e..66043a48 100755
--- a/scripts/51_percent_check.php
+++ b/scripts/51_percent_check.php
@@ -41,4 +41,3 @@ if ($iPercentage >= 51) {
} else {
$setting->setValue('lock_registration', 0);
}
-?>
diff --git a/scripts/shared.inc.php b/scripts/shared.inc.php
index 96ad444b..cde736c0 100644
--- a/scripts/shared.inc.php
+++ b/scripts/shared.inc.php
@@ -51,4 +51,3 @@ require_once(BASEPATH . '../include/version.inc.php');
// switch ($option) {
// }
// }
-?>
diff --git a/scripts/validate_blocks.php b/scripts/validate_blocks.php
index eed93e43..3dc0308d 100755
--- a/scripts/validate_blocks.php
+++ b/scripts/validate_blocks.php
@@ -45,4 +45,3 @@
}
echo "Done..". PHP_EOL;
-?>
\ No newline at end of file