}
}
$action = $eve->VarCleanFromInput('action');
$settings = $posmgmt->GetSettings();
if ($settings[2]['gsetting'] == 1) {
    $vcheck = isUpToDate();
    $eveRender->Assign('vcheck', $vcheck);
}
if ($action == 'updatealliance') {
    $results = $posmgmt->API_UpdateAlliances();
    $eveRender->Assign('action', $action);
    $eveRender->Assign('results', $results);
    $eveRender->Display('admin.tpl');
    exit;
} elseif ($action == 'updatesovereignty') {
    $sovcount = $posmgmt->API_UpdateSovereignty();
    $eveRender->Assign('action', $action);
    $eveRender->Assign('sovcount', $sovcount);
    $eveRender->Display('admin.tpl');
    exit;
} elseif ($action == 'updatejobs') {
    $results = $posmgmt->API_UpdateIndustryJobs();
    $eveRender->Assign('action', $action);
    $eveRender->Assign('results', $results);
    $eveRender->Display('admin.tpl');
    exit;
} elseif ($action == 'updatepricesapi') {
    $args = $settings[1]['gsetting'];
    $results = $API->API_UpdatePrices($args);
    $eveRender->Assign('action', $action);
    $eveRender->Assign('results', $results);
 * 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();