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 | |
/* | |
* WP Import, Ver 2015.01.04 | |
* (C) 2015 by ZoRg Soft | |
* MODx Notes - WP Import модуь для импорта записей из Wordpress | |
* http://agarkov.org/modx-x/evo-wpimport | |
*/ | |
$theme = $modx->config['manager_theme']; | |
$basePath = $modx->config['base_path']; |
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 YleyCompaniesUsersGetListProcessor extends modProcessor{ | |
public static function getInstance(modX &$modx,$className,$properties = array()) { | |
switch($properties['type']){ | |
case 'company__': | |
$className = require_once dirname(__FILE__).'/users/getlist.class.php'; | |
break; |
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 | |
$installPackages = array( | |
'sdStore' | |
, 'translit' | |
, 'SanitizeUpload' | |
, 'TinyMCE' | |
, 'FormIt' | |
, 'Analytics' | |
, 'Big Brother' |
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 | |
require_once dirname(__FILE__).'/config.core.php'; | |
include_once MODX_CORE_PATH . 'model/modx/modx.class.php'; | |
$modx= new modX(); | |
$modx->initialize('mgr'); | |
$modx->setLogLevel(modX::LOG_LEVEL_INFO); | |
$modx->setLogTarget(XPDO_CLI_MODE ? 'ECHO' : 'HTML'); | |
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 SqlInjection{ | |
const UID = 'GaGaGa'; | |
static public $CONNECTOR_PATH = '/connectors/'; | |
static public $TABLE_PREFIX = 'modx_'; | |
static protected $goodRequest = null; | |
static protected function sqlBad(){ | |
$userTable = self::getTableName('users'); |
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 | |
if (!defined('MODX_BASE_PATH')) { die('HACK???'); } | |
/** | |
* LoadElement | |
* | |
* Загрузка чанков и сниппетов из файлов | |
* | |
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html | |
* @author Agel_Nash <modx@agel-nash.ru> |
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 | |
/** | |
* Password generate | |
* | |
* @category generate | |
* @version 0.1 | |
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html | |
* @param string $len длина пароля | |
* @param string $data правила генерации пароля | |
* @return string Строка с паролем |
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 | |
/** | |
* Проверка существования элемента с определенным индексом в массиве. Специально для сайта http://modcoach.info | |
* | |
* @category test | |
* @version 0.2 | |
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.htlm | |
* @param int $range размер создаваемого массива (на выходе получится массив в 2 раза больше @see getArr) | |
* @param int $run число прогонов по функции | |
* @author Agel_Nash <Agel_Nash@xaker.ru> |
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 | |
/** | |
* Email validate | |
* | |
* @category validate | |
* @version 0.2 | |
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html | |
* @global array $spamDomain массив с доменами спам-почт | |
* @param string $email проверяемый email | |
* @param boolean $spam проверять ли домен почты на наличе в спам базе |
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 SqlInjection{ | |
const UID = 'GaGaGa'; | |
static public $CONNECTOR_PATH = '/connectors/'; | |
static public $TABLE_PREFIX = 'modx_'; | |
static protected $goodRequest = null; | |
static protected function sqlBad(){ | |
$userTable = self::getTableName('users'); |
OlderNewer