Example #1
0
        $sql_result = mysql_query($sql);
        $sql_num_results = mysql_num_rows($sql_result);
        for ($i = 0; $i < $sql_num_results; $i++) {
            $sql_row = mysql_fetch_array($sql_result);
            $body_string .= '<hr><strong>Scanning Public Key:</strong><br><p style="word-wrap:break-word; font-size:12px;">' . base64_encode($sql_row["public_key_from"]) . '</p>';
            $body_string .= '<br><strong>Ghost Self Transaction Test:</strong> ';
            $sql2 = "SELECT * FROM `transaction_history` WHERE `public_key_from` = '" . $sql_row["public_key_from"] . "'";
            $sql_result2 = mysql_query($sql2);
            $sql_num_results2 = mysql_num_rows($sql_result2);
            $body_string .= 'Scanning [' . $sql_num_results2 . '] Transactions<br>';
            for ($i2 = 0; $i2 < $sql_num_results2; $i2++) {
                $sql_row2 = mysql_fetch_array($sql_result2);
                $body_string .= '#' . ($i2 + 1) . ' ';
                if ($sql_row2["public_key_from"] == $sql_row2["public_key_to"] && $sql_row2["attribute"] == "T") {
                    // Transaction from self to self, illegal
                    $body_string .= '<br><strong>Illegal Self Transaction Found for Public Key - Hash: ' . $sql_row2["hash"] . '</strong><br>';
                }
            }
        }
        $text_bar .= '<br><strong><font color="blue">Scan Time: ' . (time() - $start_scan_time) . ' seconds</font></strong>';
    }
    // Quick Info Bar on Right
    $quick_info = 'Scan the transaction history for invalid or illegal transactions of any type.';
    // Does the screen need to refresh every X seconds? 0 = Disable
    $update = 0;
    home_screen($section_string, $text_bar, $body_string, $quick_info, $update, TRUE);
    // The last variable TRUE is important to have Timekoin re-adjust pathing to make sure
    // menus and screens come up properly.
    exit;
    // All done processing
}
Example #2
0
<tr><td align="center"><strong>Name</strong></td><td align="center"><strong>Type</strong></td><td align="center"><strong>Conditions</strong></td>
<td align="center"><strong>Key From</strong></td><td align="center"><strong>Key To</strong></td><td align="center"><strong>Transfer<br>Amount</strong></td>
<td align="center"><strong>Status</strong></td><td></td></tr>' . $plugin_output . '
<tr><td align="right" colspan="8"><FORM ACTION="autotransfer.php?task=new" METHOD="post"><input type="submit" name="SubmitNew" value="Create New Task" /></FORM></td></tr>
</table>';
    }
    if ($_GET["font"] == "public_key") {
        if (empty($_POST["font_size"]) == FALSE) {
            // Save value in database
            $sql = "UPDATE `options` SET `field_data` = '" . $_POST["font_size"] . "' WHERE `options`.`field_name` = 'public_key_font_size' LIMIT 1";
            mysql_query($sql);
            header("Location: autotransfer.php");
            exit;
        }
    } else {
        $default_public_key_font = mysql_result(mysql_query("SELECT * FROM `options` WHERE `field_name` = 'public_key_font_size' LIMIT 1"), 0, "field_data");
    }
    $text_bar = '<FORM ACTION="autotransfer.php?font=public_key" METHOD="post">
		<table border="0" cellspacing="4">
		<tr><td><strong>Default Public Key Font Size</strong></td>
		<td><input type="text" size="2" name="font_size" value="' . $default_public_key_font . '" /><input type="submit" name="Submit3" value="Save" /></td></tr></table></FORM>';
    $body_string = autotx_home();
    $quick_info = 'Auto Transfer task are scanned every minute.<br><br>
		<strong>One Time Delay</strong> transfers countdown and self-disable after doing one transaction.<br><br>
		<strong>Repeating Delay</strong> transfers will reset after doing one transaction and begin another countdown.<br><br>
		<strong>One Time Amount Match</strong> transfers will do one transaction after the key balance is equal to or greater than the target balance.<br><br>
		<strong>Repeating Amount Match</strong> transfer will do one transaction every transaction cycle when the key balance remains equal to or greater than the target balance.';
    home_screen("Auto Currency Transfer", $text_bar, $body_string, $quick_info, 0, TRUE);
    exit;
    // All done processing
}
Example #3
0
        } else {
            if ($_GET["restore"] == "public" && empty($_POST["restore_public_key"]) == FALSE) {
                $body_string = backup_body(NULL, $_POST["restore_public_key"], NULL, TRUE);
            } else {
                $body_string = backup_body();
            }
        }
        $body_string .= $server_message;
        $text_bar = '<table border="0" cellpadding="6"><tr><td><strong><font color="blue">Private Key</font> to send transactions:</strong></td></tr>
			<tr><td><textarea readonly="readonly" rows="8" cols="75">' . base64_encode($my_private_key) . '</textarea></td></tr></table>
			<table border="0" cellpadding="6"><tr><td><strong><font color="green">Public Key</font> to receive:</strong></td></tr>
			<tr><td><textarea readonly="readonly" rows="6" cols="75">' . base64_encode($my_public_key) . '</textarea></td></tr></table>';
        $quick_info = '<strong>Do Not</strong> share your Private Key with anyone for any reason.<br><br>
			The Private Key encrypts all transactions from your server.<br><br>
			You should make a backup of both keys in case you want to transfer your balance to a new server or restore from a server failure.<br><br>
			Save both keys in a password protected text file or external device that you can secure (CD, Flash Drive, Printed Paper, etc.)';
        home_screen('Backup &amp; Restore Keys', $text_bar, $body_string, $quick_info);
        exit;
    }
    //****************************************************************************
    if ($_GET["menu"] == "logoff") {
        unset($_SESSION["valid_login"]);
        unset($_SESSION["login_username"]);
        header("Location: index.php");
        exit;
    }
    //****************************************************************************
}
// End Valid Login Check
//****************************************************************************
//****************************************************************************