Lines Matching defs:file
416 $file = wikiFN($ID);
417 if ($ACT != 'show' || $INFO['perm'] < AUTH_READ || isHiddenPage($ID) || !file_exists($file)) {
590 * Build a link to a media file
597 * @param string $id the media file id or URL
748 // read file in chunks of 200 - this should work around the
1043 * @param string $ext extension of file being read, default 'txt'
1084 'tplfile' => '', // the file above text was/should be loaded from
1092 // if the before event did not set a template file, try to find one
1134 * @var string $tplfile the file above text was/should be loaded from
1145 $file = noNS($id);
1146 $page = strtr($file, $conf['sepchar'], ' ');
1175 $file,
1176 PhpString::ucfirst($file),
1177 PhpString::strtoupper($file),
1423 * Return the human readable size of a file
1425 * @param int $size A file size
1772 * Returns the path to a image file for the currently chosen license.
2009 * Returns the contents of a given SVG file for embedding
2017 * @param string $file full path to the SVG file
2019 * @return string|false the SVG content, false if the file couldn't be loaded
2021 function inlineSVG($file, $maxsize = 2048)
2023 $file = trim($file);
2024 if ($file === '') return false;
2025 if (!file_exists($file)) return false;
2026 if (filesize($file) > $maxsize) return false;
2027 if (!is_readable($file)) return false;
2028 $content = file_get_contents($file);