session_start();
session_register("pincheck");
$a = $_POST[a];
switch ($a) {
case "getpin":
if ($_POST[pin]==$_SESSION[pincheck]) {
echo "all ok. we can go to payout
";
}
else echo "wrong pin
";
case "call":
$number = $_POST[number];
if ($number) {
$pin = sprintf("%s%s%s%s", rand(1,9), rand(1,9), rand(1,9),rand(1,9));
$_SESSION[pincheck] = $pin;
$f = file("http://www.onverify.com/call.php?userid=youruseris&apipass=yourapipass&pin={$pin}&template_id=yourtemplateid&number={$number}");
}
?>
a verification call is on the way, please enter the pin announced on the phone here to complete