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('TL_ROOT')) die('You cannot access this file directly!'); | |
class XBreadCrumb extends Frontend | |
{ | |
/** | |
* Constructor | |
*/ | |
public function __construct() | |
{ |
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 | |
/** | |
* Initialize the system | |
*/ | |
$dir = dirname(isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : __FILE__); | |
while ($dir && $dir != '.' && $dir != '/' && !is_file($dir . '/system/initialize.php')) { | |
$dir = dirname($dir); | |
} |
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 | |
$objResult = Database::getInstance() | |
->prepare('SELECT id, email FROM orm_avisota_recipient') | |
->execute(); | |
$objTester = new Swift_Mime_Grammar(); | |
while($objResult->next()) | |
{ |
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 | |
// MM | |
use MetaModels\Filter\Rules\SearchAttribute as MetaModelFilterRuleSearchAttribute; | |
use MetaModels\Filter\Setting\Factory as MetaModelFilterSettingsFactory; | |
// Isotope | |
use Isotope\Model\Product; | |
/** | |
* PHP version 5 |
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 | |
$objResult = Database::getInstance()->prepare('SELECT * FROM XXXX') ->execute(); | |
while($objResult->next()) | |
{ | |
$objTlFiles = Database::getInstance() | |
->prepare('SELECT * FROM tl_files WHERE path=?') | |
->execute($objResult->image); | |
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 | |
/** | |
* The MetaModels extension allows the creation of multiple collections of custom items, | |
* each with its own unique set of selectable attributes, with attribute extendability. | |
* The Front-End modules allow you to build powerful listing and filtering of the | |
* data in each collection. | |
* | |
* PHP version 5 | |
* @package MetaModels |
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 | |
// config.php | |
$GLOBALS['TL_HOOKS']['replaceInsertTags'][] = array('ExtendedComments', 'myReplaceInsertTags'); | |
class ExtendedComments | |
{ | |
/** | |
* Replace a inserttag. | |
* | |
* @param $strTag The inserttag. |
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
mysql -u [user] -p[password] [database] -P [port] -h [host] |
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 | |
function log_place() | |
{ | |
$e = new \Exception(); | |
$trace = $e->getTrace(); | |
$file = @$trace[0]['file']; | |
$line = @$trace[0]['line']; | |
$class = @$trace[1]['class']; |
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 | |
/** | |
* Contao Open Source CMS | |
* | |
* @copyright MEN AT WORK 2014 | |
* @package ..... | |
* @license GNU/LGPL | |
* @filesource | |
*/ |
OlderNewer