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 | |
/* | |
создать папку /formitlog/ и выставить права на запись | |
для крона задачу поставить на выгрузку файла, | |
если выгрузка прошла успешно удаление, | |
*/ | |
$filename = $_SERVER[DOCUMENT_ROOT].'/formitlog/formit.csv'; | |
$string = ''; |
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 | |
/* | |
1605/01;иван;носки 1шт 100р,трусы 1шт 200р;Москва, ул Альбина д5; хочу побыстрее | |
*/ | |
$index = $_SERVER[DOCUMENT_ROOT].'/index.php'; | |
// Подключаем | |
define('MODX_API_MODE', true); | |
//require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/index.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 | |
/** | |
* TV Input Types English lexicon topic | |
* | |
* @language en | |
* @package modx | |
* @subpackage lexicon | |
*/ | |
$_lang['autotag'] = 'Авто-метка'; | |
$_lang['text'] = 'Текст'; |
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
<script> | |
$(document).on('af_complete', function(event, response) { | |
var form = response.form; | |
if (response.success) { | |
$.fancybox.close(); | |
$.fancybox('<h1>' + response.message + '</h1>'); | |
} | |
}); | |
</script> |
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
<div class="modal fade" id="successModal" tabindex="-1" role="dialog" aria-labelledby="successModalLabel"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
<h4 class="modal-title" id="successModalLabel">Спасибо</h4> | |
</div> | |
<div class="modal-body"> | |
</div> |
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
$(document).ready(function() { | |
AjaxForm.Message.success = function() {}; | |
}); |
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
86937 isset | |
43159 echo | |
31697 empty | |
29252 substr | |
26146 count | |
24248 is_array | |
22572 strlen | |
19365 sprintf | |
18090 unset | |
16584 str_replace |
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
I use the first | |
Preferences -> Settings - User и добавить туда следующую строчку: "update_check": false, | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
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(!isset($parent))$parent=$modx->documentObject['id'] ; | |
$table_name = $modx->db->config['table_prefix'].'site_content'; | |
$result = $modx->db->query( "SELECT COUNT(*) FROM $table_name WHERE parent='".$parent."' AND published='1' AND hidemenu='0'" ); | |
$total_rows = $modx->db->getRow( $result ); | |
if( $total_rows["COUNT(*)"] != 0) |
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 | |
/** | |
* определяет наличие не скрытых в дереве детей ресурса | |
* | |
* @var {xPDO|xPDO} | |
*/ | |
$parent = !empty($parent) ? $parent : $modx->resource->id; | |
$q = $modx->newQuery('modResource'); | |
$q->where(array( | |
'show_in_tree' =>1, |