0
require_once INCLUDES_DIR."/class/Session.php";
0
require_once INCLUDES_DIR."/interface/Feather.php";
0
+ set_locale($config->locale);
0
$flash = Flash::current();
0
- set_locale($config->locale);
0
- # Require feathers/modules and load their translations.
0
+ * Contains all of the enabled Feather's Classes.
0
foreach ($config->enabled_feathers as $index => $feather) {
0
if (!file_exists(FEATHERS_DIR."/".$feather."/".$feather.".php")) {
0
unset($config->enabled_feathers[$index]);
0
load_translator($feather, FEATHERS_DIR."/".$feather."/locale/".$config->locale.".mo");
0
require FEATHERS_DIR."/".$feather."/".$feather.".php";
0
+ $camelized = camelize($feather);
0
+ if (!class_exists($camelized))
0
+ $feathers[$feather] = new $camelized;
0
+ $feathers[$feather]->safename = $feather;
0
+ if (!ADMIN and $route->action != "feed")
0
+ foreach (YAML::load(FEATHERS_DIR."/".$feather."/info.yaml") as $key => $val)
0
+ $feathers[$feather]->$key = (is_string($val)) ? __($val, $feather) : $val ;
0
+ * Contains all of the enabled Module's Classes.
0
foreach ($config->enabled_modules as $index => $module) {
0
if (!file_exists(MODULES_DIR."/".$module."/".$module.".php")) {
0
unset($config->enabled_modules[$index]);
0
load_translator($module, MODULES_DIR."/".$module."/locale/".$config->locale.".mo");
0
require MODULES_DIR."/".$module."/".$module.".php";
0
+ $camelized = camelize($module);
0
+ if (!class_exists($camelized))
0
+ $modules[$module] = new $camelized;
0
+ $modules[$module]->safename = $module;
0
+ foreach (YAML::load(MODULES_DIR."/".$module."/info.yaml") as $key => $val)
0
+ $modules[$module]->$key = (is_string($val)) ? __($val, $module) : $val ;
0
- # Load the /clean/urls into their correct $_GET values.
0
- $route->determine_action();
0
+ # Now that they're all instantiated, call __init().
0
+ foreach ($feathers as $feather)
0
+ if (method_exists($feather, "__init"))
0
+ foreach ($modules as $module)
0
+ if (method_exists($module, "__init"))
0
+ $route->determine_action();
0
# Holds the current user and their group.
0
$theme = PREVIEWING ? $_GET['theme'] : $config->theme;
0
- # Absolute path to /themes/(current
theme)
0
+ # Absolute path to /themes/(current
/previewed theme)
0
define('THEME_DIR', MAIN_DIR."/themes/".$theme);
0
- # URL to /themes/(current
theme)
0
+ # URL to /themes/(current
/previewed theme)
0
define('THEME_URL', $config->chyrp_url."/themes/".$theme);
0
$theme = Theme::current();
0
foreach (YAML::load(THEME_DIR."/info.yaml") as $key => $val)
0
- header("Content-type: ".fallback($theme->type, "text/html")."; charset=UTF-8");
0
- header("Content-type: text/html; charset=UTF-8");
0
- # These are down here so that the modules are
0
- # initialized after the $_GET values are filled.
0
- * Contains all of the enabled Feather's Classes.
0
- foreach ($config->enabled_feathers as $feather) {
0
- $camelized = camelize($feather);
0
- if (!class_exists($camelized)) continue;
0
- $feathers[$feather] = new $camelized;
0
- $feathers[$feather]->safename = $feather;
0
- if (!ADMIN and $route->action != "feed") continue;
0
- foreach (YAML::load(FEATHERS_DIR."/".$feather."/info.yaml") as $key => $val)
0
- $feathers[$feather]->$key = (is_string($val)) ? __($val, $feather) : $val ;
0
- * Contains all of the enabled Module's Classes.
0
- foreach ($config->enabled_modules as $module) {
0
- $camelized = camelize($module);
0
- if (!class_exists($camelized)) continue;
0
- $modules[$module] = new $camelized;
0
- $modules[$module]->safename = $module;
0
- foreach (YAML::load(MODULES_DIR."/".$module."/info.yaml") as $key => $val)
0
- $modules[$module]->$key = (is_string($val)) ? __($val, $module) : $val ;
0
- # Now that they're all instantiated, call __init().
0
- foreach ($feathers as $feather)
0
- if (method_exists($feather, "__init"))
0
- foreach ($modules as $module)
0
- if (method_exists($module, "__init"))
0
+ header("Content-type: ".(INDEX ? fallback($theme->type, "text/html") : "text/html")."; charset=UTF-8");
0
$route->check_custom_routes();
0
$route->check_viewing_page();
0
$route->check_viewing_post(true);
0
- $route->check_viewing_post();
0
$route->check_viewing_page(true);
0
+ $route->check_viewing_post();
0
+ $trigger->call("runtime");
0
$trigger->call("runtime");
0
$statuses = array("public");
0
$statuses[] = "registered_only";
0
if ($visitor->group()->can("view_private"))
0
$statuses[] = "private";