Home
last modified time | relevance | path

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

1234567

/dokuwiki/vendor/simplepie/simplepie/src/Content/Type/
H A DSniffer.php69 public $file; variable in SimplePie\\Content\\Type\\Sniffer
72 * Create an instance of the class with the input file
74 * @param Sniffer $file Input file
76 public function __construct($file) argument
78 $this->file = $file;
82 * Get the Content-Type of the specified file
88 if (isset($this->file->headers['content-type'])) {
89 if (!isset($this->file
[all...]
/dokuwiki/inc/
H A Dio.php56 * Used to read in a DokuWiki page from file, and send IO_WIKIPAGE_READ events.
60 * The file path should not be changed.
68 * @param string $file filename
75 function io_readWikiPage($file, $id, $rev = false)
80 $data = [[$file, true], getNS($id), noNS($id), $rev];
102 * Returns content of $file as cleaned string.
110 * @param string $file filename
112 * @return string|bool the file contents or false on error
116 function io_readFile($file, $clean = true)
119 if (file_exists($file)) {
70 io_readWikiPage($file, $id, $rev = false) global() argument
106 io_readFile($file, $clean = true) global() argument
137 bzfile($file, $array = false) global() argument
189 io_writeWikiPage($file, $content, $id, $rev = false) global() argument
226 _io_saveFile($file, $content, $append) global() argument
275 io_saveFile($file, $content, $append = false) global() argument
313 io_replaceInFile($file, $oldline, $newline, $regex = false, $maxlines = 0) global() argument
384 io_deleteFromFile($file, $badline, $regex = false) global() argument
401 io_lock($file) global() argument
427 io_unlock($file) global() argument
484 io_makeFileDir($file) global() argument
608 io_download($url, $file, $useAttachment = false, $defaultName = '', $maxSize = 2097152) global() argument
712 io_grep($file, $pattern, $max = 0, $backref = false) global() argument
749 io_getSizeFile($file) global() argument
[all...]
H A Dsearch.php18 * and calls the supplied function for each file and directory
44 while (($file = readdir($dh)) !== false) {
45 if (preg_match('/^[\._]/', $file)) continue; //skip hidden files and upper dirs
46 if (is_dir($base . '/' . $dir . '/' . $file)) {
47 $dirs[] = $dir . '/' . $file;
50 $files[] = $dir . '/' . $file;
51 $filepaths[] = $base . '/' . $dir . '/' . $file;
70 foreach ($files as $file) {
71 call_user_func_array($func, [&$data, $base, $file, 'f', $lvl, $opts]);
77 * function above. This function is called for every found file o
108 search_qsearch(& $data, $base, $file, $type, $lvl, $opts) global() argument
133 search_index(& $data, $base, $file, $type, $lvl, $opts) global() argument
162 search_namespaces(& $data, $base, $file, $type, $lvl, $opts) global() argument
188 search_media(& $data, $base, $file, $type, $lvl, $opts) global() argument
255 search_mediafiles(& $data, $base, $file, $type, $lvl, $opts) global() argument
302 search_list(& $data, $base, $file, $type, $lvl, $opts) global() argument
333 search_pagename(& $data, $base, $file, $type, $lvl, $opts) global() argument
371 search_allpages(& $data, $base, $file, $type, $lvl, $opts) global() argument
487 search_universal(& $data, $base, $file, $type, $lvl, $opts) global() argument
[all...]
H A Dload.php43 /** @var string[] Classname to file mappings */
133 $file = DOKU_INC . '_test/mock/' . $classPath . '.php';
134 if (file_exists($file)) {
135 require $file;
151 $file = DOKU_INC . '_test/tests/' . $classPath . '.php';
152 if (file_exists($file)) {
153 require $file;
172 $file = DOKU_PLUGIN . $classPath . '.php';
173 if (file_exists($file)) {
179 require $file;
[all...]
H A Dfetch.functions.php12 * Set headers and send the file to the client
17 * This function will abort the current script when a 304 is sent or file sending is handled
20 * @param string $file local file to send
21 * @param string $mime mime type of the file
25 * @param string $orig original file to send - the file name will be used for the Content-Disposition
32 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = [])
71 $fmtime = @filemtime($file);
74 // Use the current $file i
28 sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = []) global() argument
144 checkFileStatus(& $media, & $file, $rev = '', $width = 0, $height = 0) global() argument
[all...]
H A Dcache.php27 public function __construct($id, $file, $mode)
30 parent::__construct($id, $file, $mode);
41 public function __construct($id, $file, $mode)
44 parent::__construct($id, $file, $mode);
53 public function __construct($id, $file)
56 parent::__construct($id, $file);
26 __construct($id, $file, $mode) global() argument
40 __construct($id, $file, $mode) global() argument
52 __construct($id, $file) global() argument
H A DLogger.php8 * Log messages to a daily log file
59 * @param string $file A source filename if this is related to a source position
60 * @param int $line A line number for the above file
63 public static function error($message, $details = null, $file = '', $line = 0) argument
68 $file,
78 * @param string $file A source filename if this is related to a source position
79 * @param int $line A line number for the above file argument
82 public static function debug($message, $details = null, $file = '', $line = 0)
87 $file,
97 * @param string $file
95 deprecated($message, $details = null, $file = '', $line = 0) global() argument
112 log($message, $details = null, $file = '', $line = 0) global() argument
[all...]
H A Dhttputils.php17 * @param int $timestamp lastmodified time of the cache file
60 * Let the webserver send the given file via x-sendfile method
62 * @param string $file absolute path of file to send
67 function http_sendfile($file)
73 header("X-LIGHTTPD-send-file: $file");
77 header("X-Sendfile: $file");
82 $file = DOKU_REL . substr($file, strle
65 http_sendfile($file) global() argument
247 http_cached_finish($file, $content) global() argument
[all...]
H A DStyleUtils.php68 $stylesheets = []; // mode, file => base
127 * Checks if configured style files exist and, if necessary, adjusts file extensions in config
130 * @param string $file
136 protected function getValidatedStyles($stylesheets, $file, $mode, $incbase, $webbase)
139 if (!file_exists($incbase . $file)) {
140 [$extension, $basename] = array_map('strrev', sexplode('.', strrev($file), 2, ''));
145 msg("Stylesheet $file not found, using $basename.$newExtension instead. " .
149 msg("Stylesheet $file not found, please contact the developer of \"$this->tpl\" template.", 2);
152 $stylesheets[$mode][fullpath($incbase . $file)] = $webbase;
137 getValidatedStyles($stylesheets, $file, $mode, $incbase, $webbase) global() argument
H A Dconfutils.php29 * @param string $file file name
33 function mimetype($file, $knownonly = true)
36 $ext = strrpos($file, '.');
40 $ext = strtolower(substr($file, $ext + 1));
145 $lines = file(DOKU_INC . 'lib/scripts/jquery/versions');
189 $wordblocks = retrieveConfig('wordblock', 'file', null, 'array_merge_with_removal');
203 $schemes = retrieveConfig('scheme', 'file', null, 'array_merge_with_removal');
261 * @param string $file
266 function confToHash($file,
31 mimetype($file, $knownonly = true) global() argument
257 confToHash($file, $lower = false) global() argument
271 jsonToArray($file) global() argument
[all...]
/dokuwiki/inc/Cache/
H A DCacheImageMod.php10 /** @var string source file */
11 protected $file;
14 * @param string $file Original source file
20 public function __construct($file, $w, $h, $ext, $crop)
26 $this->file = $file;
29 parent::__construct($file, $fullext);
35 if (!file_exists($this->file)) {
50 [$this->file],
12 protected $file; global() variable in dokuwiki\\Cache\\CacheImageMod
21 __construct($file, $w, $h, $ext, $crop) global() argument
[all...]
H A DCacheParser.php10 public $file = ''; // source file for cache
11 public $mode = ''; // input mode (represents the processing the input file will undergo) variable in dokuwiki\\Cache\\CacheParser
17 * @param string $file source file for cache
20 public function __construct($id, $file, $mode)
27 $this->file = $file;
31 parent::__construct($file . $INPUT->server->str('HTTP_HOST') . $INPUT->server->str('SERVER_PORT'), '.' . $mode);
41 if (!file_exists($this->file)) {
21 __construct($id, $file, $mode) global() argument
[all...]
H A DCacheInstructions.php12 * @param string $file source file for cache
14 public function __construct($id, $file)
16 parent::__construct($id, $file, 'i');
15 __construct($id, $file) global() argument
/dokuwiki/vendor/splitbrain/php-archive/src/
H A DArchive.php26 * Open an existing archive file for reading
28 * @param string $file
31 abstract public function open($file); argument
39 * Reopen the file with open() again if you want to do additional operations
49 * found in the archive file, similar to the --strip-components feature of GNU tar. This is triggered when
60 * The archive is closed afterwards. Reopen the file with open() again if you want to do additional operations
72 * Create a new archive file
74 * If $file is empty, the archive file will be created in memory
76 * @param string $file
78 create($file = '') global() argument
87 addFile($file, $fileinfo = '') global() argument
121 save($file) global() argument
[all...]
H A DTar.php19 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...]
H A DFileInfo.php8 * stores meta data about a file in an Archive
32 * @param string $path The path of the file, can also be set later through setPath()
59 * Factory to build FileInfo from existing file or directory
61 * @param string $path path to a file on the local file system
75 $file = new FileInfo();
77 $file->setPath($path);
78 $file->setIsdir(is_dir($path));
79 $file->setMode(fileperms($path));
80 $file
[all...]
/dokuwiki/lib/plugins/safefnrecode/
H A Daction.php61 while (($file = readdir($dh)) !== false) {
62 if ($file == '.' || $file == '..') continue; # cur and upper dir
63 if (is_dir("$dir/$file")) $this->recode("$dir/$file"); #recurse
64 if (strpos($file, '%') === false) continue; # no encoding used
65 $new = preg_replace('/(%[^\]]*?)\./', '\1]', $file); # new post indicator
67 rename("$dir/$file", "$dir/$new"); # rename it
/dokuwiki/vendor/composer/
H A DClassLoader.php4 * This file is part of Composer.
10 * file that was distributed with this source code.
425 if ($file = $this->findFile($class)) {
427 $includeFile($file);
436 * Finds the path to the file where the class is defined.
452 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
454 return $file;
458 $file = $this->findFileWithExtension($class, '.php');
461 if (false === $file && defined('HHVM_VERSION')) {
462 $file
[all...]
H A Dautoload_real.php37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
41 require $file;
44 foreach ($filesToLoad as $fileIdentifier => $file) {
45 $requireFile($fileIdentifier, $file);
/dokuwiki/inc/Subscriptions/
H A DSubscriberManager.php61 $file = $this->file($id);
62 return io_saveFile($file, $line, true);
87 $file = $this->file($id);
88 if (!file_exists($file)) {
94 return io_deleteFromFile($file, $re, true);
174 $files = [':' => $this->file(':')];
176 $files[$page] = $this->file($page);
185 foreach ($files as $target => $file) {
284 protected function file($id) global() function in dokuwiki\\Subscriptions\\SubscriberManager
[all...]
H A DMediaSubscriptionSender.php14 * @param string $id Media file for which the notification is
22 $file = mediaFN($id);
28 'SIZE' => filesize_h(filesize($file)),
37 $headers = ['Message-Id' => $this->getMessageID($id, @filemtime($file))];
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php6 * A naive PHP file parser
8 * This parses our very simple config file in PHP format. We use this instead of simply including
9 * the file, because we want to keep expressions such as 24*60*60 as is.
15 /** @var string variable to parse from the file */
21 * Parse the given PHP file into an array
25 * @param string $file
28 public function parse($file)
30 if (!file_exists($file)) return [];
33 $contents = @php_strip_whitespace($file);
35 // fallback to simply including the file #327
27 parse($file) global() argument
[all...]
H A DLoader.php41 * Reads the main file, plugins and template settings meta data
47 // load main file
79 * Reads the main file, plugins and template defaults
186 foreach ($files as $file) {
187 $conf = array_merge($conf, $this->parser->parse($file));
193 * Read settings file from an extension
197 * @param string $file php file to read
202 protected function loadExtensionMeta($file, $type, $extname)
204 if (!file_exists($file)) retur
195 loadExtensionMeta($file, $type, $extname) global() argument
225 loadExtensionConf($file, $type, $extname) global() argument
[all...]
/dokuwiki/lib/exe/
H A Djs.php128 foreach ($files as $file) {
129 if (!file_exists($file)) continue;
130 $ismin = str_ends_with($file, '.min.js');
131 $debugjs = ($conf['allowdebug'] && strpos($file, DOKU_INC . 'lib/scripts/') !== 0);
133 echo "\n\n/* XXXXXXXXXX begin of " . str_replace(DOKU_INC, '', $file) . " XXXXXXXXXX */\n\n";
136 js_load($file);
137 if ($debugjs) echo "\n} catch (e) {\n logError(e, '" . str_replace(DOKU_INC, '', $file) . "');\n}\n";
139 echo "\n\n/* XXXXXXXXXX end of " . str_replace(DOKU_INC, '', $file) . " XXXXXXXXXX */\n\n";
171 * Load the given file, handle include calls and print it
173 * @param string $file filenam
175 js_load($file) global() argument
[all...]
/dokuwiki/vendor/simplepie/simplepie/
H A Dautoloader.php78 $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; variable
80 // if the file exists, require it
81 if (file_exists($file)) {
82 require $file;

1234567