Esempio n. 1
0
// get the validation methods
cc_core_include('cc-validate.php');
// setup settings manager
cc_core_include('cc-settings.php');
// i18n is important!
cc_core_include('cc-i18n.php');
cc_core_include('cc-editors.php');
cc_core_include('cc-users.php');
// setup plugin architecture
cc_core_include('cc-plugins.php');
// let some things run (pulling settings, etc) before we go on to pull the page info
plugin('system_ready');
// the all important theme
cc_core_include('cc-themes.php');
plugin('system_after_themes_load');
// and finally: the content
cc_core_include('cc-content.php');
plugin('system_after_content_load');
// let's display something :)
cc_theme_include(Content::getTheme());
plugin('system_complete');
if (TH_DEBUG) {
    register_shutdown_function(function () {
        $time = microtime(true) - CC_START;
        $dbTime = Database::$totalTime;
        echo "<p>Took: " . round($time, 4) . " seconds or " . round($time * 1000, 3) . " milliseconds (DB: " . round($dbTime * 1000, 4) . " milliseconds " . round($dbTime / $time, 6) . "%).</p>";
        echo "<pre>";
        print_r(Log::getLog());
        echo "</pre>";
    });
}
Esempio n. 2
0
<?php

require_once dirname(__FILE__) . '/../cc-config.php';
// include hooking capabilites
require_once TH_CORE . 'cc-hooks.php';
// include include manager
require_once TH_CORE . 'cc-includes.php';
cc_core_include(array('cc-functions.php', 'cc-message.php', 'cc-log.php', 'cc-utf8.php', 'cc-database.php', 'cc-table.php', 'cc-forms.php', 'cc-uploadify.php', 'cc-users.php'));
plugin('system_after_content_load');