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
alert(12); | |
var d = document; | |
var ih=50; | |
var iw=60; | |
var ds=2; //diagonal step if 1 deny | |
var dj=8; //diagonal jamp if 4 deny | |
var it =0; //count for tmp_ch array each step | |
var ch = new Array(); | |
var tmp_ch = new Array(); | |
tmp_ch['x']=''; tmp_ch['y']=''; |
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 | |
$dictionary["px_books_users_1"] = array( | |
'true_relationship_type' => 'many-to-many', | |
'from_studio' => true, | |
'relationships' => | |
array( | |
'px_books_users_1' => | |
array( | |
'lhs_module' => 'PX_Books', | |
'lhs_table' => 'px_books', |
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 | |
// modules / PX_Orders / metadata / SearchFields . php | |
'range_date_start' => array( //range_<field_name> | |
'query_type' => 'default', | |
'enable_range_search' => true, | |
'is_date_field' => true | |
) | |
, 'start_range_date_start' => array( //start_range_<field_name> | |
'query_type' => 'default', | |
'enable_range_search' => true, |
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
BEGIN:VCALENDAR | |
VERSION:2.0 | |
METHOD:PUBLISH | |
X-WR-CALNAME: Administrator (SugarCRM) | |
PRODID:-//SugarCRM//SugarCRM Calendar//EN | |
BEGIN:VTIMEZONE | |
TZID:Europe/Kiev | |
X-LIC-LOCATION:Europe/Kiev | |
BEGIN:DAYLIGHT | |
TZOFFSETFROM:+0000 |
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
# How can I determine if Apache is installed on a system? | |
dpkg --get-selections | grep apache | |
# echo ----------------------- | |
# apache2 install | |
# apache2-doc install | |
# apache2-mpm-prefork install | |
# apache2-utils install | |
# apache2.2-bin install | |
# apache2.2-common install | |
# libapache2-mod-php5 install |
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
RegExp для обработки метаданных | |
Перейти к: навигация, поиск | |
Для использования в файлах типа vardefs.php | |
Первая строка: регулярка поиска, | |
вторя строка: регулярка замены. | |
array переносится в ту же строку, где знак = или => |
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
// ==UserScript== | |
// @name hideImages | |
// @namespace hideImages | |
// @description hideImages | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var pic = 'http://i.imgur.com/BkygUho.png'; | |
var a = '-1'; | |
while (a < document.images.length) { |
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 | |
// Чтобы добавить отношение между двумя модулями в sugarcrm нужно описать это отношение в сооствествующем файле. | |
// Например что бы добавить связь между мудулями Звонки и Проекты заявок, нужно совершить следующие действия. | |
// | |
//Создать файл custom/Extension/modules/Calls/Ext/Vardefs/sl_<module_name>.php если его еще нет. | |
// на самом деле название файла может быть любое, но рекомендуется называть его таким образом, | |
// что бы было понятно что он создан не через студию и его можно править. | |
// В даном конкретном случае название файла может быть | |
// custom/Extension/modules/Calls/Ext/Vardefs/sl_calls.php либо sl_Сalls.php либо просто sl_vardefs.php | |
// в файле описать метаданные |
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 | |
//в vardefs.php внука (Платежное требования) | |
//Заявка (дочерняя сущность) | |
'sl_request_id'=>array( | |
'type' => 'id', | |
'required' => false, | |
'name' => 'sl_request_id', | |
'vname' => 'LBL_REQUEST_NAME', | |
'massupdate' => 0, | |
'comments' => '', |
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
{ | |
"id": "571f80037bec2", | |
"pnr": "4BK60O", | |
"name": "CHERNYSHEVA TATIANA", | |
"amount": "14313.2", | |
"currency": "UAH", | |
"email": "[email protected]", | |
"phone": "380939914238", | |
"payment": { | |
"payment_variant": "payture", |
OlderNewer