diff --git a/README.md b/README.md index a4c439a..589c1cb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # BasicFramework A simple framework for building web applications +![alt text](loginform.png "Login form") -![alt text](user-example.png "Описание будет тут") +![alt text](user-example.png "Private user section") ## class DataBase When creating a class in the constructor, you must specify the data for connecting to the database
diff --git a/example.php b/example.php index d0c1aea..cbb5e95 100644 --- a/example.php +++ b/example.php @@ -6,14 +6,15 @@ https://it-stories.ru */ require_once $_SERVER['DOCUMENT_ROOT'].'/core/bootstrap.php'; - +echo '
'; /* Авторизация */ + if($_REQUEST['act']=='login'){ if(!$User->SecurityAuthorize($_REQUEST['login'], $_REQUEST['password'])) { - echo 'login fail!
'; + echo '
login fail!
'; } } @@ -25,6 +26,10 @@ if($_GET['act']=='logout') { if($User->is_user()): $user_fields = $User->getFields(); ?> + + + +

Добро пожаловать, ! Выход

- -
+ +


@@ -72,8 +77,51 @@ endif; echo '
'.session_id().'
'; +echo '
'; +?> + + +