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 | |
/** | |
* repo premodule | |
* | |
* @config &ftpHost=FTP адрес;string; &ftpUser=FTP пользователь;string &ftpPass=FTP пароль;string | |
*/ | |
$moduleId = $_GET['id']; | |
$moduleUrl = $modx->config['site_url'].'manager/index.php?a=112&id='.$moduleId; | |
$moduleDir = MODX_BASE_PATH.'assets/modules/repo/'; |
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 | |
/*************************************************************** | |
Name: Docmanager | |
Description: Class for editing/creating/duplicating/deleting documents | |
Version 0.5.3 | |
Author: ur001 | |
e-mail: [email protected] | |
Example of use: | |
require_once('assets/libs/docmanager/document.class.inc.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 | |
/** | |
* getYaD snippet | |
* @description Прием платежей через шлюз ЯД на сайте под управлением MODX Evo + шопкипера | |
* @author alooze ([email protected]) | |
* @version 0.1a | |
* @date 23.04.2014 | |
*/ | |
/** |
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 | |
/** | |
* usersInTv snippet | |
*/ | |
$list = 'Не задан==0'; | |
$res = $modx->db->select('internalKey, fullname, email', $modx->getFullTableName('user_attributes'), 'blocked=0'); | |
while ($row = $modx->db->getRow($res)) { | |
$list.= '||(M) '.$row['fullname'].'('.$row['email'].')=='.$row['internalKey']; | |
} |
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 | |
/************************************** | |
** TVmix plugin for Modx Evo | |
** | |
** @event OnDocFormSave | |
** @config &tv1=Строка с TV;string;&tv2=Результирующий TV ID;string;&action=Действие;string; | |
** | |
** @author alooze [email protected] | |
** | |
*************************************/ |
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 | |
class DocManagerBackend { | |
var $dm = null; | |
var $modx = null; | |
function DocManagerBackend(&$dm, &$modx) { | |
$this->dm = &$dm; | |
$this->modx = &$modx; | |
} |
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 | |
$tpl['chbox'] = <<<CODE | |
<input type="checkbox" name="[+name+]_chbox" id="[+name+]" value="1234" [+checked+] > | |
<label for="[+name+]">Нужное значение</label> | |
CODE; | |
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 | |
/** | |
* cleanEmptyBlock plugin for MODX Evo | |
* @Author: alooze ([email protected]) | |
* @Version: 0.3POC | |
* @Date: 16.04.2013 | |
* @Event: OnWebPagePrerender | |
* @Params: &passes=Количество проходов (Passes Count);text;1 | |
*/ |
NewerOlder