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
function buildTSFE($pid = 1) { | |
global $BACK_PATH; | |
//needed for TSFE | |
require_once(PATH_t3lib.'class.t3lib_timetrack.php'); | |
require_once(PATH_t3lib.'class.t3lib_tsparser_ext.php'); | |
require_once(PATH_t3lib.'class.t3lib_page.php'); | |
require_once(PATH_t3lib.'class.t3lib_stdgraphic.php'); | |
require_once($BACK_PATH.'sysext/cms/tslib/class.tslib_fe.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
<script type="text/javascript"> | |
$(function() { | |
var isValidEmailAddress = function(emailAddress) { | |
var pattern = new RegExp(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i); | |
return pattern.test(emailAddress); | |
}; | |
var validateCommaSeparatedEmails = function(emailAddresses) { | |
var emails = value.split(','); | |
var valid = true; |
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 Bruegelbe_InfocusController extends Herder_Controller_Action | |
{ | |
public function init() { | |
$context = $this->_helper->contextSwitch(); | |
$context->addActionContext('contentItems', array('json')) | |
->initContext(); | |
} | |
public function contentItemsAction() { | |
$tables = Bruegel_Model_Infocus::getTables(); |
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 | |
/** | |
* @package Joomla.Plugin | |
* @subpackage System.Overrides | |
* | |
* @copyright Copyright (C) 2012 Don Gilbert. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE | |
*/ | |
define('OVERRIDES', dirname(__FILE__).'/overrides'); |
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
# all php files :: disallow direct access of file | |
# between <?php and ?> | |
defined('_JEXEC') or die; | |
# index.php :: define variable with application | |
# between <?php and ?> | |
$app = JFactory::getApplication(); | |
# index.php :: define variable with document | |
# between <?php and ?> |
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
# Drop deprecated columns | |
ALTER TABLE `#__content` DROP `title_alias`; | |
ALTER TABLE `#__content` DROP `sectionid`; | |
ALTER TABLE `#__users` DROP `usertype`; | |
ALTER TABLE `#__session` DROP `usertype`; | |
ALTER TABLE `#__users` DROP KEY `whosonline`; | |
# Change tables for which we want to support foreign keys or transactions to InnoDB |
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 | |
function seo_friendly_url($url) { | |
$cyrillic = array("а", "б", "в", "г", "д", "ѓ", "е", "ж", "з", "ѕ", "и", "ј", "к", | |
"л", "љ", "м", "н", "њ", "о", "п", "р", "с", "т", "ќ", "у", "ф", | |
"х", "ц", "ч", "џ", "ш", "А", "Б", "В", "Г", "Д", "Ѓ", "Е", "Ж", | |
"З", "Ѕ", "И", "Ј", "К", "Л", "Љ", "М", "Н", "Њ", "О", "П", "Р", | |
"С", "Т", "Ќ", "У", "Ф", "Х", "Ц", "Ч", "Џ", "Ш"); | |
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 | |
function seo_friendly_url($url) { | |
$cyrillic = array("а", "б", "в", "г", "д", "ѓ", "е", "ж", "з", "ѕ", "и", "ј", "к", | |
"л", "љ", "м", "н", "њ", "о", "п", "р", "с", "т", "ќ", "у", "ф", | |
"х", "ц", "ч", "џ", "ш", "А", "Б", "В", "Г", "Д", "Ѓ", "Е", "Ж", | |
"З", "Ѕ", "И", "Ј", "К", "Л", "Љ", "М", "Н", "Њ", "О", "П", "Р", | |
"С", "Т", "Ќ", "У", "Ф", "Х", "Ц", "Ч", "Џ", "Ш"); | |
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
# Magento CE 1.4.1.1 | |
# Be sure to replace "" with your table prefix | |
SET FOREIGN_KEY_CHECKS=0; | |
############################## | |
# SALES RELATED TABLES | |
############################## | |
TRUNCATE `sales_flat_creditmemo`; | |
TRUNCATE `sales_flat_creditmemo_comment`; |
NewerOlder