Ejemplo n.º 1
0
 * Load the locale class
 */
include ROSTER_LIB . 'locale.php';
$roster->locale = new roster_locale();
/**
 * Include the Roster Menu class
 */
require_once ROSTER_LIB . 'menu.php';
/**
 * Figure out the page
 */
$roster->get_page_name();
/**
 * Run the scope algorithm to load the data and figure out the file to load
 */
$roster->get_scope_data();
/**
 * Include Login class, external or Roster's
 */
if (file_exists(ROSTER_ADDONS . $roster->config['external_auth'] . DIR_SEP . 'inc' . DIR_SEP . 'login.php')) {
    require_once ROSTER_ADDONS . $roster->config['external_auth'] . DIR_SEP . 'inc' . DIR_SEP . 'login.php';
} else {
    $roster->config['external_auth'] = 'roster';
    require_once ROSTER_LIB . 'login.php';
}
$roster->auth = new RosterLogin();
/**
 * Assign initial template vars
 */
$roster->tpl->assign_vars(array('S_SEO_URL' => $roster->config['seo_url'], 'S_HEADER_LOGO' => !empty($roster->config['logo']) ? true : false, 'U_MAKELINK' => makelink(), 'U_LINKFORM' => linkform(), 'ROSTER_URL' => ROSTER_URL, 'ROSTER_PATH' => ROSTER_PATH, 'WEBSITE_ADDRESS' => $roster->config['website_address'], 'HEADER_LOGO' => $roster->config['logo'], 'IMG_URL' => $roster->config['img_url'], 'INTERFACE_URL' => $roster->config['interface_url'], 'IMG_SUFFIX' => $roster->config['img_suffix'], 'ROSTER_VERSION' => $roster->config['version'], 'ROSTER_CREDITS' => sprintf($roster->locale->act['roster_credits'], makelink('credits')), 'XML_LANG' => substr($roster->config['locale'], 0, 2), 'T_BORDER_WHITE' => border('swhite', 'start'), 'T_BORDER_GRAY' => border('sgray', 'start'), 'T_BORDER_GOLD' => border('sgold', 'start'), 'T_BORDER_RED' => border('sred', 'start'), 'T_BORDER_ORANGE' => border('sorange', 'start'), 'T_BORDER_YELLOW' => border('syellow', 'start'), 'T_BORDER_GREEN' => border('sgreen', 'start'), 'T_BORDER_PURPLE' => border('spurple', 'start'), 'T_BORDER_BLUE' => border('sblue', 'start'), 'T_BORDER_END' => border('sgray', 'end'), 'PAGE_TITLE' => '', 'ROSTER_HEAD' => '', 'ROSTER_BODY' => '', 'ROSTER_ONLOAD' => '', 'ROSTER_MENU_BEFORE' => ''));
/**