wip
This commit is contained in:
@ -274,14 +274,14 @@ class TheTempusProject extends Bedrock {
|
||||
"logo" => [
|
||||
"type" => "file",
|
||||
"pretty" => "Site Logo (Used mostly in emails)",
|
||||
"default" => "images/logo.png",
|
||||
"value" => "images/logo.png",
|
||||
"default" => "images/logoWhite.png",
|
||||
"value" => "images/logoWhite.png",
|
||||
],
|
||||
"logoLarge" => [
|
||||
"type" => "file",
|
||||
"pretty" => "Large Site Logo (Used mostly when sharing images on social media)",
|
||||
"default" => "images/logoLarge.png",
|
||||
"value" => "images/logoLarge.png",
|
||||
"default" => "images/logoLarge.jpg",
|
||||
"value" => "images/logoLarge.jpg",
|
||||
],
|
||||
"name" => [
|
||||
"type" => "text",
|
||||
@ -576,7 +576,7 @@ class TheTempusProject extends Bedrock {
|
||||
$url = trim( Input::get( 'url' ), '/' );
|
||||
$url = str_ireplace( '.php', '', $url );
|
||||
}
|
||||
$route = $routes->findByOriginalUrl($url);
|
||||
$route = $routes->findByOriginalUrl( $url );
|
||||
if (false !== $route) {
|
||||
$route = $route;
|
||||
if ('internal' === $route->redirect_type) {
|
||||
@ -585,6 +585,26 @@ class TheTempusProject extends Bedrock {
|
||||
Redirect::external($route->forwarded_url);
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'home/login' !== $url ) {
|
||||
if ( Config::getValue( 'maintenance/enabled' ) ) {
|
||||
if ( ! self::$isLoggedIn ) {
|
||||
Session::flash( 'notice', Config::getValue( 'maintenance/maintenanceMessage' ) );
|
||||
Redirect::to( 'home/login' );
|
||||
}
|
||||
if ( self::$activeGroup->ID != 1 ) {
|
||||
if ( empty( self::$activeGroup->perms['maintenanceAccess'] ) ) {
|
||||
Session::flash( 'notice', Config::getValue( 'maintenance/maintenanceMessage' ) );
|
||||
Redirect::to( 'home/login' );
|
||||
}
|
||||
}
|
||||
}
|
||||
} elseif ( Config::getValue( 'maintenance/enabled' ) ) {
|
||||
if ( ! self::$isLoggedIn ) {
|
||||
Issues::add( 'notice', Config::getValue( 'maintenance/maintenanceMessage' ) );
|
||||
}
|
||||
}
|
||||
|
||||
parent::load();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user