/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/Locks/Backend/ |
H A D | AbstractTest.php | 31 $lock->timeout = 60; 36 $this->assertTrue($backend->lock('someuri', $lock)); 60 $this->assertTrue($backend->lock('someuri', $lock)); 82 $lock->depth = 0; 85 $this->assertTrue($backend->lock('someuri', $lock)); 101 $lock->depth = 0; 104 $this->assertTrue($backend->lock('someuri/child', $lock)); 130 $this->assertTrue($backend->lock('someuri', $lock)); 134 $this->assertTrue($backend->lock('someuri', $lock)); 158 $this->assertTrue($backend->lock('someuri', $lock)); [all …]
|
H A D | Mock.php | 37 foreach($locks as $lock) { 39 if ($lock->uri === $uri || 41 ($lock->depth!=0 && strpos($uri, $lock->uri . '/')===0) || 46 $newLocks[] = $lock; 53 foreach($newLocks as $k=>$lock) { 54 if (time() > $lock->timeout + $lock->created) unset($newLocks[$k]); 67 public function lock($uri, LockInfo $lockInfo) { function in Sabre\\DAV\\Locks\\Backend\\Mock 76 foreach($locks as $k=>$lock) { 79 (time() > $lock->timeout + $lock->created) 100 foreach($locks as $k=>$lock) { [all …]
|
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/Xml/Property/ |
H A D | LockDiscoveryTest.php | 12 $lock = new LockInfo(); 13 $lock->owner = 'hello'; 14 $lock->token = 'blabla'; 15 $lock->timeout = 600; 18 $lock->depth = 0; 19 $lock->uri = 'hi'; 50 $lock = new LockInfo(); 51 $lock->owner = 'hello'; 53 $lock->timeout = 600; 56 $lock->depth = 0; [all …]
|
/plugin/webdav/ |
H A D | admin.php | 89 foreach ($locks as $id => $lock) { 90 if ($lock->token == $lock_id) { 91 $locked_file = $lock->uri; 146 foreach ($this->getLocks() as $lock) { 147 $pathinfo = pathinfo($lock->uri); 149 …"#" class="interwiki iw_user"></a>' . (($lock->owner == $lock->user) ? $lock->owner : $lock->user … 150 echo "<td>{$lock->timeout} seconds</td>"; 151 …echo '<td>' . datetime_h($lock->created) . '<br><small>(' . dformat($lock->created) . ')</small></… 152 echo "<td>{$this->getLockType($lock->scope)}</td>"; 153 …"' . getBaseURL(true) . 'lib/plugins/webdav/server.php/' . hsc($lock->uri) . '">' . $lock->uri . '… [all …]
|
/plugin/webdav/vendor/sabre/dav/lib/DAV/Locks/Backend/ |
H A D | File.php | 59 foreach ($locks as $lock) { 61 if ($lock->uri === $uri || 63 ($lock->depth != 0 && strpos($uri, $lock->uri . '/') === 0) || 68 $newLocks[] = $lock; 75 foreach ($newLocks as $k => $lock) { 76 if (time() > $lock->timeout + $lock->created) unset($newLocks[$k]); 89 function lock($uri, LockInfo $lockInfo) { function in Sabre\\DAV\\Locks\\Backend\\File 98 foreach ($locks as $k => $lock) { 101 (time() > $lock->timeout + $lock->created) 122 foreach ($locks as $k => $lock) { [all …]
|
/plugin/davcal/vendor/sabre/dav/lib/DAV/Locks/Backend/ |
H A D | File.php | 59 foreach ($locks as $lock) { 61 if ($lock->uri === $uri || 63 ($lock->depth != 0 && strpos($uri, $lock->uri . '/') === 0) || 68 $newLocks[] = $lock; 75 foreach ($newLocks as $k => $lock) { 76 if (time() > $lock->timeout + $lock->created) unset($newLocks[$k]); 89 function lock($uri, LockInfo $lockInfo) { function in Sabre\\DAV\\Locks\\Backend\\File 98 foreach ($locks as $k => $lock) { 101 (time() > $lock->timeout + $lock->created) 122 foreach ($locks as $k => $lock) { [all …]
|
/plugin/dokukiwix/ |
H A D | ajax.php | 34 $lock = $conf['lockdir'].'/_dokukiwix.lock'; variable 78 global $lock; 81 if (file_exists($lock)) 82 $archivePath = DOKU_PLUGIN.'dokukiwix/archive/'.file_get_contents($lock).'/'; 104 global $lock; 107 if(!file_exists($lock)){ 108 if ($dokukiwix_fp = fopen($lock, 'w+')) { 124 global $lock; 125 unlink($lock); 139 global $lock; [all …]
|
/plugin/webdav/vendor/sabre/dav/lib/DAV/Xml/Property/ |
H A D | LockDiscovery.php | 70 foreach ($this->locks as $lock) { 75 if ($lock->scope === LockInfo::SHARED) { 89 $writer->writeElement('{DAV:}href', $writer->contextUri . $lock->uri); 92 …$writer->writeElement('{DAV:}depth', ($lock->depth == DAV\Server::DEPTH_INFINITY ? 'infinity' : $l… 93 $writer->writeElement('{DAV:}timeout', 'Second-' . $lock->timeout); 96 $writer->writeElement('{DAV:}href', 'opaquelocktoken:' . $lock->token); 99 $writer->writeElement('{DAV:}owner', new XmlFragment($lock->owner));
|
/plugin/davcal/vendor/sabre/dav/lib/DAV/Xml/Property/ |
H A D | LockDiscovery.php | 70 foreach ($this->locks as $lock) { 75 if ($lock->scope === LockInfo::SHARED) { 89 $writer->writeElement('{DAV:}href', $writer->contextUri . $lock->uri); 92 …$writer->writeElement('{DAV:}depth', ($lock->depth == DAV\Server::DEPTH_INFINITY ? 'infinity' : $l… 93 $writer->writeElement('{DAV:}timeout', 'Second-' . $lock->timeout); 96 $writer->writeElement('{DAV:}href', 'opaquelocktoken:' . $lock->token); 99 $writer->writeElement('{DAV:}owner', new XmlFragment($lock->owner));
|
/plugin/attribute/ |
H A D | helper.php | 311 io_lock($lock); 323 io_unlock($lock); 349 io_lock($lock); 353 io_unlock($lock); 386 io_lock($lock); 390 io_unlock($lock); 422 io_lock($lock); 438 io_unlock($lock); 463 io_lock($lock); 476 io_unlock($lock); [all …]
|
/plugin/webdav/vendor/sabre/dav/lib/DAV/Exception/ |
H A D | Locked.php | 23 protected $lock; variable in Sabre\\DAV\\Exception\\Locked 33 function __construct(DAV\Locks\LockInfo $lock = null) { argument 35 $this->lock = $lock; 59 if ($this->lock) { 64 $href->appendChild($errorNode->ownerDocument->createTextNode($this->lock->uri));
|
H A D | ConflictingLock.php | 28 if ($this->lock) { 31 …error->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:href', $this->lock->uri));
|
/plugin/davcal/vendor/sabre/dav/lib/DAV/Exception/ |
H A D | Locked.php | 23 protected $lock; variable in Sabre\\DAV\\Exception\\Locked 33 function __construct(DAV\Locks\LockInfo $lock = null) { argument 35 $this->lock = $lock; 59 if ($this->lock) { 64 $href->appendChild($errorNode->ownerDocument->createTextNode($this->lock->uri));
|
H A D | ConflictingLock.php | 28 if ($this->lock) { 31 …error->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:href', $this->lock->uri));
|
/plugin/autolink3/ |
H A D | ajax.php | 90 $lock = $conf['lockdir'].'/_tagindexer.lock'; 91 while(!@mkdir($lock)) 93 if(time()-@filemtime($lock) > 60*5) 96 @rmdir($lock); 159 $lock = $conf['lockdir'].'/_tagindexer.lock'; 162 @rmdir($lock);
|
/plugin/combo/ComboStrap/ |
H A D | Mutex.php | 13 * https://github.com/php-lock/lock 36 function lock($wait=10) function in ComboStrap\\Mutex 41 $lock = false; 42 for($i = 0; $i < $wait && !($lock = flock($this->filePointer,LOCK_EX|LOCK_NB)); $i++) 47 if(!$lock) 49 trigger_error("Not able to create a lock in $wait seconds");
|
/plugin/jplayer/vendor/james-heinrich/getid3/getid3/ |
H A D | extension.cache.dbm.php | 83 private $lock; variable in getID3_cached_dbm 128 $this->lock = fopen($lock_filename, 'w'); 131 flock($this->lock, LOCK_EX); 181 flock($this->lock, LOCK_UN); 184 fclose($this->lock);
|
/plugin/webdav/vendor/sabre/dav/lib/DAV/Locks/ |
H A D | Plugin.php | 289 foreach ($locks as $lock) { 291 if ('<opaquelocktoken:' . $lock->token . '>' == $lockToken) { 293 $this->unlockNode($path, $lock); 321 foreach ($locks as $lock) { 322 $this->unlockNode($path, $lock); 340 return $this->locksBackend->lock($uri, $lockInfo); 473 foreach ($mustLocks as $lock) $tmp[$lock->token] = $lock;
|
/plugin/davcal/vendor/sabre/dav/lib/DAV/Locks/ |
H A D | Plugin.php | 289 foreach ($locks as $lock) { 291 if ('<opaquelocktoken:' . $lock->token . '>' == $lockToken) { 293 $this->unlockNode($path, $lock); 321 foreach ($locks as $lock) { 322 $this->unlockNode($path, $lock); 340 return $this->locksBackend->lock($uri, $lockInfo); 473 foreach ($mustLocks as $lock) $tmp[$lock->token] = $lock;
|
/plugin/solr/ |
H A D | helper.php | 196 $lock = $conf['lockdir'].'/_solr_indexer.lock'; 197 while(!@mkdir($lock,$conf['dmode'])){ 199 if(time()-@filemtime($lock) > 60*5){ 201 @rmdir($lock); 208 if($conf['dperm']) chmod($lock, $conf['dperm']); 209 return $lock;
|
/plugin/webdav/core/Backend/ |
H A D | LocksFile.php | 24 public function lock($uri, DAV\Locks\LockInfo $lockInfo) function in dokuwiki\\plugin\\webdav\\core\\Backend\\LocksFile 28 return parent::lock($uri, $lockInfo);
|
/plugin/statdisplay/helper/ |
H A D | log.php | 80 if (!$this->lock()) return 0; 313 private function lock() function in helper_plugin_statdisplay_log 317 $lock = $conf['lockdir'] . '/_statdisplay.lock'; 318 while (!@mkdir($lock, $conf['dmode'])) { 320 if (is_dir($lock) && time() - @filemtime($lock) > 60 * 5) { 322 @rmdir($lock); 330 chmod($lock, $conf['dperm']);
|
/plugin/dokucrypt/ |
H A D | script.js | 182 crypt_keys[lock]=undefined; 197 function getEncryptionKeyForLock(lock) { argument 199 if(undefined===crypt_keys[lock]) { 207 crypt_keys[lock]=x; 210 return(crypt_keys[lock]); 265 function verifyDecrypt(ctext,lock,key) { argument 267 if(undefined!==crypt_keys[lock]) { key=crypt_keys[lock]; } 281 crypt_keys[lock]=key; 303 if(lock===null) { lock="default"; } 339 if(lock===null) { lock="default"; } [all …]
|
/plugin/dokucrypt2/ |
H A D | script.js | 90 params = 'call=lock&id=' + dw_locktimer.pageid + '&'; 125 var params = 'call=lock&id='+encodeURIComponent(dw_locktimer.pageid); 226 function toggleCryptDiv(elemid,lock,ctext) { argument 238 crypt_keys[lock]=undefined; 241 if((ptext=verifyDecrypt(ctext,lock,false))===false) { 242 alert("unable to find key for lock " + lock); 267 function getEncryptionKeyForLock(lock) { argument 268 // alert("crypt_keys[" + lock + "]=" + crypt_keys[lock] 335 verifyDecrypt(ctext,lock,key) global() argument [all...] |
/plugin/wysiwyg/ |
H A D | ajax.php | 130 $lock = wikiLockFN($ID); 133 $success = io_saveFile($lock,$_SERVER['REMOTE_USER']); 135 $success = io_saveFile($lock,clientIP());
|