Updated quickly README.md
Corrected searchbar css Added PDO timeout
This commit is contained in:
parent
cdc10a1b8a
commit
7cb9f3e5e5
25
README.md
25
README.md
|
@ -1,2 +1,23 @@
|
||||||
# stef
|
```yaml
|
||||||
Personal project
|
project: LogAuth
|
||||||
|
version: 2.0-1
|
||||||
|
developers:
|
||||||
|
- xdrm-brackets
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Introduction
|
||||||
|
This project's aim is to help manage any kind of set of resources. For instance it could manage machines in a park, doors in a hotel, cars in a company park, etc.
|
||||||
|
|
||||||
|
The main functionalities are to :
|
||||||
|
1. Identify each user with a RFID card.
|
||||||
|
2. Give access or not to these resources.
|
||||||
|
3. Log every access to resources.
|
||||||
|
|
||||||
|
|
||||||
|
#### System elements
|
||||||
|
The system contains 2 types of elements:
|
||||||
|
- SMMP (Secure Management and Monitoring Platform)
|
||||||
|
- SATS (Secure Authentication and Tracking System)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,8 @@
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
$this->pdo = new \PDO('mysql:host='.$this->host.';dbname='.$this->dbname, $this->username, $this->password);
|
// create instance with arguments + 10sec timeout
|
||||||
|
$this->pdo = new \PDO('mysql:host='.$this->host.';dbname='.$this->dbname, $this->username, $this->password, [\PDO::ATTR_TIMEOUT => 10]);
|
||||||
|
|
||||||
// On signale que tout s'est bien passe
|
// On signale que tout s'est bien passe
|
||||||
$this->error = Error::Success;
|
$this->error = Error::Success;
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"local": {
|
"local": {
|
||||||
"host" : "localhost",
|
"host" : "localhost",
|
||||||
"dbname" : "logauth",
|
"dbname" : "logauth",
|
||||||
"user" : "php",
|
"user" : "php-logauth",
|
||||||
"password" : "Qt358nUdyeTxLDM8"
|
"password" : "rdwVw7n3b4F6t3hp3HMnEfsa"
|
||||||
},
|
},
|
||||||
"remote": {
|
"remote": {
|
||||||
"host" : "xdrm.io",
|
"host" : "xdrm.io",
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
// width: calc( 100% - 2*1em - 2*1em );
|
// width: calc( 100% - 2*1em - 2*1em );
|
||||||
flex: calc( 100% - 2*1em - 2*1em );
|
flex: calc( 100% - 2*1em - 2*1em );
|
||||||
height: 1em;
|
// height: 1em;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
padding: .5em 1em;
|
padding: .5em 1em;
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
<?php
|
||||||
|
|
||||||
require_once __ROOT__.'/autoloader.php';
|
require_once '../autoloader.php';
|
||||||
|
|
||||||
use \router\core\Router;
|
use \router\core\Router;
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
|
|
||||||
|
|
||||||
/* (4) api/module/method -> Api */
|
/* (4) api/module/method -> Api */
|
||||||
$R->post('api(?:/(.*))?', function($url){
|
$R->post('api(?:/(.*))/??', function($url){
|
||||||
$request = ModuleRequest::fromPost($url, $_POST);
|
$request = ModuleRequest::fromPost($url, $_POST);
|
||||||
$answer = $request->dispatch();
|
$answer = $request->dispatch();
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Loading…
Reference in New Issue