Use strict check where appriopriate

This commit is contained in:
slawkens 2018-10-16 01:40:49 +02:00
parent 98a05f53d2
commit ff8105f809
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
if(PAGE != 'news') { if(PAGE !== 'news') {
return; return;
} }

View File

@ -1,6 +1,6 @@
<?php <?php
if(PAGE != 'news') { if(PAGE !== 'news') {
return; return;
} }

View File

@ -18,20 +18,20 @@ if(isset($config['boxes']))
<script type="text/javascript"> <script type="text/javascript">
var loginStatus="<?php echo ($logged ? 'true' : 'false'); ?>"; var loginStatus="<?php echo ($logged ? 'true' : 'false'); ?>";
<?php <?php
if(PAGE != 'news') { if(PAGE !== 'news') {
if(strpos(URI, 'subtopic=') !== false) { if(strpos(URI, 'subtopic=') !== false) {
$tmp = $_REQUEST['subtopic']; $tmp = $_REQUEST['subtopic'];
if($tmp == 'accountmanagement') { if($tmp === 'accountmanagement') {
$tmp = 'accountmanage'; $tmp = 'accountmanage';
} }
} }
else { else {
$tmp = str_replace('/', '', URI); $tmp = str_replace('/', '', URI);
$exp = explode('/', URI); $exp = explode('/', URI);
if(isset($exp[1]) && URI != 'account/create' && URI != 'account/lost') { if(URI !== 'account/create' && URI !== 'account/lost' && isset($exp[1])) {
if ($exp[0] == 'account') { if ($exp[0] === 'account') {
$tmp = 'accountmanage'; $tmp = 'accountmanage';
} else if ($exp[0] == 'news' && $exp[1] == 'archive') { } else if ($exp[0] === 'news' && $exp[1] === 'archive') {
$tmp = 'newsarchive'; $tmp = 'newsarchive';
} }
else else