Lines Matching defs:lock
930 $lock = wikiLockFN($id);
933 if (!file_exists($lock)) return false;
936 if ((time() - filemtime($lock)) > $conf['locktime']) {
937 @unlink($lock);
941 //my own lock
942 [$ip, $session] = sexplode("\n", io_readFile($lock), 2);
953 * @param string $id page id to lock
957 function lock($id)
967 $lock = wikiLockFN($id);
969 io_saveFile($lock, $INPUT->server->str('REMOTE_USER'));
971 io_saveFile($lock, clientIP() . "\n" . session_id());
979 * @return bool true if a lock was removed
988 $lock = wikiLockFN($id);
989 if (file_exists($lock)) {
990 @[$ip, $session] = explode("\n", io_readFile($lock));
992 @unlink($lock);