blob: a5fd1a4fe9d3ade12eb55eda099a5d5b3c389409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
/*
Checks if a task can be saved without danger or not.
*/
define('IN_FS', true);
require_once('../../header.php');
$res = $db->query('SELECT last_edited_time FROM {tasks} WHERE task_id = ?', array(Get::val('task_id')));
$last_edit = $db->fetchOne($res);
if (Get::val('time') >= $last_edit) {
echo 'ok';
}
?>
|