3 * This script is called through AJAX. It confirms that a user is still
4 * trying to edit a page that they have locked (they haven't closed
5 * their browser window or something).
7 * @copyright © 2006 The Open University
8 * @author s.marshall@open.ac.uk
9 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
13 require_once("../../config.php");
15 header('Content-Type: text/plain');
17 if(empty($_POST['lockid'])) {
22 $lockid=(int)$_POST['lockid'];
23 if($lock=get_record('wiki_locks','id',$lockid)) {
24 $lock->lockedseen
=time();
25 update_record('wiki_locks',$lock);
28 print 'cancel'; // Tells user their lock has been cancelled.