} if (!defined('K_PRETTY_URLS')) { define('K_PRETTY_URLS', 0); } if (!defined('K_EXTRACT_EXIF_DATA')) { define('K_EXTRACT_EXIF_DATA', 0); } define('K_MASQUERADE_ON', K_PRETTY_URLS && extension_loaded('curl')); // full boot of core require_once K_COUCH_DIR . 'page.php'; require_once K_COUCH_DIR . 'tags.php'; $TAGS = new KTags(); $CTX = new KContext(); $PAGE; // Current page being handled // addons to 1.3 require_once K_COUCH_DIR . 'addons/nicedit/nicedit.php'; require_once K_COUCH_DIR . 'addons/repeatable/repeatable.php'; require_once K_COUCH_DIR . 'addons/relation/relation.php'; // include custom functions/addons if any if (file_exists(K_COUCH_DIR . 'addons/kfunctions.php')) { include_once K_COUCH_DIR . 'addons/kfunctions.php'; } if (file_exists(K_SITE_DIR . 'kfunctions.php')) { include_once K_SITE_DIR . 'kfunctions.php'; } // Current user's authentication info $AUTH = new KAuth(); // All addons loaded at this point $FUNCS->dispatch_event('init');