Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 3303) sorted by relevance

12345678910>>...133

/plugin/dev/
DLangProcessor.php29 * @param string $file
32 public function processLangFile($file) argument
35 include $file;
46 $this->removeLangKey($file, $subkey, $key);
49 $this->removeLangKey($file, $key);
57 * @param string $file
60 public function processSettingsFile($file) argument
63 include $file;
67 $this->removeLangKey($file, $key);
74 * @param string $file
[all …]
/plugin/asciidocjs/node_modules/jake/test/integration/
Dfile.js24 let file = require(`${PROJECT_DIR}/lib/utils/file`); variable
37 file.mkdirP('foo/bar/baz/qux');
42 file.rmRf('foo');
46 file.mkdirP('foo/bar/baz/qux');
47 file.rmRf('foo/bar');
55 file.mkdirP('foo');
56 file.mkdirP('bar');
58 fs.symlinkSync('../foo', 'bar/foo'); file.rmRf('bar');
82 file.mkdirP('foo');
85 file.rmRf('bar');
[all …]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/
DBasicNodeTest.php12 $file = new FileMock();
13 $file->put('hi');
22 $file = new FileMock();
23 $file->get();
29 $file = new FileMock();
30 $this->assertEquals(0,$file->getSize());
37 $file = new FileMock();
38 $this->assertNull($file->getETag());
44 $file = new FileMock();
45 $this->assertNull($file->getContentType());
[all …]
/plugin/cleanup/
Dhelper.php90 * @param string $file file to delete
93 public function delete($file, $type) { argument
96 $size = filesize($file);
101 if(@unlink($file)){
105 fwrite($this->log, "$time\t$size\t$type\t$file\n");
109 $this->list[] = $file;
113 $this->list[] = $file;
140 public function cb_check_cache(&$data, $base, $file, $type, $lvl, $opts) { argument
143 if($lvl == 1 && !preg_match('/^\/[a-f0-9]$/', $file)) return false;
148 $time = $opts['useatime'] ? fileatime($base . $file) : filemtime($base . $file);
[all …]
/plugin/diagramsnet/lib/js/diagramly/
DDrawioFileSync.js7 DrawioFileSync = function(file) argument
13 this.ui = file.ui;
14 this.file = file;
70 EditorUi.logError('Error: Pusher Limit', null, this.file.getId());
84 var user = this.file.getCurrentUser();
96 this.file.stats.msgSent++;
110 this.file.stats.msgReceived++;
113 if (this.enabled && !this.file.inConflictState &&
114 !this.file.redirectDialogShowing)
127 this.file.redirectToNewApp(mxUtils.bind(this, function()
[all …]
/plugin/projects/plugins/target/
Dgcc.php14 public function can_handle($project, $file) { argument
15 $name = $file->name();
18 if ($project->file($cpp) != NULL) return true;
20 if ($project->file($c) != NULL) return true;
27 protected function dependency($project, $file) { argument
28 $deps = $file->dependency();
29 $cpp = $this->replace_extension($file->name(), ".o", ".cpp");
30 if ($project->file($cpp) != NULL && !in_array($cpp, $deps)) {
34 $c = $this->replace_extension($file->name(), ".o", ".c");
35 if ($project->file($c) != NULL && !in_array($c, $deps)) {
[all …]
/plugin/dw2pdf/
DDokuImageProcessorDecorator.php18 &$file, argument
24 [$file, $orig_srcpath] = self::adjustGetImageLinks($file, $orig_srcpath);
26 return parent::getImage($file, $firsttime, $allowvector, $orig_srcpath, $interpolation);
30 public static function adjustGetImageLinks($file, $orig_srcpath) argument
40 preg_match("/^$re/", $file, $m) ||
41 preg_match('/[&?]media=([^&?]*)/', $file, $m)
46 [$ext, $mime] = mimetype($file);
51 if (substr($file, 0, 9) == 'dw2pdf://') {
53 $local = substr($file, 9);
54 } elseif (!preg_match('/(\.php|\?)/', $file)) {
[all …]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/FSExt/
DFileTest.php26 $file = new File($filename);
27 $result = $file->put('New contents');
44 $file = new File(SABRE_TEMPDIR . '/file.txt');
45 $file->put('0000000');
46 $file->patch('111', 2, 3);
58 $file = new File(SABRE_TEMPDIR . '/file.txt');
59 $file->put('0000000');
60 $file->patch($stream, 2, 3);
69 $file = new File(SABRE_TEMPDIR . '/file.txt');
70 $this->assertEquals('Contents',stream_get_contents($file->get()));
[all …]
/plugin/projects/lib/
Dproject.php125 if ($this->file($name) == NULL) return NULL;
157 public function file($name) { function in Project
195 public function update_file($file) { argument
196 $file = $this->handle($file);
197 if ($file == NULL) return true;
200 $name = $file->name();
203 $this->files[$name] = ProjectFile::create($this, $file);
207 if ($old->type() != $file->type()) {
210 return $this->update_file($file);
213 if ($old->equal($this->project_path, $file)) {
[all …]
Dproject_file.php13 public function __construct($file) { argument
14 $this->name = $file->name();
15 $this->deps = $file->dependency();
34 public function copy($project_path, $file) { argument
35 $this->deps = $file->dependency();
40 public function equal($project_path, $file) { argument
41 return $this->type() == $file->type()
42 && $this->deps == $file->dependency();
45 public static function create($project, $file) { argument
46 $class = 'Project' . ucfirst($file->type());
[all …]
Dplugins.php9 public function can_handle($project, $file) { return false; } argument
10 protected function recipe($project, $file) { return NULL; } argument
11 protected function dependency($project, $file) { return $file->dependency(); } argument
16 public function handle($project, $file) { argument
17 $deps = $this->dependency($project, $file);
18 $recipe = $this->recipe($project, $file);
19 $def = new TargetDefinition(array('name' => $file->name(),
30 public function can_handle($project, $file) { return false; } argument
31 public function handle($project, $file) { return $file; } argument
48 while (($file = readdir($dh)) != false) {
[all …]
/plugin/achart/
Dsyntax.php93 $file = '';
100 $file = $v;
104 if (!empty($file)) {
106 if($file !== '' && !preg_match('/^https?:\/\//i', $file)) {
107 $file = cleanID($file);
108 if(!strlen(getNS($file))) {
109 $file = $INFO['namespace'] . ':' . $file;
113 if(preg_match('/^https?:\/\//i', $file)) {
115 $content = $http->get($file);
124 $fileNS = getNS($file);
[all …]
/plugin/asciidocjs/node_modules/resolve/test/
Dmock_sync.js17 isFile: function (file) { argument
18 return Object.prototype.hasOwnProperty.call(files, path.resolve(file));
23 readFileSync: function (file) { argument
24 return files[path.resolve(file)];
26 realpathSync: function (file) { argument
27 return file;
67 isFile: function (file) { argument
68 return Object.prototype.hasOwnProperty.call(files, path.resolve(file));
73 readFileSync: function (file) { argument
74 return files[path.resolve(file)];
[all …]
Dmock.js17 isFile: function (file, cb) { argument
18 cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file)));
23 readFile: function (file, cb) { argument
24 cb(null, files[path.resolve(file)]);
26 realpath: function (file, cb) { argument
27 cb(null, file);
67 isFile: function (file, cb) { argument
68 cb(null, Object.prototype.hasOwnProperty.call(files, file));
74 readFile: function (file, cb) { argument
75 cb(null, files[file]);
[all …]
/plugin/deletehistory/
Dhelper.php50 foreach ($rii as $file) {
51 if (!$file->isDir()) {
52 unlink($file->getPathname());
58 foreach ($rii as $file) {
59 if ($file->isDir() && !in_array($file->getFilename(), ['.', '..'])) {
60 rmdir($file->getPathname());
81 foreach ($rii as $file) {
82 … if (!$file->isDir() && $file->getExtension() === 'changes' && $file->getFilename()[0] !== '_') {
83 $currentLog = @file($file->getPathname());
87 … $updatedLog = substr_replace($currentLog[0], filemtime($file->getPathname()), 0, 10);
[all …]
/plugin/photogallery/phpThumb/demo/
DphpThumb.demo.gallery.php42 $filecontents = file($captionfile);
63 while ($file = readdir($dh)) { variable
64 if (is_dir($currentdir.'/'.$file) && ($file[0] != '.')) {
65 $folders[] = $file;
66 } elseif (preg_match('#\\.(jpe?g|gif|png|bmp|tiff?)$#i', $file)) {
67 $pictures[] = $file;
83 foreach ($pictures as $file) {
84 $alt = (!empty($CAPTIONS[$file]) ? $CAPTIONS[$file] : $file);
85 …e style="float: left;">'.(!empty($CAPTIONS[$file]) ? '<caption align="bottom">'.htmlentities($CAPT…
87 …@$_REQUEST['dir'].'/'.$file.'&w='.$displaysize.'&h='.$displaysize.'&title='.urlencode(@$CAPTIONS[$
[all …]
Dindex.php18 while ($file = readdir($dh)) { variable
19 if (is_file($file) && ($file[0] != '.') && ($file != basename(__FILE__))) {
20 switch ($file) {
23 …<code>'.str_replace(' ', '&nbsp;', str_pad(filesize($file), 10, ' ', STR_PAD_LEFT)).'</code> '.$fi…
26 …r_replace(' ', '&nbsp;', str_pad(filesize($file), 10, ' ', STR_PAD_LEFT)).'</code> <a href="'.$fil…
/plugin/elwikiupgrade/
DVerboseTarLib.class.php19 protected $file = ''; variable in VerboseTar
29 * @param string $file
33 public function open($file, $comptype = self::COMPRESS_AUTO) { argument
35 if($comptype == self::COMPRESS_AUTO) $comptype = $this->filetype($file);
39 $this->file = $file;
42 $this->fh = @gzopen($this->file, 'rb');
44 $this->fh = @bzopen($this->file, 'r');
46 $this->fh = @fopen($this->file, 'rb');
49 … if(!$this->fh) throw new VerboseTarIOException('Could not open file for reading: '.$this->file);
75 …if($this->closed || !$this->file) throw new VerboseTarIOException('Can not read from a closed arch…
[all …]
/plugin/findologicxmlexport/vendor/phpunit/php-code-coverage/src/Driver/
DXdebug.php80 foreach (array_keys($data) as $file) {
81 unset($data[$file][0]);
83 if (strpos($file, 'xdebug://debug-eval') !== 0 && file_exists($file)) {
84 $numLines = $this->getNumberOfLinesInFile($file);
86 foreach (array_keys($data[$file]) as $line) {
88 unset($data[$file][$line]);
98 * @param string $file
102 private function getNumberOfLinesInFile($file) argument
104 if (!isset($this->cacheNumLines[$file])) {
105 $buffer = file_get_contents($file);
[all …]
/plugin/accscounter/
Daction.php64 while (($file = readdir($dp)) !== FALSE) {
65 if (preg_match($pattern, $file, $matches)) {
66 $aryret[$file] = urldecode($matches[1]);
71 foreach ($aryret as $file=>$page) {
73 $data = file_get_contents($dir . $file);
82 if (!unlink($dir . $file)) {
158 foreach ($files as $file) {
159 (is_dir("$dir/$file")) ? $this->delTree("$dir/$file") : unlink("$dir/$file");
171 while (($file = readdir($dh)) !== false) {
172 if ($file == "." || $file == "..") {
[all …]
/plugin/discussion/
Dconvert.php28 foreach ($files as $file) {
29 if (convertDiscussionPage($file)) {
30 echo $file['id'].'<br />';
58 function search_discussionpages(&$data, $base, $file, $type, $lvl, $opts) { argument
62 if (!preg_match('#'.preg_quote('/'.DISCUSSION_NS.'/', '#').'#u', $file)) return false;
63 if (!preg_match('#\.txt$#', $file)) return false;
65 $id = pathID(str_replace(DISCUSSION_NS.'/', '', $file));
68 'old' => $conf['datadir'].$file,
77 function convertDiscussionPage($file) { argument
80 $data = io_readFile($file['old'], false);
[all …]
/plugin/upgrade/vendor/splitbrain/php-archive/src/
DTar.php19 protected $file = ''; variable in splitbrain\\PHPArchive\\Tar
49 * @param string $file
53 public function open($file) argument
55 $this->file = $file;
59 $this->setCompression($this->complevel, $this->filetype($file));
64 $this->fh = @gzopen($this->file, 'rb');
66 $this->fh = @bzopen($this->file, 'r');
68 $this->fh = @fopen($this->file, 'rb');
72 throw new ArchiveIOException('Could not open file for reading: '.$this->file);
111 if ($this->closed || !$this->file) {
[all …]
/plugin/txtconf/
Dconfig0.class.php41 if (isset($file['default'])) $this->_default_file = $file['default'];
42 if (isset($file['local'])) $this->_local_file = $file['local'];
43 if (isset($file['protected'])) $this->_protected_file = $file['protected'];
87 $file = eval('return '.$this->_local_file.';');
90 if (@file_exists($file) && $backup) {
91 if (@file_exists($file.'.bak')) @unlink($file.'.bak');
92 if (!@rename($file, $file.'.bak')) return false;
95 if (!$fh = @fopen($file, 'wb')) {
96 @rename($file.'.bak', $file); // problem opening, restore the backup
118 function _read_config($file) { argument
[all …]
/plugin/stylingpages/
Daction.php95 $file = $instruction[1][2];
96 if (isset($contents[$file])) {
97 $contents[$file] .= $content; // multiple blocks with the same file are appended
99 $contents[$file] = $content;
109 $file = $it->getSubPathName();
110 $file = str_replace('\\', '/', $file);
112 if (preg_match($pattern, $file) && !isset($contents[$file])) {
114 $path = $dir . $file;
116 $msg = str_replace('$1', $file, $msg);
125 foreach ($contents as $file => $content) {
[all …]
/plugin/filelist/
DCrawler.php65 while (($file = readdir($dir)) !== false) {
66 if ($file[0] == '.' || $file == $titlefile) {
70 $self = $local . '/' . $file;
71 $filepath = $path . '/' . $file;
74 if ($this->fnmatch($pattern, $file) || (is_dir($filepath) && $recursive)) {
75 if (!is_dir($filepath) && !$this->isExtensionAllowed($file)) {
78 if ($this->isFileIgnored($file)) {
83 $filename = $file;
146 * @param string $file
149 protected function isExtensionAllowed($file) argument
[all …]

12345678910>>...133