} $action = $eve->VarCleanFromInput('action'); switch ($action) { case 'Change Tower Information': $newstatus = $eve->VarCleanFromInput('newstatus'); $new_tower_name = $eve->VarCleanFromInput('new_tower_name'); $new_outpost_id = $eve->VarCleanFromInput('outpostlist'); $new_pg = $eve->VarCleanFromInput('new_pg'); $new_cpu = $eve->VarCleanFromInput('new_cpu'); if (!is_numeric($new_pg) || $new_pg < 0) { $new_pg = 0; } if (!is_numeric($new_cpu) || $new_cpu < 0) { $new_cpu = 0; } if ($posmgmt->ChangeTowerInfo(array('pos_id' => $pos_id, 'newstatus' => $newstatus, 'new_tower_name' => $new_tower_name, 'new_outpost' => $new_outpost_id, 'new_pg' => $new_pg, 'new_cpu' => $new_cpu))) { $eve->SessionSetVar('statusmsg', 'Modifications Saved!'); $eve->RedirectUrl('viewpos.php?i=' . $pos_id); } //echo 'Change Tower Information - ' . $newstatus . ' - ' .$new_tower_name;exit; break; case 'Change POS Secretive Status': $new_secret = $eve->VarCleanFromInput('new_secret'); if ($new_secret == 0) { $new_secret = 1; } else { $new_secret = 0; } if ($posmgmt->ChangeTowerSecret(array('pos_id' => $pos_id, 'new_secret' => $new_secret))) { $eve->SessionSetVar('statusmsg', 'POS Secretive Status Changed!'); $eve->RedirectUrl('viewpos.php?i=' . $pos_id);