Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 176) sorted by relevance

12345678

/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/Locks/Backend/
H A DAbstractTest.php31 $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 DMock.php37 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 DLockDiscoveryTest.php12 $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 Dadmin.php89 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 DFile.php59 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 …]
H A DPDO.php121 function lock($uri, LockInfo $lockInfo) { function in Sabre\\DAV\\Locks\\Backend\\PDO
130 foreach ($locks as $lock) {
131 if ($lock->token == $lockInfo->token) $exists = true;
/plugin/davcal/vendor/sabre/dav/lib/DAV/Locks/Backend/
H A DFile.php59 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 …]
H A DPDO.php121 function lock($uri, LockInfo $lockInfo) { function in Sabre\\DAV\\Locks\\Backend\\PDO
130 foreach ($locks as $lock) {
131 if ($lock->token == $lockInfo->token) $exists = true;
/plugin/dokukiwix/
H A Dajax.php34 $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 DLockDiscovery.php70 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 DLockDiscovery.php70 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/webdav/vendor/sabre/dav/lib/DAV/Exception/
H A DLocked.php23 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 DConflictingLock.php28 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 DLocked.php23 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 DConflictingLock.php28 if ($this->lock) {
31 …error->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:href', $this->lock->uri));
/plugin/attribute/
H A Dhelper.php293 io_lock($lock);
305 io_unlock($lock);
331 io_lock($lock);
335 io_unlock($lock);
368 io_lock($lock);
372 io_unlock($lock);
404 io_lock($lock);
420 io_unlock($lock);
445 io_lock($lock);
458 io_unlock($lock);
[all …]
/plugin/combo/ComboStrap/
H A DMutex.php36 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)
/plugin/autolink3/
H A Dajax.php90 $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/jplayer/vendor/james-heinrich/getid3/getid3/
H A Dextension.cache.dbm.php83 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 DPlugin.php289 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 DPlugin.php289 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/statdisplay/helper/
H A Dlog.php62 if(!$this->lock()) return 0;
221 private function lock() { function in helper_plugin_statdisplay_log
224 $lock = $conf['lockdir'].'/_statdisplay.lock';
225 while(!@mkdir($lock, $conf['dmode'])) {
227 if(is_dir($lock) && time() - @filemtime($lock) > 60 * 5) {
229 @rmdir($lock);
237 chmod($lock, $conf['dperm']);
/plugin/webdav/core/Backend/
H A DLocksFile.php24 public function lock($uri, DAV\Locks\LockInfo $lockInfo) function in dokuwiki\\plugin\\webdav\\core\\Backend\\LocksFile
28 return parent::lock($uri, $lockInfo);
/plugin/solr/
H A Dhelper.php196 $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/wysiwyg/
H A Dajax.php130 $lock = wikiLockFN($ID);
133 $success = io_saveFile($lock,$_SERVER['REMOTE_USER']);
135 $success = io_saveFile($lock,clientIP());

12345678