<?php /**************************************************************************** * index.php * v1.1.1 * * Controls data to be be sent through API. * ****************************************************************************/ require_once "/libs/engine.php"; require_once "/libs/functions.php"; session_start(); $xml = "<result><code>"; if (checkVariable("key")) { $key = $_REQUEST['key']; $check_key = CheckKey($key); if (!empty($check_key)) { $engine = new HydroEngine("hydro"); if ($_REQUEST["f"] == "results") { $xml .= results($engine); } else { if ($_REQUEST["f"] == "heartbeat") { $xml .= heartbeat($engine); } else { $xml .= "3</code><codedesc>Invalid format"; } } } else { $xml .= "1</code><codedesc>Invalid key"; } } else {
<tr> <td align="center"> <?php if (empty($_GET['key'])) { ?> <form action="?p=account&sub=activate" method="post"> <div style="background:none; margin:4px; padding:6px 9px 6px 9px; text-align: center; width:80%;"> <b>Activation Key:</b> <input type="text" size="45" maxlength='50' class="addbutton2" style="font-size:11px;" name="key"> </div> <div style="background:none; margin:4px; padding:6px 9px 6px 9px; text-align: center; width:80%;"> <b>Account Username:</b> <input type="text" size="25" maxlength='50' class="addbutton2" style="font-size:11px;" name="user"> </div> <div style="background:none; margin:4px; padding:6px 9px 6px 9px; text-align:center; width:80%;"> <input type="submit" size="16" class="button" style="font-size:12px;" value="<?php echo $lang['account_activate']; ?> "> </div> </form> <?php } else { CheckKey(); } ?> </td> </tr> </table> <?php builddiv_end();