*/ $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' => '')); /** * If the version doesnt match the one in constants, redirect to upgrader */ if (empty($roster->config['version']) || version_compare($roster->config['version'], ROSTER_VERSION, '<')) { require ROSTER_PAGES . 'upgrade.php'; die; } /** * If the install directory or files exist, die() */ if (file_exists(ROSTER_BASE . 'install.php')) { if (!file_exists(ROSTER_BASE . 'version_match.php')) { roster_die($roster->locale->act['remove_install_files_text'], $roster->locale->act['remove_install_files'], 'sred'); } }
} } exit; } elseif (isset($_POST['remotediag']) && $_POST['remotediag'] == 'true') { $roster->config['theme'] = 'default'; $roster->config['default_name'] = $_POST['guildname']; $roster->output['title'] = 'Remote Diagnostics'; $roster->config['website_address'] = $_SERVER['HTTP_REFERER']; $roster->config['logo'] = $roster->config['img_url'] . 'wowroster_logo.jpg'; $roster->config['roster_bg'] = $roster->config['img_url'] . 'wowroster_bg.jpg'; require_once ROSTER_LIB . 'template.php'; $roster->tpl = new RosterTemplate(); /** * Assign initial template vars */ $roster->tpl->assign_vars(array('S_SEO_URL' => false, '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_VERSION' => ROSTER_VERSION, 'ROSTER_CREDITS' => '', 'XML_LANG' => 'en', 'PAGE_TITLE' => '', 'ROSTER_HEAD' => '', 'ROSTER_BODY' => '', 'ROSTER_ONLOAD' => '')); include_once ROSTER_BASE . 'header.php'; $temp_array = split('&', $_SERVER['QUERY_STRING']); foreach ($temp_array as $key => $value) { if (substr($value, 0, 15) == 'files') { $_POST['files'][] = substr($value, 15, strlen($value)); } } foreach ($files as $directory => $filedata) { foreach ($filedata as $filename => $file) { $files[$directory][$filename]['remote']['versionFile'] = $filename; unset($files[$directory][$filename]['local']['versionFile']); $files[$directory][$filename]['remote']['versionDesc'] = $file['local']['versionDesc']; unset($files[$directory][$filename]['local']['versionDesc']); $files[$directory][$filename]['remote']['versionRev'] = $file['local']['versionRev']; unset($files[$directory][$filename]['local']['versionRev']);