Ejemplo n.º 1
0
 public function showFooter()
 {
     if (!$this->getOptions('completed')) {
         return;
     }
     $objTPL = self::getTPL();
     // run a check on simple
     $simple = $this->getOptions('mode') ? true : false;
     // see if we are gonna get the simple one or the full blown one
     $footer = $simple ? 'simple_footer.tpl' : 'site_footer.tpl';
     $objTPL->set_filenames(array('siteFooter' => self::$THEME_ROOT . $footer));
     $this->buildBlocks();
     cmsDEBUG ? memoryUsage('System: Finished Loading.') : '';
     if (defined('cmsDEBUG') && cmsDEBUG === true && (LOCALHOST || Core_Classes_User::$IS_ADMIN)) {
         $objDebug = Core_Classes_coreObj::getDebug();
         $objTPL->assign_block_vars('debug', array('DEBUG' => $objDebug->output()));
     }
     $objTPL->parse('siteFooter');
 }
Ejemplo n.º 2
0
/**
 * Global func to log data
 *
 * @version  1.0
 * @since    1.0.0
 * @author   Richard Clifford
 *
 * @param    mixed        $var
 * @param    mixed        $message
 * @param    string       $info
 *
 * @return   mixed
 */
function debugLog($var, $message = '', $type = 'info')
{
    $objDebug = Core_Classes_coreObj::getDebug();
    return $objDebug->log($var, $message, $type);
}
Ejemplo n.º 3
0
// AUTOLOADER, I Choose You!
// directories to use for the autoloading, these get glob'd over after
// $dirs = Core_Classes_coreObj::addClassDirs(array(
//     'classes'          => cmsROOT.'core/classes/*.php',
//     'libs'             => cmsROOT.'core/libs/*/class.*.php',
//     'drivers'          => cmsROOT.'core/drivers/driver.*.php',
//     'admin_panels'     => cmsROOT.'modules/*/admin.*.php',
//     'modules'          => cmsROOT.'modules/*/class.*.php',
//     'module_overrides' => cmsROOT.'themes/*/override/*/*.php',
// ));
spl_autoload_extensions('.php');
spl_autoload_register(array('Core_Classes_coreObj', 'loadClass'));
// echo dump($dirs, 'Loading Classes From', 'orange');exit;
$objCore = new Core_Classes_coreObj();
$objCore->addConfig($config);
// Instance plugins so we can add hooks as early as possible.
$objPlugin = Core_Classes_coreObj::getPlugins();
$objPlugin->hook('CMS_PRE_SETUP_COMPLETE');
$objCache = Core_Classes_coreObj::getCache();
$confCache = $objCache->load('config');
$objCore->addConfig($confCache);
$objSession = Core_Classes_coreObj::getSession();
$objSession->trackerInit();
$objDebug = Core_Classes_coreObj::getDebug();
$objRoute = Core_Classes_coreObj::getRoute();
$objRoute->modifyGET();
if (is_object($objDebug)) {
    set_error_handler(array($objDebug, 'errorHandler'));
}
cmsDEBUG ? memoryUsage('Core: Loaded..') : '';
$objPlugin->hook('CMS_SETUP_COMPLETE');