} #Include main classes and files require "external/libs/Smarty.class.php"; require "core/classes/template.class.php"; require "core/classes/user.class.php"; require "core/classes/main.class.php"; require "core/menu.php"; #Initialize our classes $smarty = new Smarty(); $template = new Template($settings['tempPath'], $settings['langPath'], $smarty); #Load the user from the database (if he is logged in) if (GetCookie('hbb')) { $uid = $db->SafeString(GetCookie('hbb')); $userClass = new User($uid); $user = $userClass->loadData(); } #Setting up classes $smarty->debugging = false; $smarty->caching = false; $smarty->cache_lifetime = 120; $template->language = 'English'; $template->theme = 'Paper'; #The 'get' variables that we use to proccess requests $page = GetGet('page'); $pageid = GetGet('id'); #Anwsering requests (From this file, we do all of the back-end logic and display the theme templates) require "core/controllers/main.php"; #Destroy our database connection upon exiting the script $db->DestroyConnection(); #Flush the buffer ob_flush();
require "install/index.html"; require "core/functions.php"; require "core/classes/fileInit.class.php"; #Define the root for further usage define('HROOT', dirname(__FILE__) . '/'); #Set up the content-type header('Content-type: text/html; charset=utf-8'); #Set up the script locale to prevent buggs with character functions setlocale(LC_CTYPE, 'C'); #Enable the error reporting error_reporting(E_ALL); #Disable the php load limit @set_time_limit(0); #Get the install step $step = GetGet('step'); #Load up some files fileInit::load('install/install.js', 'js'); #Set the page title if ($step && $step != 1) { SetPageTitle('HyperBB Installation ' . $step . '/7'); } else { SetPageTitle('Welcome to HyperBB'); } switch ($step) { case 1: require "install/templates/home.php"; break; case 2: require "install/templates/terms.php"; break;
<?php require_once 'app_code/EveBrowserFactory.php'; require_once 'app_code/Utilities.php'; require_once 'app_code/Fleet.php'; require_once 'app_code/DataManager.php'; $brow = EveBowserFactory::Get(); if (!($brow->IsIGB() && $brow->IsTrusted())) { RedirectResponse('links.php'); } if (!isset($_GET['id'])) { RedirectResponse('links.php'); } $id = GetGet('id'); $f; try { $f = Fleet::Get($id); } catch (Exception $ex) { RedirectResponse('links.php'); } // you are only allowed to delete your own alliances fleet. if ($f->AllianceId != $brow->AllianceId()) { RedirectResponse('links.php'); } // delete the fleet if the button was pressed. if (isset($_POST['btnDelete'])) { $f->Delete(); RedirectResponse('links.php'); } DataManager::GetInstance()->CloseConnection(); ?>