T201704201433
This commit is contained in:
@@ -17,6 +17,8 @@ $chosen_answer = isset($_GET['answer']) ? $_GET['answer'] : '';
|
||||
$chosen_answer = (($chosen_answer === '0') || ($chosen_answer && gettype(+$chosen_answer) == 'integer')) ? +$_GET['answer'] : -1;
|
||||
|
||||
function calculate_points($time) {
|
||||
$points = 0;
|
||||
if($time > 10) {
|
||||
if ($time < TIME_FULL) {
|
||||
$points = MAX_POINTS;
|
||||
} else {
|
||||
@@ -25,6 +27,7 @@ function calculate_points($time) {
|
||||
if ($points < MIN_POINTS) {
|
||||
$points = MIN_POINTS;
|
||||
}
|
||||
}
|
||||
return $points;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user