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
_log_pskb(date_created,link_id,logname,log) | |
account(id,uid,sum) | |
account_attach(account_id,file_id,name,orig_name) | |
account_transaction(user_id,yd) | |
activate_service(code,email,data) | |
admin_log_users(user_id,log_id,last_comment_view) | |
annoy(ip,last_req) | |
articles(title,short,msgtext,sign,logo,link) | |
articles_comments(from_id,parent_id,from_ip,created_time,article_id,msgtext,youtube_link) | |
articles_comments_files(comment_id,file_id,small,inline,temp) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 vimeo_thumb_size( $id, $size = 'large' ) { | |
// Sanitize the variables | |
$id = esc_attr( $id ); | |
$size = esc_attr( $size ); | |
// Stop if no video ID entered | |
if ( empty( $id ) ) | |
return 'Error - no video ID specified'; |
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 | |
/**************************************/ | |
/** HtmlFromNabor snippet for MODX Revo | |
* | |
* @version 0.2 | |
* @author Borisov Evgeniy aka Agel Nash (agel-nash@xaker.ru) | |
* @date 18.12.2012 | |
* | |
* @category snippet | |
* @internal @modx_category System |
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
Call the snippet | |
[[multiCols? | |
&cols=`2` | |
&tvs=`{"image":1}` | |
&select=`pagetitle,introtext` | |
&where=`{"published":1, "deleted":0, "parent":2}` | |
&sortby=`publishedon` | |
&sortdir=`DESC` | |
&tpl=`tpl_article` |
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
$('.order').click(function(){ | |
var ide = $(this).parent().find('input:hidden').val(); | |
$.ajax({ | |
type: "POST", | |
data: 'action=ADD2BASKET&ajax_basket=Y&id='+ide, | |
url: '/', | |
success: function(data){ | |
data = data.split('\'').join('\u0022'); | |
var obj = JSON && JSON.parse(data) || $.parseJSON(data); | |
if (obj.STATUS == 'OK'){ |
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 | |
//Полный путь к папке, в которой лежат "UPD" Последний слеш не нужен! | |
$dir = '/home/bitrix.dev/www/bitrix/your.upd.folder'; | |
if ($handle = opendir($dir)) { | |
while (false !== ($entry = readdir($handle))) { | |
if($entry == "." || $entry == ".."){continue;} | |
$string = file_get_contents($dir."/".$entry); |
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
—– BEGIN LICENSE —– | |
TwitterInc | |
200 User License | |
EA7E-890007 | |
1D77F72E 390CDD93 4DCBA022 FAF60790 | |
61AA12C0 A37081C5 D0316412 4584D136 | |
94D7F7D4 95BC8C1C 527DA828 560BB037 | |
D1EDDD8C AE7B379F 50C9D69D B35179EF | |
2FE898C4 8E4277A8 555CE714 E1FB0E43 | |
D5D52613 C3D12E98 BC49967F 7652EED2 |
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
## Sublime Text 3 Serial key build is 3103 | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
B085E65E 2F5F5360 8489D422 FB8FC1AA |
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 | |
/** Возвращает разделы и вложенные подразделы в иерархическом виде */ | |
function getSectionList($filter, $select) | |
{ | |
$dbSection = CIBlockSection::GetList( | |
Array( | |
'DEPTH_LEVEL' => 'ASC', | |
'SORT' => 'ASC' | |
), |
OlderNewer