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 %ip%:%web_port%; | |
server_name %domain_idn% %alias_idn%; | |
root %docroot%/public; | |
index index.php index.html index.htm; | |
access_log /var/log/nginx/domains/%domain%.log combined; | |
access_log /var/log/nginx/domains/%domain%.bytes bytes; | |
error_log /var/log/nginx/domains/%domain%.error.log error; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; |
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 _ROOT . 'vendor/autoload.php'; //предполагаем композер для ADODB | |
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; | |
$ADODB_QUOTE_FIELDNAMES = true; | |
/** | |
* Базовый класс для бизнес-сущностей | |
* Реализует паттерн Active Directory |
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
function getTime(){ | |
list($msec,$sec)=explode(chr(32),microtime()); | |
$HeadTime=$sec+$msec; | |
return $HeadTime; | |
} |
NewerOlder