Skip to content

Instantly share code, notes, and snippets.

<?php
function load_settings($force_refresh = FALSE, $return_all = FALSE)
{
global $SESS, $DB, $REGX, $PREFS;
$settings = array();
$site_id = $PREFS->ini('site_id');
if(
function insert($at, $html)
{
global $SESS;
$SESS->cache['lg'][LG_POL_addon_id]['snippets'][$at][] = $html;
}
function insert_css($css, $file = TRUE, $at = "head")
{
if($file)
{
<?php
$routes = array(
array(
"route" => "^(.*)/addon/(.*)/tickets",
"template_group" => "site",
"template" => "archives",
"query_string" => "%1/%2/%3/%4"
)
);
?>
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
#http://gist.github.com/31934