Home
last modified time | relevance | path

Searched refs:file (Results 1 - 25 of 69) sorted by relevance

123

/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Content/Type/
H A DSniffer.php66 var $file; variable
69 * Create an instance of the class with the input file
71 * @param SimplePie_Content_Type_Sniffer $file Input file
73 public function __construct($file)
75 $this->file = $file; variable
79 * Get the Content-Type of the specified file
85 if (isset($this->file->headers['content-type']))
87 if (!isset($this->file
[all...]
/dokuwiki/inc/
H A Dsearch.php15 * and calls the supplied function for each file and directory
40 while(($file = readdir($dh)) !== false){
41 if(preg_match('/^[\._]/',$file)) continue; //skip hidden files and upper dirs
42 if(is_dir($base.'/'.$dir.'/'.$file)){
43 $dirs[] = $dir.'/'.$file;
46 $files[] = $dir.'/'.$file;
47 $filepaths[] = $base.'/'.$dir.'/'.$file;
66 foreach($files as $file){
67 call_user_func_array($func, array(&$data,$base,$file,'f',$lvl,$opts));
73 * function above. This function is called for every found file o
[all...]
H A Dio.php51 * Used to read in a DokuWiki page from file, and send IO_WIKIPAGE_READ events.
55 * The file path should not be changed.
65 * @param string $file filename
70 function io_readWikiPage($file, $id, $rev=false) {
72 $data = array(array($file, true), getNS($id), noNS($id), $rev);
93 * Returns content of $file as cleaned string.
102 * @param string $file filename
104 * @return string|bool the file contents or false on error
106 function io_readFile($file,$clean=true){
108 if(file_exists($file)){
636 $file = $file.$name; global() variable
[all...]
H A Dload.php94 $file = DOKU_INC . '_test/' . substr($name, 14) . '.php'; variable
95 if(file_exists($file)) {
96 require $file;
104 $file = DOKU_PLUGIN . substr($name, 16) . '.php'; variable
105 if(file_exists($file)) {
107 require $file;
118 $file = DOKU_INC.'lib/tpl/' . substr($name, 18) . '.php'; variable
119 if(file_exists($file)) {
121 require $file;
131 $file variable
[all...]
H A Dfetch.functions.php8 * Set headers and send the file to the client
13 * This function will abort the current script when a 304 is sent or file sending is handled
16 * @param string $file local file to send
17 * @param string $mime mime type of the file
21 * @param string $orig original file to send - the file name will be used for the Content-Disposition
28 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp=[]) {
66 $fmtime = @filemtime($file);
69 // Use the current $file i
173 $file = mediaFN($media, $rev); global() variable
[all...]
H A DLogger.php54 * @param string $file A source filename if this is related to a source position
55 * @param int $line A line number for the above file
58 static public function error($message, $details = null, $file = '', $line = 0)
61 $message, $details, $file, $line
70 * @param string $file A source filename if this is related to a source position
71 * @param int $line A line number for the above file
74 static public function debug($message, $details = null, $file = '', $line = 0)
77 $message, $details, $file, $line
86 * @param string $file A source filename if this is related to a source position
87 * @param int $line A line number for the above file
[all...]
H A Dcache.php26 public function __construct($id, $file, $mode)
29 parent::__construct($id, $file, $mode);
40 public function __construct($id, $file, $mode)
43 parent::__construct($id, $file, $mode);
52 public function __construct($id, $file)
55 parent::__construct($id, $file);
H A Dconfutils.php27 * @param string $file file name
31 function mimetype($file, $knownonly=true){
33 $ext = strrpos($file, '.');
37 $ext = strtolower(substr($file, $ext + 1));
136 $lines = file(DOKU_INC . 'lib/scripts/jquery/versions');
182 $wordblocks = retrieveConfig('wordblock','file',null,'array_merge_with_removal');
195 $schemes = retrieveConfig('scheme','file',null,'array_merge_with_removal');
252 * @param string $file
257 function confToHash($file,
[all...]
H A Dhttputils.php19 * @param int $timestamp lastmodified time of the cache file
65 * Let the webserver send the given file via x-sendfile method
69 * @param string $file absolute path of file to send
72 function http_sendfile($file) {
77 header("X-LIGHTTPD-send-file: $file");
81 header("X-Sendfile: $file");
86 $file = DOKU_REL.substr($file, strle variable
[all...]
H A Dpageutils.php318 //file doesnt exist yet, so we take the configured extension
330 * Returns the full path to the file for locking the page while editing.
344 * returns the full path to the meta file specified by ID and extension
349 * @param string $ext file extension
361 * returns the full path to the media's meta file specified by ID and extension
422 * Returns the full filepath to a localized file if local
425 * @param string $id The id of the local file
426 * @param string $ext The file extension (usually txt)
427 * @return string full filepath to localized file
433 $file variable
435 $file = DOKU_INC.'inc/lang/'.$conf['lang'].'/'.$id.'.'.$ext; global() variable
438 $file = DOKU_INC.'inc/lang/en/'.$id.'.'.$ext; global() variable
521 $file = mediaFN($page,$rev); global() variable
562 $file = wikiFN($page,$rev); global() variable
623 $file = $conf['cachedir'].'/'.$md5[0].'/'.$md5.$ext; global() variable
725 $file = urlencode($file); global() variable
726 $file = str_replace('%2F','/',$file); global() variable
[all...]
H A DStyleUtils.php69 $stylesheets = array(); // mode, file => base
128 * Checks if configured style files exist and, if necessary, adjusts file extensions in config
131 * @param string $file
137 protected function getValidatedStyles($stylesheets, $file, $mode, $incbase, $webbase)
140 if (!file_exists($incbase . $file)) {
141 list($extension, $basename) = array_map('strrev', explode('.', strrev($file), 2));
146 msg("Stylesheet $file not found, using $basename.$newExtension instead. " .
150 msg("Stylesheet $file not found, please contact the developer of \"$this->tpl\" template.", 2);
153 $stylesheets[$mode][fullpath($incbase . $file)] = $webbase;
/dokuwiki/inc/Cache/
H A DCacheParser.php11 public $file = ''; // source file for cache variable
12 public $mode = ''; // input mode (represents the processing the input file will undergo)
18 * @param string $file source file for cache
21 public function __construct($id, $file, $mode)
26 $this->file = $file; variable
30 parent::__construct($file . $_SERVER['HTTP_HOST'] . $_SERVER['SERVER_PORT'], '.' . $mode);
41 if (!file_exists($this->file)) {
[all...]
H A DCacheInstructions.php13 * @param string $file source file for cache
15 public function __construct($id, $file)
17 parent::__construct($id, $file, 'i');
/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);
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
[all...]
H A DTar.php19 protected $file = ''; variable
47 * Open an existing TAR file for reading
49 * @param string $file
53 public function open($file)
55 $this->file = $file; variable
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
214 $this->file = $file; global() variable
360 $this->file = ''; global() variable
515 $file = basename($name); global() variable
685 $file = strtolower($file); global() variable
[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(); variable
77 $file->setPath($path);
78 $file->setIsdir(is_dir($path));
79 $file->setMode(fileperms($path));
80 $file
[all...]
H A DZip.php19 protected $file = ''; variable
32 * You can call this function before adding each file to set differen compression levels
33 * for each file.
48 * Open an existing ZIP file for reading
50 * @param string $file
53 public function open($file)
55 $this->file = $file; variable
56 $this->fh = @fopen($this->file, 'rb');
58 throw new ArchiveIOException('Could not open file fo
256 $this->file = $file; global() variable
406 $this->file = ''; global() variable
[all...]
/dokuwiki/lib/plugins/safefnrecode/
H A Daction.php58 while (($file = readdir($dh)) !== false) {
59 if ($file == '.' || $file == '..') continue; # cur and upper dir
60 if (is_dir("$dir/$file")) $this->recode("$dir/$file"); #recurse
61 if (strpos($file, '%') === false) continue; # no encoding used
62 $new = preg_replace('/(%[^\]]*?)\./', '\1]', $file); # new post indicator
64 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.
345 if ($file = $this->findFile($class)) {
346 includeFile($file);
353 * Finds the path to the file where the class is defined.
369 $file = apcu_fetch($this->apcuPrefix.$class, $hit); variable
371 return $file;
375 $file = $this->findFileWithExtension($class, '.php'); variable
378 if (false === $file && defined('HHVM_VERSION')) {
379 $file variable
[all...]
H A Dautoload_real.php60 foreach ($includeFiles as $fileIdentifier => $file) {
61 composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file);
68 function composerRequirea19a915ee98347a0c787119619d2ff9b($fileIdentifier, $file)
71 require $file;
/dokuwiki/inc/Subscriptions/
H A DSubscriberManager.php62 $file = $this->file($id); variable
63 return io_saveFile($file, $line, true);
87 $file = $this->file($id); variable
88 if (!file_exists($file)) {
94 return io_deleteFromFile($file, $re, true);
171 $files = [':' => $this->file(':')];
173 $files[$page] = $this->file($page);
182 foreach ($files as $target => $file) {
279 protected function file($id) global() function
[all...]
H A DMediaSubscriptionSender.php17 * @param string $id Media file for which the notification is
25 $file = mediaFN($id); variable
31 'SIZE' => filesize_h(filesize($file)),
40 $headers = ['Message-Id' => $this->getMessageID($id, @filemtime($file))];
/dokuwiki/lib/plugins/config/core/
H A DLoader.php39 * Reads the main file, plugins and template settings meta data
44 // load main file
76 * Reads the main file, plugins and template defaults
173 foreach($files as $file) {
174 $conf = array_merge($conf, $this->parser->parse($file));
180 * Read settings file from an extension
184 * @param string $file php file to read
189 protected function loadExtensionMeta($file, $type, $extname) {
190 if(!file_exists($file)) retur
[all...]
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.
14 /** @var string variable to parse from the file */
20 * Parse the given PHP file into an array
24 * @param string $file
27 public function parse($file) {
28 if(!file_exists($file)) return array();
31 $contents = @php_strip_whitespace($file);
33 // fallback to simply including the file #327
[all...]
/dokuwiki/lib/plugins/extension/helper/
H A Dextension.php617 * @param string $field name of the upload file
753 * Purge the cache by touching the main configuration file
807 * Save the given URL and current datetime in the manager.dat file of all installed extensions
839 * Read the manager.dat file
845 $file = @file($managerpath); variable
846 if (!empty($file)) {
847 foreach ($file as $line) {
860 * Write the manager.data file
888 * downloads a file fro
930 $file = $file.$name; global() variable
956 $file = parse_url($url, PHP_URL_PATH); global() variable
958 $file = md5($url); global() variable
960 $file = \\dokuwiki\\Utf8\\PhpString::basename($file); global() variable
1289 $file = $extensiondir . $line; global() variable
[all...]

Completed in 12 milliseconds

123