diff --git a/README.md b/README.md index c143350..bc68ed9 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ if(isset($_POST['regbtn'])){ $_SESSION['username'] = $username; Reload::run(); }else{ - echo '
Error: cannot login correctly!
'; + echo PPDB::failed("Error: cannot login correctly!"); } } @@ -184,17 +184,17 @@ if(isset($_POST['regbtn'])){ if(isset($_POST['cs'])){ if(!PPDBLogic::storageExists(ROOT)){ PPDB::createStorage(ROOT); # ROOT or ROOT_FORWARD - echo 'Storage created
'; + echo PPDB::success("Storage created"); }else{ - echo '
Storage already exists
'; + echo PPDB::failed("Storage already exists."); } } if(isset($_POST['rs'])){ if(PPDBLogic::storageExists(ROOT)){ PPDB::removeStorage(ROOT, DS); # ROOT/ROOT_FORWARD || DS/DS_FORWARD - echo '
Storage Removed
'; + echo PPDB::success("Storage Removed."); }else{ - echo '
Storage does not exist.
';
+ echo PPDB::failed("Storage does not exist.");
}
@@ -216,8 +216,49 @@ if(isset($_POST['regbtn'])){
- ";
+
";
+ echo "
Database does not exist.
'; + echo PPDB::failed("Database does not exist"); } } if(isset($_POST['LoadLinkedTable'])){ @@ -361,7 +402,7 @@ if(isset($_POST['exec_change_psw']) && SESSION_USER){ if($copyNew === $new){ PPDB::CHANGE_PSW(ROOT, $old, $new); }else{ - echo '
The New Password does not match.
'; + echo PPDB::failed("The New Password does not match"); } } @@ -374,10 +415,12 @@ if(isset($_POST['exec_change_psw']) && SESSION_USER){