Updated quickly README.md

Corrected searchbar css
Added PDO timeout
This commit is contained in:
xdrm-brackets 2017-01-06 10:27:30 +01:00
parent 3f556c5884
commit ee6c28ae80
7 changed files with 585 additions and 11 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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",

View File

@ -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

View File

@ -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();

0
public_html/src/logauth.ico Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB