T201704032316
This commit is contained in:
26
answer.php
Normal file
26
answer.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: leanderschmedemann
|
||||
* Date: 03/04/2017
|
||||
* Time: 14:00
|
||||
*/
|
||||
|
||||
require_once('includes.inc.php');
|
||||
$data = '';
|
||||
$error = 0;
|
||||
$user = isset($_GET['uid']) ? $_GET['uid'] : '';
|
||||
$time = isset($_GET['time']) ? $_GET['time'] : '';
|
||||
$time = (($time === '0') || ($time && gettype(+$time) == 'integer')) ? +$_GET['time'] : 0;
|
||||
$answer = isset($_GET['answer']) ? $_GET['answer'] : '';
|
||||
$answer = (($answer === '0') || ($answer && gettype(+$answer) == 'integer')) ? +$_GET['answer'] : -1;
|
||||
|
||||
function calculate_points($time) {
|
||||
|
||||
}
|
||||
|
||||
//if user is ''...
|
||||
//if time is 0...
|
||||
//if answer is -1...
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user