This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name maxmobiles.lo *.maxmobiles.lo; | |
root /var/www/maxmobiles.lo; | |
error_log /var/www/maxmobiles.lo/log/error.log warn; | |
location / { | |
index index.html index.php; ## Allow a static html file to be shown first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://res.*.com/toolbarlogin?locationKey=f9a2ec39-e014-42e4-8179-ced205fd3ed8×tamp=1396867889611&hash=NDA0MTY4ZmUwOWQ3NDRkYzFkZTkyNzAyM2MxMTI2NjljMmZkY2ZhNjlkMDliOWU1MmM1ZjRiNWQ2NTUxYTZlNw== | |
GET такому URL должен залогинить пользователя и сделать редирект на актуальную для него страницу reservations(setup или home). | |
В запросе есть: | |
* locationKey - ключ локации | |
* timestamp - метка времени в UTC. На сервере будем проверять, чтобы timestamp попадал в границу 5 мин (например) между отправкой и получением запроса |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM `pos_brains` | |
WHERE `pos_brain_id` = (SELECT `pos_brain_id` FROM `locations` WHERE `location_id` = '5'); | |
DELETE FROM `employees` | |
WHERE `location_id` = '5'; | |
DELETE FROM `job_roles` | |
WHERE `location_id` = '5'; | |
DELETE FROM `choices` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once './vendor/autoload.php'; | |
abstract class Element | |
{ | |
protected $loop; | |
public $active = false; | |
public function __construct(\React\EventLoop\LoopInterface $loop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once './vendor/autoload.php'; | |
abstract class Element | |
{ | |
protected $loop; | |
public $active = false; | |
public function __construct(\React\EventLoop\LoopInterface $loop) |