Esempio n. 1
0
<?php

// Verify email
session_start();
include 'common.php';
include 'db.php';
sm_init_db();
if (!$_SESSION['veracccode']) {
    sm_raise_err("There's no account to verify...");
    sm_die();
}
print_header('Verify your account');
?>

Esempio n. 2
0
<?php

// Logging in to SocialMe
if ($_SESSION['sm_id']) {
    if ($_SESSION['sm_security_rea']) {
    } else {
        sm_raise_err("You don't need to login AGAIN!");
        sm_die();
    }
}
Esempio n. 3
0
        }
        // Gender? WEE NEED NO STINKIN' GENDER!
        // No... wait! SocialMe is gender netural!
        // It's multisex enabled!
        // Hash password
        $hashed_pass = sha256($_POST['pass'] . $sm_secret);
        $sql_values = "('" . $_POST['name'] . "', '" . $_POST['mail'] . "', " . $uage . ", '" . $hashed_pass . ")";
        $sql_query = "INSERT INTO accounts VALUES " . $sql_values;
        sm_db_exec($sql_query);
        // The user MUST verify their mail
        $veracccode = md5(sha1(crc32(mt_rand() + time())));
        $_SESSION['veracccode'] = $veracccode;
        mail($uma, "Verify your " . $sm_name . "account", "Your " . $sm_name . " account needs verification. Your code is " . $veracccode . ". Return to the verification page and enter the code in.", "From: " . $sm_mail);
        header("Location: /v.php?ac_stamp=" . time());
    } else {
        sm_raise_err("The CAPTCHA was wrong! Sign up again and enter it correctly!");
        sm_die();
    }
}
?>

<?php 
print_header();
?>

<form action="/r.php" method="POST">
Your name: <input name="name" /><br />
Your birthday: mm:<input name="umon"/>dd:<input name="uday"/>yy:<input name="uyea"/><br/>
Your password: <input type="password" name="pass"/><br/>
(Wondering about gender? We're gender-netural.)<br/>
<!--