diff --git a/app/classes/feedback.php b/app/classes/feedback.php index 394a417..c265522 100644 --- a/app/classes/feedback.php +++ b/app/classes/feedback.php @@ -53,6 +53,21 @@ class Feedback { ] ]; + const REGISTER = [ + 'SUCCESS' => [ + 'type' => self::TYPE_SUCCESS, + 'dismissible' => true + ], + 'FAILED' => [ + 'type' => self::TYPE_ERROR, + 'dismissible' => true + ], + 'DISABLED' => [ + 'type' => self::TYPE_ERROR, + 'dismissible' => false + ], + ]; + const SECURITY = [ 'WHITELIST_ADD_SUCCESS' => [ 'type' => self::TYPE_SUCCESS, @@ -100,19 +115,15 @@ class Feedback { ] ]; - const REGISTER = [ - 'SUCCESS' => [ + const THEME = [ + 'THEME_CHANGE_SUCCESS' => [ 'type' => self::TYPE_SUCCESS, 'dismissible' => true ], - 'FAILED' => [ + 'THEME_CHANGE_FAILED' => [ 'type' => self::TYPE_ERROR, 'dismissible' => true - ], - 'DISABLED' => [ - 'type' => self::TYPE_ERROR, - 'dismissible' => false - ], + ] ]; const SYSTEM = [ diff --git a/app/includes/strings.php b/app/includes/strings.php index 3d0c5f9..22efe83 100644 --- a/app/includes/strings.php +++ b/app/includes/strings.php @@ -16,6 +16,11 @@ return [ 'IP_NOT_WHITELISTED' => 'Access denied. Your IP address is not whitelisted.', 'TOO_MANY_ATTEMPTS' => 'Too many login attempts. Please try again later.', ], + 'REGISTER' => [ + 'SUCCESS' => 'Registration successful. You can log in now.', + 'FAILED' => 'Registration failed: %s', + 'DISABLED' => 'Registration is disabled.', + ], 'SECURITY' => [ 'WHITELIST_ADD_SUCCESS' => 'IP address successfully added to whitelist.', 'WHITELIST_ADD_FAILED' => 'Failed to add IP to whitelist.', @@ -31,10 +36,9 @@ return [ 'PERMISSION_DENIED' => 'Permission denied. You do not have the required rights.', 'IP_REQUIRED' => 'IP address is required.', ], - 'REGISTER' => [ - 'SUCCESS' => 'Registration successful. You can log in now.', - 'FAILED' => 'Registration failed: %s', - 'DISABLED' => 'Registration is disabled.', + 'THEME' => [ + 'THEME_CHANGE_SUCCESS' => 'Theme has been changed successfully.', + 'THEME_CHANGE_FAILED' => 'Failed to change theme. The selected theme may not be available.', ], 'SYSTEM' => [ 'DB_ERROR' => 'Error connecting to the database: %s',