diff --git a/app/Controllers/MainController.php b/app/Controllers/MainController.php index b9ce584..da4e03d 100644 --- a/app/Controllers/MainController.php +++ b/app/Controllers/MainController.php @@ -21,6 +21,11 @@ class MainController { Page::set('About'); + } + public static function rules() + { + Page::set('Rules'); + } public static function logout() diff --git a/app/Core/Routes.php b/app/Core/Routes.php index 99f320b..fabcd62 100644 --- a/app/Core/Routes.php +++ b/app/Core/Routes.php @@ -20,6 +20,7 @@ class Routes Router::post('/api/login', 'ApiController@login'); Router::post('/api/register', 'ApiController@register'); Router::get('/about', 'MainController@about'); + Router::get('/rules', 'MainController@rules'); diff --git a/rules.txt b/rules.txt new file mode 100644 index 0000000..8071f28 --- /dev/null +++ b/rules.txt @@ -0,0 +1 @@ +Основные правила сайта. \ No newline at end of file diff --git a/views/pages/Register.php b/views/pages/Register.php index 9ed0558..2b7b7e6 100644 --- a/views/pages/Register.php +++ b/views/pages/Register.php @@ -36,6 +36,7 @@ if (Auth::userid() > 0) {
+

Регистрируясь на сервере , вы принимаете его правила.




@@ -90,7 +91,7 @@ if (Auth::userid() > 0) {
-

К сожалению, регистрация на сервере запрещена.

+

К сожалению, регистрация на сервере запрещена.

diff --git a/views/pages/Rules.php b/views/pages/Rules.php new file mode 100644 index 0000000..0f9d677 --- /dev/null +++ b/views/pages/Rules.php @@ -0,0 +1,45 @@ + + + + + + + + + + + + +
+ + + + + + + + + + + +
+

Правила сайта

+ +
+ + +
+
+ + + + \ No newline at end of file