function api_input($info = "") { insert_header(); echo "<span class=\"infobar\">< " . get_loginbar(true) . get_api_bar() . "><a href=\"itemsrch.php\"> Search for Items</a></span><br>"; echo get_form_divs(); ?> <b>Please insert your api key. You will need to enable items in the eve key interface for them to be accessible here.</b><br> <?php if ($info != "") { echo "<br><b>{$info}</b><br>"; } ?> <br> <form id="api" action="?" method="get"> <table> <tr><td>User ID / key ID</td><td><input type="textbox" name="usid" size=7></td></tr> <tr><td>API Key / vCode</td><td><input type="textbox" name="apik" size=90></td></tr> <tr><td>Old API key?</td><td><input type="checkbox" name="oldkey" value="1"></td></tr> <?php if (!LOGGED_IN) { ?> <tr><td>Remember API?</td><td><input type="checkbox" name="save" value="1" checked></td></tr><?php } if (isset($_GET['fittingid'])) { ?> <input type="hidden" name="fittingid" value="<?php $_GET['fittingid']; ?> "><?php } ?> </table> <input type="submit" value="Get Chars"></form><h5> <a target="_blank" href="https://support.eveonline.com/api/Key/Index">I don't know my NEW apis! (EVE Support)</a> <b><br> Create API:</b> <a target="_blank" href="https://support.eveonline.com/api/Key/CreatePredefined/34013320">Skills-only API</a> <a target="_blank" href="https://support.eveonline.com/api/Key/CreatePredefined/268435455">Everything API</a> <br> <br>'Remember API' requires cookies to be enabled. Corp apis will not be 'remebered'.<br>If using an old-style Full or Limited API, remember to check the old api checkbox!</h5><pre width="100%"><?php file_get_contents("updates.txt"); ?> </pre> </body> </html> <?php exit; }
function get_loginbar() { $infobar = ""; if (loggedIn()) { $infobar .= $_SESSION['username'] . " | "; } if (loggedIn()) { $infobar .= "<a href=\"" . SELF_URL . "logout\">logout</a>"; } else { // shows registration link $infobar = "<a href=\"?register=1\" onclick=\"if(!show_div('register')) return false;\">register</a>"; $infobar .= " <a onclick=\"if(!show_div('login')) return false;\" href=\"?login=1\">login</a>"; } return $infobar . get_api_bar(); }
if ($pass || $email) { mail($_SESSION['email'], $pass . $email, wordwrap("Your " . $pass . $email . " has been changed for Eve Jackknife", 70)); } redirect("/manage.php"); } else { # account page $sql = "SELECT * FROM " . DB_PREFIX . "accounts WHERE id = '" . mysql_real_escape_string($_SESSION['uid']) . "' LIMIT 1"; $result = mysql_query($sql); if ($result != false) { if (mysql_num_rows($result) > 0) { $row = mysql_fetch_assoc($result); echo get_account_change($row['email']); mysql_free_result($result); } } } echo "<br><a href='index.php'> Auditor</a> <a href='manage.php'> Manage Account </a>"; insert_header("Jackknife - Edit Notes"); } else { echo "<span class=\"infobar\">< " . get_loginbar(true) . get_api_bar() . "<a onclick=\"if(!show_div('account')) return false;\" href='manage.php?editAccount=1'> Account Settings</a> ></span><br>"; echo get_form_divs(); echo makeDiv("account", get_account_change($_SESSION['email'])); echo management_view($Db); insert_header("Jackknife - Manage Account"); $_SESSION['redirect'] = "manage.php"; } } } } } }
fatal_error("This API has no pages that the Jackknife can display."); } define("PAGE_VIEW", $getpage); $infobar .= "| "; $infobar .= "<a href=\"" . SELF_URL . "newapi\">new api</a> "; if ($multiplechars && $charSelect) { if (isset($short_api_key)) { $infobar .= "<a href=\"" . SELF_URL . "key={$short_api_key}\">char select</a> "; } else { $infobar .= "<a href=\"" . SELF_URL . "usid=" . USER_ID . "&apik=" . API_KEY . (isset($_GET['save']) && $_GET['save'] == "1" ? "&save=1" : "") . "\">char select</a> "; } } if (!isset($short_api_key)) { $infobar .= "<a href=\"" . FULL_URL . "&makeshorturl&view=" . PAGE_VIEW . "\">short url</a> "; } $infobar .= "| " . get_loginbar() . get_api_bar(); $infobar .= "> <b>" . strtoupper(KEY_TYPE); $infobar .= "</b></span>"; $infobar .= get_form_divs(); //////// FINAL OUTPUT if (PAGE_VIEW == "onepage") { insert_header("Ataglance for " . USER_NAME); echo $infobar . "<br>"; $next = 1; $time_start2 = microtime_float(); foreach ($enabled_pages as $name => $page) { if ($page == "onepage") { continue; } $error = !$page->GetOutput($Db); if ($error) {