Exemplo n.º 1
0
 public static function display($args)
 {
     cc_admin_include('cc-users.php');
     Users::bootstrap();
     if (Users::isValid()) {
         //var_dump(self::$plugin->pluginPublicDir());
         cc_redirect(self::$plugin->pluginPublicDir() . "browser/");
     } else {
         cc_redirect(TH_PUB_ROOT);
     }
 }
Exemplo n.º 2
0
// include redirection utils
cc_core_include('cc-redirect.php');
// have we installed yet? this checks if $database and $timezone are set in the CC_CONFIG file.
define('INSTALLED', isset($database) && isset($timezone));
if (!INSTALLED) {
    cc_redirect('cc-admin/install/', true);
}
// the all important db abstraction layer
cc_core_include('cc-database.php');
// permissions
cc_admin_include('cc-permissions.php');
// get the validation methods
cc_core_include('cc-validate.php');
// setup settings manager
cc_core_include('cc-settings.php');
// themes
cc_core_include('cc-themes.php');
// i18n is important!
cc_core_include('cc-i18n.php');
// setup plugin architecture
cc_core_include('cc-plugins.php');
cc_core_include('cc-users.php');
plugin('system_ready');
cc_core_include('cc-content.php');
plugin('system_after_content_load');
cc_admin_include('cc-admin-sidebar.php');
plugin('system_before_admin_loaded');
// this is where the awesome is
cc_admin_include('cc-admin.php');
// let some things run (pulling settings, etc) before we go on to pull the page info
plugin('system_complete');