@@ -21,13 +21,13 @@ |
||
21 | 21 | |
22 | 22 | # Check installation |
23 | 23 | |
24 | - if (null !== ($data = Schema::get('System')->load())) Request::redirect(INSTALL_PATH . '/index.php'); |
|
24 | + if (null !== ($data = Schema::get('System')->load())) Request::redirect(INSTALL_PATH.'/index.php'); |
|
25 | 25 | |
26 | 26 | # Get handler class |
27 | 27 | |
28 | 28 | $checked = (Install::checkRequirements() && Validate::boolean(Request::get('checked'))); |
29 | 29 | |
30 | - $class = ('Modules\Install\Handler\\' . (!$checked ? 'Check' : 'Database')); |
|
30 | + $class = ('Modules\Install\Handler\\'.(!$checked ? 'Check' : 'Database')); |
|
31 | 31 | |
32 | 32 | # ------------------------ |
33 | 33 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | # Check installation |
23 | 23 | |
24 | - if (null === ($data = Schema::get('System')->load())) Request::redirect(INSTALL_PATH . '/install.php'); |
|
24 | + if (null === ($data = Schema::get('System')->load())) Request::redirect(INSTALL_PATH.'/install.php'); |
|
25 | 25 | |
26 | 26 | # Connect to database |
27 | 27 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function handle() : Template\Block { |
23 | 23 | |
24 | - if (Auth::isInitial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
24 | + if (Auth::isInitial()) Request::redirect(INSTALL_PATH.'/admin/register'); |
|
25 | 25 | |
26 | 26 | return (new Auth\Action\Recover)->handle(); |
27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function handle() : Template\Block { |
23 | 23 | |
24 | - if (Auth::isInitial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
24 | + if (Auth::isInitial()) Request::redirect(INSTALL_PATH.'/admin/register'); |
|
25 | 25 | |
26 | 26 | return (new Auth\Action\Reset)->handle(); |
27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function handle() : Template\Block { |
23 | 23 | |
24 | - if (Auth::isInitial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
24 | + if (Auth::isInitial()) Request::redirect(INSTALL_PATH.'/admin/register'); |
|
25 | 25 | |
26 | 26 | return (new Auth\Action\Login)->handle(); |
27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function handle() : Template\Block { |
23 | 23 | |
24 | - if (!Auth::isInitial()) Request::redirect(INSTALL_PATH . '/admin/login'); |
|
24 | + if (!Auth::isInitial()) Request::redirect(INSTALL_PATH.'/admin/login'); |
|
25 | 25 | |
26 | 26 | return (new Auth\Action\Register)->handle(); |
27 | 27 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | if (false === ($result = Auth\Utils\Connector\Secret::authorize($code, $admin))) { |
39 | 39 | |
40 | - Request::redirect(INSTALL_PATH . ($admin ? '/admin' : '/profile') . '/reset'); |
|
40 | + Request::redirect(INSTALL_PATH.($admin ? '/admin' : '/profile').'/reset'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | # Set recovery data |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | private function getContents() : Template\Block { |
29 | 29 | |
30 | - $contents = View::get((Auth::isAdmin() ? 'Blocks/Auth/' : 'Blocks/Profile/Auth/') . static::$view); |
|
30 | + $contents = View::get((Auth::isAdmin() ? 'Blocks/Auth/' : 'Blocks/Profile/Auth/').static::$view); |
|
31 | 31 | |
32 | 32 | # Set code |
33 | 33 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | if ($this->form->handle(new static::$controller_class($this->user))) { |
58 | 58 | |
59 | - Request::redirect(INSTALL_PATH . (Auth::isAdmin() ? '/admin' : '/profile') . static::$redirect); |
|
59 | + Request::redirect(INSTALL_PATH.(Auth::isAdmin() ? '/admin' : '/profile').static::$redirect); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | # Display success message |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | |
20 | 20 | private static function send(Entitizer\Entity\User $user, string $view, string $subject, string $link) : bool { |
21 | 21 | |
22 | - $message = View::get((Auth::isAdmin() ? 'Blocks/Auth/Mail/' : 'Blocks/Profile/Auth/Mail/') . $view); |
|
22 | + $message = View::get((Auth::isAdmin() ? 'Blocks/Auth/Mail/' : 'Blocks/Profile/Auth/Mail/').$view); |
|
23 | 23 | |
24 | 24 | $message->name = $user->name; $message->link = $link; $message->copyright = Date::getYear(); |
25 | 25 | |
26 | 26 | $to = $user->email; $sender = Settings::get('site_title'); $reply_to = Settings::get('system_email'); |
27 | 27 | |
28 | - $from = ((false !== ($host = parse_url(Settings::get('system_url'), PHP_URL_HOST))) ? ('noreply@' . $host) : ''); |
|
28 | + $from = ((false !== ($host = parse_url(Settings::get('system_url'), PHP_URL_HOST))) ? ('noreply@'.$host) : ''); |
|
29 | 29 | |
30 | 30 | # ------------------------ |
31 | 31 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | public static function sendPasswordMessage(Entitizer\Entity\User $user, string $code) : bool { |
40 | 40 | |
41 | - $link = (Settings::get('system_url') . (Auth::isAdmin() ? '/admin' : '/profile') . '/recover?code=' . $code); |
|
41 | + $link = (Settings::get('system_url').(Auth::isAdmin() ? '/admin' : '/profile').'/recover?code='.$code); |
|
42 | 42 | |
43 | 43 | return self::send($user, 'Reset', Language::get('MAIL_SUBJECT_RESET'), $link); |
44 | 44 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | public static function sendRegistrationMessage(Entitizer\Entity\User $user) : bool { |
51 | 51 | |
52 | - $link = (Settings::get('system_url') . (Auth::isAdmin() ? '/admin' : '/profile')); |
|
52 | + $link = (Settings::get('system_url').(Auth::isAdmin() ? '/admin' : '/profile')); |
|
53 | 53 | |
54 | 54 | return self::send($user, 'Register', Language::get('MAIL_SUBJECT_REGISTER'), $link); |
55 | 55 | } |