lockedseen=time(); update_record('wiki_locks',$lock); print 'ok'; } else { print 'cancel'; // Tells user their lock has been cancelled. } ?>