$fuel['corp'] = $userinfo['corp'];
        $fuel['outpost_name'] = $eve->VarCleanFromInput('outpostName');
        $fuel['uranium'] = $eve->VarCleanFromInput('uranium');
        $fuel['oxygen'] = $eve->VarCleanFromInput('oxygen');
        $fuel['mechanical_parts'] = $eve->VarCleanFromInput('mechanical_parts');
        $fuel['coolant'] = $eve->VarCleanFromInput('coolant');
        $fuel['robotics'] = $eve->VarCleanFromInput('robotics');
        $fuel['heisotope'] = $eve->VarCleanFromInput('heisotope');
        $fuel['hyisotope'] = $eve->VarCleanFromInput('hyisotope');
        $fuel['oxisotope'] = $eve->VarCleanFromInput('oxisotope');
        $fuel['niisotope'] = $eve->VarCleanFromInput('niisotope');
        $fuel['ozone'] = $eve->VarCleanFromInput('ozone');
        $fuel['heavy_water'] = $eve->VarCleanFromInput('heavy_water');
        $fuel['strontium'] = $eve->VarCleanFromInput('strontium');
        $fuel['charters'] = $eve->VarCleanFromInput('charters');
        if ($outpost_id = $posmgmt->AddNewOutpost($fuel)) {
            $eve->SessionSetVar('statusmsg', 'Modifications Saved!');
            $eve->RedirectUrl('viewoutpost.php?i=' . $outpost_id);
        }
        break;
}
//Gather Outpost Data
$outpost = $posmgmt->GetOutpostInfo($outpost_id);
$hoursago = $posmgmt->hoursago($outpost_id, '4');
$update = $posmgmt->GetLastOutpostUpdate($outpost_id);
$outpost['hoursago'] = $hoursago;
$outpost['lastupdate'] = gmdate("Y-m-d H:i:s", $update['datetime']);
//Assign Outpost Data to template
$eveRender->Assign('outpost', $outpost);
//Display template
$eveRender->Display('addoutpost.tpl');
include_once 'includes/class.pos.php';
include_once 'includes/eveRender.class.php';
$eveRender = new eveRender($config, $mod, false);
$colors = $eveRender->themeconfig;
$eve = new Eve();
$posmgmt = new POSMGMT();
$userinfo = $posmgmt->GetUserInfo();
$theme_id = $eve->SessionGetVar('theme_id');
$eveRender->Assign('theme_id', $theme_id);
$pID = 'outpost';
$eveRender->Assign('pID', $pID);
$access = $eve->SessionGetVar('access');
$access = explode('.', $access);
$eveRender->Assign('access', $access);
if (in_array('1', $access) || in_array('60', $access) || in_array('61', $access) || in_array('5', $access) || in_array('6', $access)) {
    $outposts = $posmgmt->GetAllOutpost();
    foreach ($outposts as $key => $row) {
        $row['outpostuptime'] = $posmgmt->outpostUptimeCalc($row['outpost_id']);
        $update = $posmgmt->GetLastOutpostUpdate($row['outpost_id']);
        $row['lastupdate'] = gmdate("Y-m-d H:i:s", $update['datetime']);
        $row['outpostonline'] = $posmgmt->outpost_online($row['outpostuptime']);
        $row['outpostdaycalc'] = $posmgmt->daycalc($row['outpostonline']);
        $outposts[$key] = $row;
    }
    $eveRender->Assign('config', $config);
    $eveRender->Assign('outposts', $outposts);
    $eveRender->Display('outpost.tpl');
} else {
    $eve->SessionSetVar('errormsg', 'Access Denied - Redirecting you back!');
    $eve->RedirectUrl('track.php');
}