-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
53 lines (44 loc) · 1.19 KB
/
main.cpp
File metadata and controls
53 lines (44 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "Utility.h"
#include "Server.h"
/*
* Available commands to send:
* DEL <IndexIntValue>
* FND Login%Password%
* REG Login%Password%
*
*
* План капкан:
* Check for admin while found somebody
* Input Validation
* User Already in Database
* Data Already in Database - 2 ways check - reserved for user or not
* User 10 length login and pass
* Functions for:
* Database add sing
* Databse check sign for reserved
* Check what is reserved
* Get all reserved
* Find reserved by user
* Parse all signs
*
* Database reserve by user
*
*
*
*
*/
int main() {
Database::ParseUserData();
Database::ParseResData();
//Database::DeleteData(3);
//Database::AddNewReservation("ZCLASS", "08.05.2023/18:44", "33", "NONE");
Server::Initialize();
int RecvCommand = Server::Listen();
//cout << Database::FindUser("Admin", "PassWE3FGD");
// for (auto i : Database::ParsedReservedData) {
// cout << i.Index << i.Type << i.Date << i.Place << i.User <<'\n';
// }
int a;
cin >> a;
return 0;
}