<?php
error_reporting(E_ALL & ~E_NOTICE);
$what = $_GET['what'];
$uid = $_GET['uid'];
$aid = $_GET['aid'];
$answer = $_GET['answer'];
$refid = $_GET['refid'];

$uid_hash = hash("sha256","chell");

$output_str = "";

switch ($what){
	case "getid":
	$output_str = "&uid=$uid_hash";
	break;
	case "answer":
	
	break;
	case "login":
	
	break;
	case "password":
	
	break;
	
	#default:
	#$output_str = "?refid=$uid_hash";
}

echo $output_str;

file_put_contents("gdxt.log","What: $what\nUID: $uid\nAID: $aid\nAnswer: $answer\nREFID: $refid\nOUTPUT: $output_str\n\n",FILE_APPEND);

?>
