function criticalpossalert($email, $character, $owner, $pos, $static, $diff) { //mail body $body = "Hello " . $character . ",<br><br>"; $body .= "This is a fuel alert from POS-Tracker at <a href=" . $this->site_URL . ">" . $this->site_URL . "</a> The starbase assigned to " . $owner . " at <b>" . $pos['MoonName'] . "</b> has only <font color=\"red\">" . $pos['online'] . "</font> of fuel remaining.<br><hr>"; $body .= "<table cellspacing=\"0\" border=\"1\">\n"; $body .= "<tr bgcolor=\"#BBD9EE\"><td>Fuel</td><td>Current</td><td>Status</td><td>Required</td><td>Optimal</td><td>Difference</td></tr>\n"; $body .= "<tr><td>Fuel Blocks</td><td>" . $pos['fuelblock'] . "</td><td>" . POSMGMT::daycalc($pos['result_uptimecalc']['fuelblock']) . "</td><td>" . $static['fuelblock'] . "</td><td>" . $pos['result_optimal']['optimum_fuelblock'] . "</td><td>" . $diff['fuelblock'] . "</td></tr>\n"; if ($static['charters'] == 1) { $body .= "<tr><td>Charters</td><td>" . $pos['charters'] . "</td><td>" . POSMGMT::daycalc($pos['result_uptimecalc']['charters']) . "</td><td>" . $static['charters'] . "</td><td>" . $pos['result_optimal']['optimum_charters'] . "</td><td>" . $diff['charters'] . "</td></tr>\n"; } $body .= "</table>\n"; $body .= "<br><hr><p>This an an automated email sent from POS-Tracker. If you do not wish to receive alerts from POS-Tracker, please update your profile in the User pannel of POS-Tracker</p>"; $this->Subject = "POS-Tracker Critical Alert: " . $static['typeName'] . " at " . $pos['MoonName']; $this->Body = $body; $this->IsHTML(true); //$mail->AltBody = $text_body; $this->AddAddress($email, $character); if (!$this->Send()) { echo "Error Sending Alert :: " . $this->ErrorInfo . "<br>"; } // Clear all addresses and attachments for next loop $this->ClearAddresses(); $this->ClearAttachments(); return true; }
function AddNewMoonMaterial($args) { if (!$args) { Eve::SessionSetVar('errormsg', 'No Arguments!'); return false; } $userinfo = POSMGMT::GetUserInfo(); $characterID = $userinfo['eve_id']; $dbconn =& DBGetConn(true); $sql = "INSERT INTO " . TBL_PREFIX . "moonmaterials (moonID,\n material_id,\n abundance,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t notes,\n taken,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t characterID,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t datetime)\n VALUES ('" . Eve::VarPrepForStore($args['moonID']) . "',\n '" . Eve::VarPrepForStore($args['material_id']) . "',\n '" . Eve::VarPrepForStore($args['abundance']) . "',\n '" . Eve::VarPrepForStore($args['notes']) . "',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t '" . Eve::VarPrepForStore($args['taken']) . "',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t '" . Eve::VarPrepForStore($characterID) . "',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t '" . Eve::VarPrepForStore(time()) . "')"; $dbconn->Execute($sql); if ($dbconn->ErrorNo() != 0) { Eve::SessionSetVar('errormsg', $dbconn->ErrorMsg() . $sql); return false; } return true; }
function MoonDB_AddNew() { //global $posmgmt, $eveRender; global $eveRender, $eve; $access = $eve->SessionGetVar('access'); if ($access >= "1") { $regions = POSMGMT::GetInstalledRegions(); $systems = POSMGMT::GetSystemsWithPos(); $materials = POSMGMT::GetStaticMaterials(); $optregions[] = 'All Regions'; foreach ($regions as $regID => $region) { $optregions[$regID] = $region['regionName']; } $optsystems[] = 'All Systems'; foreach ($systems as $sysID => $system) { $optsystems[$system['solarSystemID']] = $system['solarSystemName']; } $optmaterials[] = 'All Materials'; foreach ($materials as $material_id => $material) { $optmaterials[$material['material_id']] = $material['material_name']; } $optmoons[] = 'All Moons'; $rows = MoonDB::GetMoons(); $eveRender->Assign('rows', $rows); $eveRender->Assign('regions', $regions); $eveRender->Assign('optregions', $optregions); $eveRender->Assign('systems', $systems); $eveRender->Assign('optmoons', $optmoons); $eveRender->Assign('optmaterials', $optmaterials); $eveRender->Assign('optsystems', $optsystems); return 'add_moon.tpl'; } else { $eve->SessionSetVar('errormsg', 'User not logged in or Access Denied - Please login or Contact your Admin!'); $eve->RedirectUrl('login.php'); } }
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @package POS-Tracker2 * @version SVN: $Id: viewpos.php 237 2012-01-28 05:26:03Z frozenice2525 $ * @link http://code.google.com/p/pos-tracker-eve/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; 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(); $eve->SessionSetVar('userlogged', 1); $userinfo = $posmgmt->GetUserInfo(); $eve_id = $eve->SessionGetVar('eve_id'); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $eveRender->Assign('config', $config); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (in_array('1', $access) || in_array('5', $access) || in_array('6', $access)) { $pos_id = $eve->VarCleanFromInput('i'); if (!empty($pos_id)) { $tower = $posmgmt->GetTowerInfo($pos_id); //if ($row = mysql_fetch_array($result)) { if ($tower) {
* LICENSE: This file is part of POS-Tracker2. * POS-Tracker2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * POS-Tracker2 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with POS-Tracker2. If not, see <http://www.gnu.org/licenses/>. * * @author Stephen Gulickk <*****@*****.**> * @author DeTox MinRohim <*****@*****.**> * @author Andy Snowden <*****@*****.**> * @copyright 2007-2009 (C) Stephen Gulick, DeTox MinRohim, and Andy Snowden * @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @package POS-Tracker2 * @version SVN: $Id: cron_updateallianceinfo.php 81 2010-08-12 02:49:35Z frozenice2525 $ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; //$eve = New Eve(); $posmgmt = new POSMGMT(); $posmgmt->API_UpdateAlliances();
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $pID = 'user'; $eveRender->Assign('pID', $pID); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); if (!$userinfo) { $eve->RedirectUrl('register.php'); } $IS_IGB = $eve->IsMiniBrowser(); if (!$userinfo['access'] || in_array('-1', $access)) { $eve->SessionSetVar('errormsg', 'You don\'t have access to this tracker!'); $eve->RedirectUrl('index.php'); } $action = $eve->VarCleanFromInput('action'); if ($action == 'changeinfo') { $theme_id = $eve->VarCleanFromInput('theme_id'); $user_track_display = $eve->VarCleanFromInput('user_track_display'); $user_track_sort = $eve->VarCleanFromInput('user_track_sort'); $trackArray = array($user_track_display, $user_track_sort); $user_track = implode(".", array_filter($trackArray)); $away = $eve->VarCleanFromInput('away');
* @package POS-Tracker2 * @version SVN: $Id: cron_mail.php 237 2012-01-28 05:26:03Z frozenice2525 $ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; include_once 'includes/class.posmailer.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eve = new Eve(); $posmgmt = new POSMGMT(); $mail = new posMailer(); $mail->mailinit(); $userinfo = $posmgmt->GetUserInfo(); $eve->SessionSetVar('userlogged', 1); $access = 5; $eve->SessionSetVar('access', $access); $eveRender->Assign('access', $access); $args['pr'] = 2; $rows = $posmgmt->GetAllPos2($args); foreach ($rows as $key => $row) { $row2 = $posmgmt->GetLastPosUpdate($row['pos_id']); $tower = $posmgmt->GetTowerInfo($row['pos_id']); if ($tower) { $tower['current_cpu'] = $tower['cpu']; $tower['current_pg'] = $tower['powergrid'];
* @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/api.php'; include_once 'includes/eveRender.class.php'; include_once 'version.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eveRender->Assign('config', $config); $eveRender->Assign('version', VERSION); $eve = new Eve(); $posmgmt = new POSMGMT(); $API = new API(); $userinfo = $posmgmt->GetUserInfo(); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $pID = 'admin'; $eveRender->Assign('pID', $pID); if (!$userinfo || $userinfo['access'] != 5 && $userinfo['access'] != 6) { $eve->SessionSetVar('errormsg', 'Admin Access Level Required - Please login!'); $eve->RedirectUrl('login.php'); } else { $access = explode('.', $userinfo['access']); $eveRender->Assign('access', $access); } $file_check = 'install.php'; $installchecker = file_exists($file_check) ? true : false;
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; include_once 'includes/pos_val.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); $eveRender->Assign('userinfo', $userinfo); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $pID = 'fuelbill'; $eveRender->Assign('pID', $pID); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (in_array('1', $access) || in_array('5', $access) || in_array('6', $access)) { $fuel_A_fuelblock = 0; $fuel_A_total_size = 0; $fuel_A_total = 0; $fuel_C_fuelblock = 0; $fuel_C_total_size = 0; $fuel_C_total = 0; $fuel_G_fuelblock = 0; $fuel_G_total_size = 0;
* LICENSE: This file is part of POS-Tracker2. * POS-Tracker2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * POS-Tracker2 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with POS-Tracker2. If not, see <http://www.gnu.org/licenses/>. * * @author Stephen Gulickk <*****@*****.**> * @author DeTox MinRohim <*****@*****.**> * @author Andy Snowden <*****@*****.**> * @copyright 2007-2009 (C) Stephen Gulick, DeTox MinRohim, and Andy Snowden * @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @package POS-Tracker2 * @version SVN: $Id: cron_updatepos.php 81 2010-08-12 02:49:35Z frozenice2525 $ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; //$eve = New Eve(); $posmgmt = new POSMGMT(); $results = $posmgmt->API_UPDATEAllPOSES();
<?php /* $Id$ */ include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; include_once 'eveconfig/config.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (!in_array('1', $access) && !in_array('5', $access) && !in_array('6', $access)) { $eve->RedirectUrl('track.php'); } if (empty($pos_id)) { $pos_id = $eve->VarCleanFromInput('pos_id'); } if (empty($pos_id)) { $eve->SessionSetVar('errormsg', 'No POS ID!'); $eve->RedirectUrl('track.php'); } $tower['pos_id'] = $pos_id; $action = $eve->VarCleanFromInput('action'); switch ($action) { case 'Import Structures': $eveRender->Assign('tower', $tower);
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; include_once 'version.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); $pID = 'about'; $eveRender->Assign('pID', $pID); $theme_id = $eve->SessionGetVar('theme_id'); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('theme_id', $theme_id); $eveRender->Assign('access', $access); $eveRender->Assign('config', $config); $eveRender->Assign('version', VERSION); $eveRender->Display('about.tpl');
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; 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);
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; include_once 'includes/pos_val.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $pID = 'fuelcalc'; $eveRender->Assign('pID', $pID); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); $pos_to_refuel = $eve->VarCleanFromInput('pos_to_refuel'); $optlevels = array(1 => 'Current Level - Yes', 0 => 'Current Level - No'); $disopt = array(1 => 'Display Optimals - Yes', 0 => 'Display Optimals - No'); $partialopt = array(0 => 'Partial Fuelup - No', 1 => 'Partial Fuelup - Yes'); $eveRender->Assign('optlevels', $optlevels); $eveRender->Assign('disopt', $disopt); $eveRender->Assign('partialopt', $partialopt); if (!empty($pos_to_refuel)) { $days = $eve->VarCleanFromInput('days'); $hours = $eve->VarCleanFromInput('hours');
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $pID = 'jobs'; $eveRender->Assign('pID', $pID); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); $userinfo = $posmgmt->GetUserInfo(); $eveRender->Assign('userinfo', $userinfo); $submit = $eve->VarCleanFromInput('submit'); $completed = $eve->VarCleanFromInput('completed'); $settings = $posmgmt->GetSettings(); if (in_array('5', $access) || in_array('6', $access)) { $ignore = 0; } elseif ($settings[0]['gsetting'] == '') { $ignore = 0; } elseif ($settings[0]['gsetting'] >= 0 || $settings[0]['gsetting'] <= 3) { $ignore = $settings[0]['gsetting'];
<?php include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; include_once 'eveconfig/config.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (!in_array('5', $access) && !in_array('6', $access) && !in_array('83', $access)) { $eve->RedirectUrl('track.php'); } $pos_id = $eve->VarCleanFromInput('i'); if (!$pos_id) { $eve->SessionSetVar('errormsg', 'Need an ID!'); $eve->RedirectUrl('index.php'); } $pos = $posmgmt->GetTowerInfo($pos_id); $arrposize = array(1 => 'Small', 2 => 'Medium', 3 => 'Large'); $arrporace = array(1 => 'Amarr CT', 2 => 'Caldari CT', 3 => 'Gallente CT', 4 => 'Minmatar CT', 5 => 'Angel CT', 6 => 'Blood CT', 7 => 'Dark Blood CT', 8 => 'Domination CT', 9 => 'Dread Guristas CT', 10 => 'Guristas CT', 11 => 'Sansha CT', 12 => 'Serpentis CT', 13 => 'Shadow CT', 14 => 'True Sansha CT'); $pos['pos_type_name'] = $arrporace[$pos['pos_race']]; $pos['pos_size_name'] = $arrposize[$pos['pos_size']];
* LICENSE: This file is part of POS-Tracker2. * POS-Tracker2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * POS-Tracker2 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with POS-Tracker2. If not, see <http://www.gnu.org/licenses/>. * * @author Stephen Gulickk <*****@*****.**> * @author DeTox MinRohim <*****@*****.**> * @author Andy Snowden <*****@*****.**> * @copyright 2007-2009 (C) Stephen Gulick, DeTox MinRohim, and Andy Snowden * @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @package POS-Tracker2 * @version SVN: $Id: cron_updatepos.php 81 2010-08-12 02:49:35Z frozenice2525 $ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; //$eve = New Eve(); $posmgmt = new POSMGMT(); $results = $posmgmt->API_UpdateIndustryJobs();
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); $eveRender->Assign('userinfo', $userinfo); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (!in_array('1', $access) && !in_array('5', $access) && !in_array('6', $access)) { $eve->RedirectUrl('track.php'); } $pos_id = $eve->VarCleanFromInput('i'); if (empty($pos_id)) { $pos_id = $eve->VarCleanFromInput('pos_id'); if (empty($pos_id)) { $eve->SessionSetVar('errormsg', 'No ID defined!'); $eve->RedirectUrl('track.php'); } }
* @version SVN: $Id$ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; include_once 'eveconfig/config.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; //echo '<pre>';print_r($_SESSION); echo '</pre>';exit; $eve = new Eve(); $posmgmt = new POSMGMT(); $eve->SessionSetVar('userlogged', 1); $userinfo = $posmgmt->GetUserInfo(); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); $eveRender->Assign('config', $config); if (empty($pos_id)) { $pos_id = $eve->VarCleanFromInput('pos_id'); } $xmlstyle = $eve->VarCleanFromInput('xmlstyle'); $mods = $posmgmt->GetAllPosMods($pos_id); if ($mods) { //if (mysql_num_rows($result) != 0) { //Set Header to XML header("Pragma: public");
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $access = $eve->SessionGetVar('access'); $theme_id = $eve->SessionGetVar('theme_id'); $pID = 'login'; $eveRender->Assign('pID', $pID); $action = $eve->VarCleanFromInput('action'); $eveRender->Assign('access', $access); if ($action == 'Login') { $name = $eve->VarCleanFromInput('name'); $pass = $eve->VarCleanFromInput('pass'); if (empty($name) || empty($pass)) { $eve->SessionSetVar('errormsg', 'Please fill the form properly!'); $eve->RedirectUrl('login.php'); } $user = $posmgmt->LogUser(array('name' => $name, 'pass' => $pass)); if ($user) { $eve->SessionSetVar('statusmsg', 'Welcome ' . $user['name']); $eve->RedirectURL('track.php'); } else {
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (!in_array('60', $access) && !in_array(61, $access) && !in_array('5', $access) && !in_array('6', $access)) { $eve->SessionSetVar('errormsg', 'Access Denied - Redirecting you back!'); $eve->RedirectUrl('outpost.php'); } $outpost_id = $eve->VarCleanFromInput('i'); // Dirty fix if (empty($outpost_id)) { $outpost_id = $eve->VarCleanFromInput('outpost_id'); } if (empty($outpost_id)) { $eve->SessionSetVar('errormsg', 'No Outpost ID!'); $eve->RedirectUrl('track.php'); } if (!is_numeric($outpost_id)) {
highlight_file(__FILE__); exit; } include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; include_once 'eveconfig/config.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $pID = 'register'; $eveRender->Assign('pID', $pID); $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $eve->GetUserVars(); $action = $eve->VarCleanFromInput('action'); $api_userid = $eve->VarCleanFromInput('api_userid'); $api_key = $eve->VarCleanFromInput('api_key'); if ($action == 'getchars') { if (empty($api_key) || empty($api_userid)) { $eve->SessionSetVar('errormsg', 'Missing API Information!'); $eve->RedirectUrl('register.php'); } $characters = $posmgmt->API_GetCharacters($api_userid, $api_key); if (!$characters) { $eve->SessionSetVar('errormsg', 'API ERROR or No Character on provided API Information!'); $eve->RedirectUrl('register.php'); } foreach ($characters as $key => $char) {
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $step = $eve->VarCleanFromInput('step'); $step = empty($step) ? $step = 1 : $step; $userinfo = $posmgmt->GetUserInfo(); $eveRender->Assign('userinfo', $userinfo); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (!in_array('5', $access) && !in_array('6', $access) && !in_array('83', $access)) { $eve->RedirectUrl('track.php'); } $eveRender->Assign('step', $step); $action = $eve->VarCleanFromInput('action'); if ($step == 2) { // Select Constellation $regionID = $eve->VarCleanFromInput('regionID'); if (!$regionID) {
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $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('5', $access) && !in_array('6', $access)) { $eve->SessionSetVar('errormsg', 'Access Denied - Redirecting you back!'); $eve->RedirectUrl('outpost.php'); } $action = $eve->VarCleanFromInput('action'); switch ($action) { case 'Add Outpost': $fuel['corp'] = $userinfo['corp']; $fuel['outpost_name'] = $eve->VarCleanFromInput('outpostName'); $fuel['uranium'] = $eve->VarCleanFromInput('uranium'); $fuel['oxygen'] = $eve->VarCleanFromInput('oxygen');
* LICENSE: This file is part of POS-Tracker2. * POS-Tracker2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * POS-Tracker2 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with POS-Tracker2. If not, see <http://www.gnu.org/licenses/>. * * @author Stephen Gulickk <*****@*****.**> * @author DeTox MinRohim <*****@*****.**> * @author Andy Snowden <*****@*****.**> * @copyright 2007-2009 (C) Stephen Gulick, DeTox MinRohim, and Andy Snowden * @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @package POS-Tracker2 * @version SVN: $Id: cron_updatesov.php 81 2010-08-12 02:49:35Z frozenice2525 $ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; //$eve = New Eve(); $posmgmt = new POSMGMT(); $posmgmt->API_UpdateSovereignty();
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, '', false); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); $eve->SessionSetVar('userlogged', 1); $eveRender->Assign('name', $userinfo['name']); $eveRender->Assign('corp', $userinfo['corp']); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $pID = 'track'; $eveRender->Assign('pID', $pID); include_once 'themes/posmanager/style/theme' . $theme_id . '.php'; $user_track = explode('.', $userinfo['user_track']); if (in_array('1', $access) || in_array('5', $access) || in_array('6', $access)) { //sets current time $time = time(); //pulls time out of database for last update $pulltime = $posmgmt->GetLastSystemUpdate(); $sovtime = $posmgmt->get_formatted_timediff($pulltime, $now = false); //gives a difference value for the warning message
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @package POS-Tracker2 * @version SVN: $Id$ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $userinfo = $posmgmt->GetUserInfo(); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); if (!in_array('1', $access) && !in_array('5', $access) && !in_array('6', $access)) { $eve->RedirectUrl('login.php'); } $pos_id = $eve->VarCleanFromInput('i'); // Dirty fix if (empty($pos_id)) { $pos_id = $eve->VarCleanFromInput('pos_id'); } if (empty($pos_id)) {
* @package POS-Tracker2 * @version SVN: $Id$ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/eveclass.php'; include_once 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); //error_reporting(E_ALL); $eveRender = new eveRender($config, '', false); $colors = $eveRender->themeconfig; $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $step = $eve->VarCleanFromInput('step'); $action = $eve->VarCleanFromInput('action'); if ($action && !isset($step)) { $step = 5; } $step = empty($step) ? $step = 1 : $step; if ($step <= 1) { $install = false; } if ($step > 1) { include_once 'includes/dbfunctions.php'; EveDBInit(); $dbconn =& DBGetConn(true); $sql = "SELECT * FROM " . $dbconfig['prefix'] . "user"; $result = $dbconn->Execute($sql);
<?php include_once 'eveconfig/config.php'; include_once 'includes/dbfunctions.php'; EveDBInit(); include_once 'includes/eveclass.php'; include 'includes/class.pos.php'; include_once 'includes/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eveRender->Assign('config', $config); $eve = new Eve(); $posmgmt = new POSMGMT(); $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $eve_id = $eve->SessionGetVar('eve_id'); $pID = 'production'; $eveRender->Assign('pID', $pID); $userinfo = $posmgmt->GetUserInfo(); $eveRender->Assign('userinfo', $userinfo); $access = $eve->SessionGetVar('access'); $access = explode('.', $access); $eveRender->Assign('access', $access); $user_id = $_SESSION['delsid']; if (in_array('1', $access) || in_array('5', $access) || in_array('6', $access)) { $action = $eve->VarCleanFromInput('action'); if ($action == 'Update Amount') { $sql = "SELECT * FROM " . TBL_PREFIX . "silo_info"; $result = mysql_query($sql) or die('Could not get access to the user/pos database; ' . mysql_error()); while ($value = mysql_fetch_array($result)) { $new_amount = $eve->VarCleanFromInput('new_amount_' . $value[0]);