Skip to content

Commit

Permalink
more type juggling in class frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
NorHei committed Jul 27, 2017
1 parent bf2f3d1 commit 72e7a2f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions wbce/framework/class.frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@
* @license GNU GPL2 (or any later version)
*/

/* -------------------------------------------------------- */
// Must include code to stop this file being accessed directly
if (!defined('WB_PATH')) {
require_once dirname(__FILE__) . '/globalExceptionHandler.php';
throw new IllegalFileException();
}
/* -------------------------------------------------------- */
require_once WB_PATH . '/framework/class.wb.php';
//require_once(WB_PATH.'/framework/SecureForm.php');
//no direct file access
if(count(get_included_files())==1) header("Location: ../index.php",TRUE,301);



class frontend extends wb
{
Expand Down Expand Up @@ -55,7 +50,7 @@ public function page_select()
global $database;

// We have a Maintainance situation print under construction if not in group admin
if (defined("WB_MAINTAINANCE_MODE") and WB_MAINTAINANCE_MODE==true and !$this->ami_group_member('1'))
if (defined("WB_MAINTAINANCE_MODE") and WB_MAINTAINANCE_MODE===true and !$this->ami_group_member('1'))
$this->print_under_construction();


Expand Down

0 comments on commit 72e7a2f

Please sign in to comment.