This file contains hidden or 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
#include <windows.h> | |
#include "ntdll.h" | |
#define __DEBUG__ 1000 | |
#define patternlen MAX_PATH*2 |
This file contains hidden or 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
[site.ru] | |
listen = /var/run/php5-site.sock | |
listen.mode = 0666 | |
user = user | |
group = user | |
chdir = /var/www/user/site.ru/www | |
php_admin_value[upload_tmp_dir] = /var/www/user/tmp | |
php_admin_value[soap.wsdl_cache_dir] = /var/www/user/tmp | |
php_admin_value[date.timezone] = Europe/Moscow | |
# тут значения можно поменять, в зависимости от нагрузки на сайт |
This file contains hidden or 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
upstream backend-site {server unix:/var/run/php5-site.sock;} | |
server { | |
server_name www.site.ru; | |
return 301 http://site.ru$request_uri; | |
} | |
server { | |
listen 80; | |
client_max_body_size 32m; | |
error_log /var/www/user/site.ru/logs/error.log; |
This file contains hidden or 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 | |
if ($modx->event->name == 'OnDocFormSave') { | |
if(isset($_POST['adress']) AND isset($_POST['phone']) ){ | |
$sellUSD = floatval($_POST['sellUSD']); | |
$buyUSD = floatval($_POST['buyUSD']); | |
$buyEUR = floatval($_POST['buyEUR']); | |
$buyUAN = floatval($_POST['buyUAN']); | |
$buyRUB = floatval($_POST['buyRUB']); |
NewerOlder