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
Google Charts Colorlist (2013): | |
#3366cc | |
#dc3912 | |
#ff9900 | |
#109618 | |
#990099 | |
#0099c6 | |
#dd4477 | |
#66aa00 |
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 | |
$jversion = new JVersion(); | |
$version = $jversion->RELEASE; | |
do { | |
$file = 'integration-j'. str_replace('.', '', $version); | |
if (file_exists($file)) { | |
require_once $file; |
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 | |
/** | |
* Export MySQL users and permissions | |
* | |
* This script exports raw CREATE USER and GRANT queries of a given database | |
* to help migrate MySQL users and permissions to a new server. | |
* Users will keep their passwords across the migration. | |
* | |
* Warning: The import queries expects exactly the same database structure! | |
* |
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 | |
/* | |
* #FridayFun | |
* Can you figure this out :) | |
*/ | |
header("Content-type: text/plain; Charset=UTF-8"); | |
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
/** | |
* Remove mootools-more to have Bootstrap carousel working. | |
* @return void | |
*/ | |
public static function removeMTMore() | |
{ | |
$headers = JFactory::getDocument()->getHeadData(); | |
foreach($headers['scripts'] as $url => $type) | |
{ |
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
function q($query) { | |
echo "<pre>"; | |
$q = str_replace("#__", JFactory::getConfig()->get('dbprefix'), (string) $query); | |
var_dump($q); | |
echo "</pre>"; | |
} |