mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
Use strict check where appriopriate
This commit is contained in:
parent
98a05f53d2
commit
ff8105f809
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(PAGE != 'news') {
|
if(PAGE !== 'news') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(PAGE != 'news') {
|
if(PAGE !== 'news') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user