function smarty_function_pager($params, &$smarty) { $startnum = $params['startnum']; $numitems = $params['numitems']; // Going to be common so let's use it $searchphrase = $params['searchphrase']; if (!$numitems) { return null; } $max = $params['numitems']; $split = $params['limit']; $html = "<br /><p><strong>[</strong> "; $endpage = ceil($max / $split); $page = Eve::VarCleanFromInput('page'); $qstring = Eve::ServerGetVar('QUERY_STRING'); $script = Eve::ServerGetVar('SCRIPT_NAME'); //$script = substr($script, -1, strlen($script)); if ($page) { $url = preg_replace("/&page=([0-9]?[0-9]?[0-9])/", "", $qstring); //return $url; if ($url == $qstring) { $url = preg_replace("/page=([0-9]?[0-9]?[0-9])/", "", $qstring); } } else { $url = $qstring; //urlencode($qstring); $page = 1; } //if (eregi('.html', $url)) { //$url = 'a='.Eve::SessionGetVar('kburl'); //} // Fixing damn & for validation $url = preg_replace("/&/", "&", $url); for ($i = 1; $i <= $endpage; $i++) { if ($i != $page) { if ($i == 1 || $i == $endpage || $i >= $page - 1 && $i <= $page + 1) { if ($i != 1) { $html .= "<a href=\"" . $script . "?" . $url . (empty($url) ? "" : "&") . "page=" . $i . (!empty($searchphrase) ? "&searchphrase=" . urlencode($searchphrase) : "") . "\" title=\"Page " . $i . "\">" . $i . "</a> "; } else { $html .= "<a href=\"" . $script . "?" . $url . "\" title=\"Page " . $i . "\">" . $i . "</a> "; } } elseif ($i < $page && !$dotted) { $dotted = true; $html .= "<strong>.. </strong>"; } elseif ($i > $page && !$ldotted) { $ldotted = true; $html .= "<strong>.. </strong>"; } } else { $html .= "<strong>" . $i . "</strong> "; } } $html .= "<strong>]</strong></p>"; return $html; }
function GetMinmatarTowers() { $dbconn =& DBGetConn(true); $sql = "SELECT *\n FROM " . TBL_PREFIX . "tower_info\n WHERE pos_race = '4'"; $result = $dbconn->Execute($sql); if ($dbconn->ErrorNo() != 0) { Eve::SessionSetVar('errormsg', $dbconn->ErrorMsg() . $sql); return false; } for (; !$result->EOF; $result->MoveNext()) { $rows[] = $result->GetRowAssoc(2); } $result->Close(); return $rows; }
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_uninstall() { global $posmgmt; $tables = array(TBL_PREFIX . 'moonmaterials'); $values = array('test', 'test1', 'test2'); $dbconn =& DBGetConn(true); foreach ($tables as $table) { $dbconn->Execute("DROP TABLE IF EXISTS " . $table); if ($dbconn->ErrorNo() != 0) { Eve::SessionSetVar('errormsg', "Problem with table: " . $table); return false; } } foreach ($values as $value) { $posmgmt->ModuleDelVar('MoonDB', $value); } return 0; }
function API_Connect2($url, $conntype = 'POST') { if (!$url) { Eve::SessionSetVar('errormsg', 'NO URL'); return false; } $data = array(); $extensions = get_loaded_extensions(); $curl = in_array('curl', $extensions); if ($curl) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); if ($data) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); } $content = curl_exec($ch); curl_close($ch); } //Create XML Parser try { $xml = new SimpleXMLElement($content); } catch (Exception $e) { Eve::SessionSetVar('errormsg', 'Error: ' . $e->getMessage()); return false; } foreach ($xml->xpath('//error') as $error) { Eve::SessionSetVar('errormsg', 'Error Code: ' . $error['code'] . '::' . $error); return false; //$fail = 1; } return $xml; }
<?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 '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_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);
* * 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$ * @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/eveRender.class.php'; $eveRender = new eveRender($config, $mod, false); $colors = $eveRender->themeconfig; $eve = new Eve(); $access = $eve->SessionGetVar('access'); $eveRender->Assign('access', $access); $eveRender->Assign('config', $config); if (isset($access)) { $eve->SessionSetVar('errormsg', 'Welcome to the POS Tracker!'); $eve->RedirectUrl('track.php'); } else { $eve->SessionSetVar('errormsg', 'Welcome to the POS Tracker!'); $eve->RedirectUrl('login.php'); //$eveRender->Display('home.tpl'); }
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @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'];
* @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/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';
<?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;
public function updateSSOCharacter($userid, $characterID) { /** Saving our passthroughs to the user object */ $this->_userID = $userid; $this->_characterID = $characterID; /** Getting the character information from the SSO token */ $eve = new Eve($this->_db); $characterAffiliation = $eve->getCharacterAffiliation($this->getCharacterID()); $this->_corporationID = $characterAffiliation->corporationID; $this->_allianceID = $characterAffiliation->allianceID; /** Adding the SSO character to the database */ $stmt_add_character = $this->_db->prepare('INSERT INTO user_characters (userid,character_id,corporation_id,alliance_id,sso_character,key_keyid) ' . 'VALUES (?,?,?,?,?,?) ON DUPLICATE KEY UPDATE corporation_id=VALUES(corporation_id),alliance_id=VALUES(alliance_id)'); $stmt_add_character->execute(array($this->getUserID(), $this->getCharacterID(), $this->getCorporationID(), $this->getAllianceID(), 1, null)); }
<?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)) {
<?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) {
* @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'; 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
<?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'); } }
* @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: 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)) {
* */ /** Setting the minimum access level */ if ($user->getAccessLevel(2)) { /** Doing All POST action work */ if (isset($_POST['action'])) { /** Doing action stuff */ if ($_POST['action'] == "group_create") { /** We're creating a new group, so let's start the work by getting our POST'ed variabled */ $groupName = $_POST['group_name']; $groupOwner = $user->getUserID(); $groupJoinMethod = $_POST['group_join_method']; $groupType = $_POST['group_type']; $groupTypeConstraintName = $_POST['membership_constraint']; /** Looking up the correct ID for the name provided*/ $eve = new Eve($db); $groupTypeConstraintLookup = $eve->getCharacterID($groupTypeConstraintName); /** Verifying that we got an ojbect back */ if (is_object($groupTypeConstraintLookup) && $groupTypeConstraintLookup->characterID !== null) { /** Saving the ID of the name we looked up */ $groupTypeConstraintID = $groupTypeConstraintLookup->characterID; $stmt_create_group = $db->prepare('INSERT INTO groups_overview (group_name,group_owner,group_join_method,group_type,' . 'group_type_constraint_id,group_type_constraint_name) VALUES (?,?,?,?,?,?)'); $stmt_create_group->execute(array($groupName, $groupOwner, $groupJoinMethod, $groupType, $groupTypeConstraintID, $groupTypeConstraintName)); $stmt_group_id_lookup = $db->prepare('SELECT group_id FROM groups_overview WHERE group_owner = ? ORDER BY group_id DESC LIMIT 1'); $stmt_group_id_lookup->execute(array($user->getUserID())); $groupIDLookup = $stmt_group_id_lookup->fetch(\PDO::FETCH_ASSOC); $user->updateGroupMembership($groupIDLookup['group_id']); } elseif (is_object($groupTypeConstraintLookup)) { /** The name given doesn't match a corporation or alliance */ $_SESSION['alert'] = new Alert('danger', 'The Corporation or Alliance name provided does not exist. If it was recently created wait an hour for the API to update and try again.'); } else {
* @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); $colors = $eveRender->themeconfig; $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)) { $eve->SessionSetVar('errormsg', 'Admin Not Logged In!'); $eve->RedirectUrl('login.php'); } $upgradeList = array(333 => 'FG Update for Tyrannis', 501 => 'v5.0.1 - Material Volume Fix', 502 => 'v5.0.2 - Theme Install', 511 => 'v5.1.1 - Incursion DB & Corp Jobs Install', 512 => 'v5.1.2 - Prices & Ship Assembly Array Fix', 514 => 'v5.1.4 - User & Global Settings Update', 517 => 'v5.1.7 - Hyasyoda ML & Wormhole Update', 520 => 'v5.2.0 - Fuel Block Support'); $eveRender->Assign('upgradeList', $upgradeList); $step = $eve->VarCleanFromInput('step'); $step = empty($step) ? $step = 1 : $step;
if (isset($_REQUEST['viewSource'])) { 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'); }
* @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$ * @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'); }
<?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');
<?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_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
<?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/eveRender.class.php'; $colors = $eveRender->themeconfig; $eve = new Eve(); $access = $eve->SessionGetVar('access'); $additional_header = array(); // NEEDS SOME CHECKING AROUND HERE, THIS IS ONLY AN EXAMPLE $op = $eve->VarCleanFromInput('op'); $mod = $eve->VarCleanFromInput('name'); $func = $eve->VarCleanFromInput('func'); if (empty($func)) { $func = 'index'; } $eveRender = new eveRender($config, $mod, false); if (is_dir('mods/' . $mod . '/plugins')) { array_push($eveRender->plugins_dir, 'mods/' . $mod . '/plugins'); } /*if (is_dir('mods/'.$mod.'/style') && file_exists('mods/'.$mod.'/style/style.css')) { CSS PAIN $additional_header[] = "<link rel=\"stylesheet\" type=\"text/css\" href=\"mods/".$mod."/style/style.css\" />"; }*/ $theme_id = $eve->SessionGetVar('theme_id'); $eveRender->Assign('theme_id', $theme_id); $eveRender->Assign('access', $access); $eveRender->Assign('config', $config); // Called it index for easy access... would need to be less noobish include_once 'mods/' . $mod . '/index.php';
<?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);
* @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/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";
* 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$ * @link https://sourceforge.net/projects/pos-tracker2/ * @link http://www.eve-online.com/ */ include_once 'eveconfig/config.php'; include_once 'includes/eveclass.php'; $eve = new Eve(); session_start(); session_unset(); session_destroy(); $eve->SessionSetVar('statusmsg', 'Bye Bye! :)'); $eve->RedirectUrl('index.php');