Lines Matching full:lock
34 $lock = $conf['lockdir'].'/_dokukiwix.lock'; variable
72 * Startup routines, called after the lock is created
78 global $lock;
81 if (file_exists($lock))
82 $archivePath = DOKU_PLUGIN.'dokukiwix/archive/'.file_get_contents($lock).'/';
84 die('Critical error: The lock file has been removed!');
98 * Creation of the lock file, that file containing the
99 * date and time the lock was created.
104 global $lock;
106 // try to aquire a lock
107 if(!file_exists($lock)){
108 if ($dokukiwix_fp = fopen($lock, 'w+')) {
119 * Delete the lock file.
124 global $lock;
125 unlink($lock);
139 global $lock;
142 if (file_exists($lock))
143 $archivePath = DOKU_PLUGIN.'dokukiwix/archive/'.file_get_contents($lock).'/';
145 die('Critical error: The lock file has been removed!');