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
+
-
+
## 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();
?>
+
+
+
+
Добро пожаловать, =$user_fields['name'];?>! Выход
=print_r($user_fields, true);?>
@@ -72,8 +77,51 @@ endif;
echo '
'.session_id().'
';
+echo '
';
+?>
+
+
+
/*
Регистрация
*/
diff --git a/loginform.png b/loginform.png
new file mode 100644
index 0000000..c274b8e
Binary files /dev/null and b/loginform.png differ
diff --git a/user-example.png b/user-example.png
index cfbd651..b57717b 100644
Binary files a/user-example.png and b/user-example.png differ