예제 #1
0
require_once 'jsonRPCClient.php';
require_once 'auth.php';
if ($Logged_In === 7) {
    header("Location: home.php");
}
$coin_selecter = security($_GET['c']);
if ($coin_selecter) {
    if ($coin_selecter == "LTC") {
        $_SESSION['trade_coin'] = "LTC";
    }
    if ($coin_selecter == "BTC") {
        $_SESSION['trade_coin'] = "BTC";
    }
    header("Location: index.php");
}
$Buying_Rate = buyrate($BTE);
$Selling_Rate = sellrate($BTE);
if (!$Buying_Rate) {
    $Buying_Rate = '0';
}
if (!$Selling_Rate) {
    $Selling_Rate = '0';
}
$login_attempts = $_SESSION['login_attempts'];
if (!$login_attempts) {
    $_SESSION['login_attempts'] = 0;
}
$myusername = security($_POST['username']);
$mypassword = security($_POST['password']);
$myrepeat = security($_POST['repeat']);
$form_action = security($_POST['action']);
예제 #2
0
session_start();
error_reporting(E_ALL);
require_once 'jsonRPCClient.php';
require_once 'auth.php';
if (isset($_SESSION['user_session']) && isset($_SESSION['user_password']) && isset($_SESSION['user_time']) && $_SESSION['user_time'] > 0) {
    $Logged_In = 7;
}
if ($Logged_In === 7) {
    header("Location: home.php");
}
$coin_selecter = security($_GET['c']);
if ($coin_selecter) {
    $_SESSION['trade_coin'] = $my_coins->coinSelecter($coin_selecter);
    header("Location: index.php");
}
$Buying_Rate = buyrate($BTC, $BTCRYX);
$Selling_Rate = sellrate($BTC, $BTCRYX);
if (!$Buying_Rate) {
    $Buying_Rate = '0';
}
if (!$Selling_Rate) {
    $Selling_Rate = '0';
}
$login_attempts = $_SESSION['login_attempts'];
if (!$login_attempts) {
    $_SESSION['login_attempts'] = 0;
}
if (isset($_GET['recover']) && isset($_GET['username']) && isset($_GET['id'])) {
    if ($_GET['recover'] == 1) {
        $recover = $_GET['recover'];
        $username = $_GET['username'];