Home
last modified time | relevance | path

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

12345678910>>...100

/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/
H A DBasicNodeTest.php12 $file = new FileMock();
13 $file->put('hi');
22 $file = new FileMock();
23 $file->get();
29 $file = new FileMock();
37 $file = new FileMock();
44 $file = new FileMock();
54 $file = new FileMock();
55 $file->delete();
64 $file = new FileMock();
[all …]
/plugin/cleanup/
H A Dhelper.php90 * @param string $file file to delete
93 public function delete($file, $type) { argument
96 $size = filesize($file);
101 if(@unlink($file)){
109 $this->list[] = $file;
113 $this->list[] = $file;
148 $time = $opts['useatime'] ? fileatime($base . $file) : filemtime($base . $file);
164 $time = filemtime($base . $file);
186 $time = filemtime($base . $file);
215 $time = filemtime($base . $file);
[all …]
/plugin/dw2pdf/
H A DDokuImageProcessorDecorator.php18 list($file, $orig_srcpath) = self::adjustGetImageLinks($file, $orig_srcpath);
32 if(preg_match("/^$re/", $file, $m) ||
33 preg_match('/[&?]media=([^&?]*)/', $file, $m)
38 list($ext, $mime) = mimetype($file);
43 if(substr($file, 0, 9) == 'dw2pdf://') {
45 $local = substr($file, 9);
46 } elseif(!preg_match('/(\.php|\?)/', $file)) {
49 $local = preg_replace("/^$re/i", DOKU_INC, $file);
68 $file = '';
88 $file = $local;
[all …]
/plugin/projects/plugins/target/
H A 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();
45 protected function recipe($project, $file) { argument
47 if ($project->file($cpp) != NULL)
48 return "g++ -O3 -c -I. -o " . $file->name() . " $cpp";
50 if ($project->file($c) != NULL)
[all …]
/plugin/projects/lib/
H A Dproject.php196 $file = $this->handle($file);
200 $name = $file->name();
252 if ($file) {
253 if ($file->is_target()) $file->delete($this->path());
281 if ($file === '.' || $file === '..') continue;
293 $file = $this->file($file);
294 if ($file === NULL) {
301 if ($file->is_target()) $this->changed[] = $file->name();
323 if ($file === '.' || $file === '..' ||
360 if ($file->is_target() && $file->needs_update($this->path()))
[all …]
H A Dproject_file.php13 public function __construct($file) { argument
14 $this->name = $file->name();
15 $this->deps = $file->dependency();
35 $this->deps = $file->dependency();
41 return $this->type() == $file->type()
47 return new $class($project, $file);
98 parent::__construct($file);
116 parent::copy($project_path, $file);
128 parent::__construct($file);
129 $this->recipe = $file->recipe();
[all …]
H A Dplugins.php11 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);
31 public function handle($project, $file) { return $file; } argument
48 while (($file = readdir($dh)) != false) {
49 if (!has_extension($file, '.php')) continue;
50 include_once($dir . $file);
51 $name = explode('.', $file);
61 public function handlers($project, $file) { argument
[all …]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/FSExt/
H A DFileTest.php26 $file = new File($filename);
27 $result = $file->put('New contents');
45 $file->put('0000000');
46 $file->patch('111', 2, 3);
59 $file->put('0000000');
60 $file->patch($stream, 2, 3);
77 $file->delete();
86 $file = new File($filename);
94 $file->getETag()
101 $this->assertNull($file->getContentType());
[all …]
/plugin/achart/
H A Dsyntax.php93 $file = '';
100 $file = $v;
104 if (!empty($file)) {
106 if($file !== '' && !preg_match('/^https?:\/\//i', $file)) {
107 $file = cleanID($file);
109 $file = $INFO['namespace'] . ':' . $file;
124 $fileNS = getNS($file);
125 $file = mediaFN($file);
129 if(!file_exists($file))
137 if(!utf8_check($file)) $file = utf8_encode($file);
[all …]
/plugin/deletehistory/
H A 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/upgrade/
H A DVerboseTarLib.class.php19 protected $file = ''; variable in VerboseTar
29 * @param string $file
39 $this->file = $file;
206 * @param string $file
218 $this->file = $file;
222 if($this->file) {
328 if($this->file) {
403 if(!$this->file) {
583 $file = strtolower($file);
584 if(substr($file, -3) == '.gz' || substr($file, -4) == '.tgz') {
[all …]
/plugin/elwikiupgrade/
H A DVerboseTarLib.class.php19 protected $file = ''; variable in VerboseTar
29 * @param string $file
39 $this->file = $file;
206 * @param string $file
218 $this->file = $file;
222 if($this->file) {
328 if($this->file) {
403 if(!$this->file) {
583 $file = strtolower($file);
584 if(substr($file, -3) == '.gz' || substr($file, -4) == '.tgz') {
[all …]
/plugin/findologicxmlexport/vendor/phpunit/php-code-coverage/src/Driver/
H A DXdebug.php80 foreach (array_keys($data) as $file) {
81 unset($data[$file][0]);
83 if (strpos($file, 'xdebug://debug-eval') !== 0 && file_exists($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);
112 $this->cacheNumLines[$file] = $lines;
[all …]
/plugin/accscounter/
H A Daction.php71 foreach ($aryret as $file=>$page) {
82 if (!unlink($dir . $file)) {
158 foreach ($files as $file) {
159 (is_dir("$dir/$file")) ? $this->delTree("$dir/$file") : unlink("$dir/$file");
172 if ($file == "." || $file == "..") {
176 $this->dir_copy($dir_name . "/" . $file, $new_dir . "/" . $file);
177 rmdir($dir_name . "/" . $file);
180 copy($dir_name . "/" . $file, $new_dir . "/" . $file);
194 foreach(glob($path . "/*") as $file) {
195 if (is_dir($file)) {
[all …]
/plugin/discussion/
H A Dconvert.php28 foreach ($files as $file) {
29 if (convertDiscussionPage($file)) {
30 echo $file['id'].'<br />';
63 if (!preg_match('#\.txt$#', $file)) return false;
68 'old' => $conf['datadir'].$file,
77 function convertDiscussionPage($file) { argument
80 $data = io_readFile($file['old'], false);
85 @unlink($file['old']);
94 if (@file_exists($file['new']))
147 io_saveFile($file['new'], serialize($comments));
[all …]
/plugin/txtconf/
H A 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'];
91 if (@file_exists($file.'.bak')) @unlink($file.'.bak');
92 if (!@rename($file, $file.'.bak')) return false;
96 @rename($file.'.bak', $file); // problem opening, restore the backup
118 function _read_config($file) { argument
120 if (!$file) return array();
123 $file = eval('return '.$file.';');
418 $in = join('',@file($file));
[all …]
/plugin/stylingpages/
H A Daction.php95 $file = $instruction[1][2];
96 if (isset($contents[$file])) {
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) {
127 if (preg_match($pattern, $file)) {
[all …]
/plugin/gtime/gtlib/util/
H A DGTUtil.php121 if (empty($file)) {
133 $fp = fopen($file, 'wb+');
157 public static function touch($file) { argument
159 if (empty($file)) {
163 touch($file);
176 public static function read($file) { argument
178 if (empty($file)) {
182 if (!is_file($file)) {
186 if (!is_readable($file)) {
190 $fp = fopen($file, 'rb');
[all …]
/plugin/findologicxmlexport/vendor/phpdocumentor/reflection-docblock/src/DocBlock/
H A DExampleFinder.php39 $file = $this->getExampleFileContents($filename);
40 if (!$file) {
132 * @param string $file
136 private function getExamplePathFromExampleDirectory($file) argument
138 return getcwd() . DIRECTORY_SEPARATOR . 'examples' . DIRECTORY_SEPARATOR . $file;
145 * @param string $file
149 private function constructExamplePath($directory, $file) argument
151 return rtrim($directory, '\\/') . DIRECTORY_SEPARATOR . $file;
157 * @param string $file
161 private function getExamplePathFromSource($file) argument
[all …]
/plugin/simpleforward/
H A Daction.php66 $file = $basedir . DIRECTORY_SEPARATOR . $path;
70 if (is_file($file)) {
72 $this->forward_request($file);
74 $this->send_file($file);
81 private function send_file($file) { argument
85 $ext = strtolower(substr($file, strrpos($file, '.') + 1));
89 $type = mime_content_type($file);
93 header('Content-Length: ' . filesize($file));
96 readfile($file);
100 private function forward_request($file) { argument
[all …]
/plugin/autoincludeindex/
H A DremoveBox.php7 foreach($dirs as $file)
9 if (($file == '.')||($file == '..'))
12 elseif (is_dir($tdir.'/'.$file))
14 filesInDir($tdir.'/'.$file);
19 clean($tdir.'/'.$file);
24 function clean($file) argument
28 $fileContent = file_get_contents($file);
36 $handle = fopen($file, 'w');
/plugin/findologicxmlexport/vendor/phpunit/php-code-coverage/src/
H A DCodeCoverage.php363 foreach ($data as $file => $lines) {
370 if (empty($this->data[$file][$k]) || !in_array($id, $this->data[$file][$k])) {
685 if ($this->filter->isFile($file) && !isset($this->data[$file])) {
686 $this->data[$file] = [];
752 $lines = file($filename);
987 $allowedLines[$file] = [];
991 $allowedLines[$file],
992 $linesToBeCovered[$file]
1002 $allowedLines[$file],
1003 $linesToBeUsed[$file]
[all …]
/plugin/ckgdoku/fckeditor/editor/filemanager/connectors/php/
H A DSafeFN.class.php173 function dwiki_encodeFN($file,$safe=true){ argument
175 if($Dwfck_conf_values['fnencode'] == 'utf-8') return $file;
177 if($safe && preg_match('#^[a-zA-Z0-9/_\-\\]%]+$#',$file)){
178 return $file;
182 return SafeFN::encode($file);
185 $file = urlencode($file);
186 $file = str_replace('%2F','/',$file);
187 return $file;
198 function dwiki_decodeFN($file){ argument
203 return SafeFN::decode($file);
[all …]
/plugin/fckg/fckeditor/editor/filemanager/connectors/php/
H A DSafeFN.class.php171 function dwiki_encodeFN($file,$safe=true){ argument
173 if($Dwfck_conf_values['fnencode'] == 'utf-8') return $file;
175 if($safe && preg_match('#^[a-zA-Z0-9/_\-\\]%]+$#',$file)){
176 return $file;
180 return SafeFN::encode($file);
183 $file = urlencode($file);
184 $file = str_replace('%2F','/',$file);
185 return $file;
196 function dwiki_decodeFN($file){ argument
201 return SafeFN::decode($file);
[all …]
/plugin/ckgedit/fckeditor/editor/filemanager/connectors/php/
H A DSafeFN.class.php173 function dwiki_encodeFN($file,$safe=true){ argument
175 if($Dwfck_conf_values['fnencode'] == 'utf-8') return $file;
177 if($safe && preg_match('#^[a-zA-Z0-9/_\-\\]%]+$#',$file)){
178 return $file;
182 return SafeFN::encode($file);
185 $file = urlencode($file);
186 $file = str_replace('%2F','/',$file);
187 return $file;
198 function dwiki_decodeFN($file){ argument
203 return SafeFN::decode($file);
[all …]

12345678910>>...100