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
Ext.onReady(function() { | |
Ext.getCmp('modx-layout').hideLeftbar(); | |
}); |
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
modx -2by2host -from:modx -from:modx_feeds -to:modx -from:wehatejbieber -modx_ch -mr_modx -/logs/modx -noon_modx lang:en |
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 | |
set_time_limit(0); | |
class Timer { | |
public $timer = 0; | |
public function start() { | |
$mtime = microtime(); | |
$mtime = explode(" ", $mtime); | |
$mtime = $mtime[1] + $mtime[0]; | |
$this->timer = $mtime; |
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
------------------------------------------------------------------------------- | |
Language files blank comment code | |
------------------------------------------------------------------------------- | |
PHP 2218 24654 71713 180956 | |
Javascript 223 3906 5440 49419 | |
CSS 99 5030 1072 24588 | |
XML 16 469 303 2903 | |
Java 1 47 62 182 | |
SQL 4 20 37 120 | |
Smarty 3 5 0 58 |
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 modElementCategoryUpdateProcessor extends modObjectUpdateProcessor { | |
public $classKey = 'modCategory'; | |
public $languageTopics = array('category'); | |
public $permission = 'save_category'; | |
public $objectType = 'category'; | |
} | |
return 'modElementCategoryUpdateProcessor'; |
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(dirname(__FILE__)).'/create.class.php'); | |
/** | |
* Create a snippet. | |
* | |
* @param string $name The name of the element | |
* @param string $snippet The code of the snippet. | |
* @param string $description (optional) A brief description. | |
* @param integer $category (optional) The category to assign to. Defaults to no | |
* category. |
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(dirname(__FILE__)).'/create.class.php'); | |
/** | |
* Creates a chunk. | |
* | |
* @param string $name The name of the chunk. | |
* @param string $description (optional) The description of the chunk. | |
* @param integer $category The category the chunk is assigned to. | |
* @param string $snippet The code of the chunk. | |
* @param boolean $locked Whether or not the chunk can only be accessed by |
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__) . '/update.class.php'); | |
/** | |
* Update a setting from a grid | |
* | |
* @param string $key The key of the setting | |
* @param string $oldkey The old key of the setting | |
* @param string $value The value of the setting | |
* @param string $area The area for the setting |
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 modActionCreateProcessor extends modProcessor { | |
/** @var modAction $action */ | |
public $action; | |
public function checkPermissions() { | |
return $this->modx->hasPermission('actions'); | |
} | |
public function getLanguageTopics() { | |
return array('action','menu','namespace'); |
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 | |
/** | |
* Gets a list of database tables | |
* | |
* @package modx | |
* @subpackage processors.system.databasetable | |
*/ | |
class modDatabaseTableGetListProcessor extends modDriverSpecificProcessor { | |
public function checkPermissions() { | |
return $this->modx->hasPermission('database'); |