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
14 require_once("../../config.php");
16 header('Content-Type: text/plain');
18 if(empty($_POST['lockid'])) {
23 $lockid=(int)$_POST['lockid'];
24 if($lock=get_record('wiki_locks','id',$lockid)) {
25 $lock->lockedseen
=time();
26 update_record('wiki_locks',$lock);
29 print 'cancel'; // Tells user their lock has been cancelled.