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 | |
class menu | |
{ | |
private $data_arr = array(); | |
private $page_name = ''; | |
private $default_module = ''; | |
/** | |
* @param array $data_arr |
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
// Fields check | |
$('[name="group_name"]').blur(function() { | |
var value = $(this).val(); | |
var target = $(this).next(); | |
target.html('<img>'); | |
function getWarn(target, text) { | |
text = text || 'Поле не заполнено'; | |
target.find('img').attr('src', '/images/del_icon.png'); | |
target.html(target.html() + text); |
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 | |
session_start(); | |
require_once("../mod/mod_config.php"); | |
$filter = new filter; | |
if (isset($_POST['table'])) { | |
// Friends remover. | |
if ($_POST['table'] === 'friends') { | |
$person_id = $filter->html_filter(@$_POST['person_id']); | |
$friend_id = $filter->html_filter(@$_POST['friend_id']); |
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
# This is Git's per-user configuration file. | |
[user] | |
# Please adapt and uncomment the following lines: | |
name = xamedow (Andrey Hamedov) | |
email = xamedow@gmail.com | |
[core] | |
editor = subl | |
[color "branch"] | |
current = yellow reverse | |
local = yellow |
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
<? | |
// файл /local/php_interface/init.php | |
// регистрируем обработчик | |
AddEventHandler("iblock", "OnBeforeIBlockElementUpdate", Array("CIBlockHandler", "OnBeforeIBlockElementUpdateHandler")); | |
AddEventHandler("iblock", "OnBeforeIBlockElementAdd", Array("CIBlockHandler", "OnAfterIBlockElementAddHandler")); | |
/** | |
* Класс обработчик событий добавления/изменения элементов инфоблока «Учреждения (только подведомственные министерству!!!)». | |
* Разрешает запись выбранных полей только адимнистратору. | |
* Class CIBlockHandler |
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
upstream http_backend { | |
# INNER SERVER LOCAL IP:PORT | |
server 127.0.0.1:1337; | |
} | |
server { | |
listen 80; | |
server_name #YOUR SERVER IP OR DOMAIN; | |
# STATIC FRONTEND FILES | |
location / { |
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
import React, {Component, PropTypes} from 'react'; | |
class BadInputComponent extends Component { | |
static propTypes = { | |
text = PropTypes.string.isRequired, | |
updateText = PropTypes.func.isRequired, | |
}; | |
render() { | |
return ( |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
send_timeout 1800; | |
sendfile on; |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
OlderNewer