require_once LIB_PATH . 'osclass/frm/Language.form.class.php'; require_once LIB_PATH . 'osclass/frm/SendFriend.form.class.php'; require_once LIB_PATH . 'osclass/frm/Alert.form.class.php'; require_once LIB_PATH . 'osclass/frm/Field.form.class.php'; require_once LIB_PATH . 'osclass/frm/Admin.form.class.php'; require_once LIB_PATH . 'osclass/frm/ManageItems.form.class.php'; require_once LIB_PATH . 'osclass/frm/BanRule.form.class.php'; require_once LIB_PATH . 'osclass/functions.php'; require_once LIB_PATH . 'osclass/helpers/hAdminMenu.php'; define('__OSC_LOADED__', true); // Moved from BaseModel, since we need some session magic on index.php;) Session::newInstance()->session_start(); if (OC_ADMIN) { // init admin menu AdminMenu::newInstance()->init(); $functions_path = AdminThemes::newInstance()->getCurrentThemePath() . 'functions.php'; if (file_exists($functions_path)) { require_once $functions_path; } } else { // init Rewrite class only if it's the frontend Rewrite::newInstance()->init(); } if (osc_timezone() != '') { date_default_timezone_set(osc_timezone()); } function osc_show_maintenance() { if (defined('__OSC_MAINTENANCE__')) { ?> <div id="maintenance" name="maintenance">
/** * Gets the complete url of a given js's file * * @param string $file the js's file * @return string */ function osc_current_admin_theme_js_url($file = '') { return AdminThemes::newInstance()->getCurrentThemeJs() . $file; }