/plugin/dev/ |
H A D | LangProcessor.php | 29 * @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); 72 * Remove the given key from the given language file 79 removeLangKey($file, $key, $sub = '') global() argument 158 metaExtract($file) global() argument 183 jsExtract($file) global() argument 205 phpExtract($file) global() argument 218 extract($file, $regex) global() argument [all...] |
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/ |
H A D | BasicNodeTest.php | 12 $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 D | helper.php | 90 * @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/diagramsnet/lib/js/diagramly/ |
H A D | DrawioFileSync.js | 7 DrawioFileSync = function(file) argument 13 this.ui = file.ui; 14 this.file = file; 436 if (!this.file.isModified() && !this.file.inConflictState && 437 this.file.autosaveThread == null && !this.file.savingFile && 596 this.file.sync == this && !this.file.invalidChecksum && 869 this.file.patchDescriptor(this.file.getDescriptor(), desc); 1077 this.file.shadowPages = (this.file.shadowPages != null) ? 1082 this.file.backupPatch = (this.file.isModified()) ? 1153 this.file.patchDescriptor(this.file.getDescriptor(), desc); [all …]
|
/plugin/projects/plugins/target/ |
H A D | gcc.php | 14 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/dw2pdf/ |
H A D | DokuImageProcessorDecorator.php | 14 * making sure that only cached file paths are passed to mpdf. It also 18 &$file, 24 [$file, $orig_srcpath] = self::adjustGetImageLinks($file, $orig_srcpath); argument 26 return parent::getImage($file, $firsttime, $allowvector, $orig_srcpath, $interpolation); 30 public static function adjustGetImageLinks($file, $orig_srcpath) 40 preg_match("/^$re/", $file, $m) || 41 preg_match('/[&?]media=([^&?]*)/', $file, $m) 46 [$ext, $mime] = mimetype($file); 51 if (substr($file, 17 getImage(& $file, $firsttime = true, $allowvector = true, $orig_srcpath = false, $interpolation = false) global() argument [all...] |
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/FSExt/ |
H A D | FileTest.php | 26 $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/projects/lib/ |
H A D | project.php | 196 $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 D | project_file.php | 13 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 D | plugins.php | 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); 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/achart/ |
H A D | syntax.php | 93 $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 D | helper.php | 50 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/ |
H A D | phpThumb.demo.gallery.php | 42 $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 …]
|
H A D | index.php | 18 while ($file = readdir($dh)) { variable 19 if (is_file($file) && ($file[0] != '.') && ($file != basename(__FILE__))) { 20 switch ($file) { 23 …<code>'.str_replace(' ', ' ', str_pad(filesize($file), 10, ' ', STR_PAD_LEFT)).'</code> '.$fi… 26 …r_replace(' ', ' ', str_pad(filesize($file), 10, ' ', STR_PAD_LEFT)).'</code> <a href="'.$fil…
|
/plugin/findologicxmlexport/vendor/phpunit/php-code-coverage/src/Driver/ |
H A D | Xdebug.php | 80 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/elwikiupgrade/ |
H A D | VerboseTarLib.class.php | 19 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/discussion/ |
H A D | convert.php | 28 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/accscounter/ |
H A D | action.php | 71 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/upgrade/vendor/splitbrain/php-archive/src/ |
H A D | Tar.php | 19 protected $file = ''; variable in splitbrain\\PHPArchive\\Tar 47 * Open an existing TAR file for reading 49 * @param string $file 53 public function open($file) argument 55 $this->file = $file; 57 // update compression to mach file 59 $this->setCompression($this->complevel, $this->filetype($file)); 62 // open file handles 64 $this->fh = @gzopen($this->file, 'r 233 create($file = '') global() argument 270 addFile($file, $fileinfo = '') global() argument 422 save($file) global() argument 692 filetype($file) global() argument [all...] |
/plugin/stylingpages/ |
H A D | action.php | 95 $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/txtconf/ |
H A D | config0.class.php | 41 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/findologicxmlexport/vendor/phpdocumentor/reflection-docblock/src/DocBlock/ |
H A D | ExampleFinder.php | 39 $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/autoincludeindex/ |
H A D | removeBox.php | 7 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/gtime/gtlib/util/ |
H A D | GTUtil.php | 121 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/simpleforward/ |
H A D | action.php | 66 $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 …]
|