Lines Matching full:if

25  * @return bool - true if at least one namespace was deleted
43 if (@rmdir($dir)) {
44 if ($ns_type !== false) {
65 …* $data[1] ns: The colon separated namespace path minus the trailing page name. (false if root …
78 if (empty($rev)) {
95 if (is_array($data) && is_array($data[0]) && count($data[0]) === 2) {
105 * Uses gzip if extension is .gz
107 * If you want to use the returned value in unserialize
120 if (file_exists($file)) {
121 if (str_ends_with($file, '.gz')) {
122 if (!DOKU_HAS_GZIP) return false;
124 if ($ret === false) return false;
126 if (!DOKU_HAS_BZIP) return false;
132 if ($ret === null) return false;
133 if ($ret !== false && $clean) {
158 if ($fh === false) return false;
167 if ($leftover !== '') {
172 if ($chunk === '' || $chunk === false) break;
176 if ($decoded === false) {
181 if (inflate_get_status($ctx) === ZLIB_STREAM_END) {
205 if ($bz === false) return false;
207 if ($array) {
214 if (($buffer === false) || (bzerrno($bz) !== 0)) {
218 if ($array) {
228 if ($array) {
229 if ($str !== '') {
247 …* $data[1] ns: The colon separated namespace path minus the trailing page name. (false if root …
261 if (empty($rev)) {
264 if ($rev === false) {
281 if (is_array($data) && is_array($data[0]) && count($data[0]) === 3) {
284 if ($ok && is_int($data[3]) && $data[3] > 0) {
309 if (str_ends_with($file, '.gz')) {
310 if (!DOKU_HAS_GZIP) return false;
312 if (!$fh) return false;
316 if (!DOKU_HAS_BZIP) return false;
317 if ($append) {
319 if ($bzcontent === false) return false;
323 if (!$fh) return false;
328 if (!$fh) return false;
333 if (!$fileexists && $conf['fperm']) {
342 * If the third parameter is set to true the given content
345 * Uses gzip if extension is .gz
346 * and bz2 if extension is .bz2
359 if (!_io_saveFile($file, $content, $append)) {
376 * or all lines if $maxlines is -1. If $regex is true then captures can be used in $newline.
380 * Uses gzip if extension is .gz
381 * and bz2 if extension is .bz2
396 if ((string)$oldline === '') {
401 if (!file_exists($file)) return true;
406 if (str_ends_with($file, '.gz')) {
407 if (!DOKU_HAS_GZIP) return false;
410 if (!DOKU_HAS_BZIP) return false;
421 if ($maxlines > 0) {
425 if ($count >= $maxlines) break;
428 if ($matched) {
434 if ((string)$newline !== '') {
441 if (count($lines)) {
442 if (!_io_saveFile($file, implode('', $lines), false)) {
495 if ((time() - $timeStart) > 3) break;
497 if ($locked) {
498 if ($conf['dperm']) {
540 if (!isset($types[$ns_type])) {
552 if (strlen($ns) == 0) {
578 if (!@is_dir($dir)) {
579 if (!io_mkdir_p($dir)) {
598 if (@is_dir($target) || empty($target)) return true; // best case check first
599 if (file_exists($target) && !is_dir($target)) return false;
601 if (io_mkdir_p(substr($target, 0, strrpos($target, '/')))) {
603 if ($ret && !empty($conf['dperm'])) {
622 if (!is_string($path) || $path == "") return false;
623 if (!file_exists($path)) return true; // it's already gone or was never there, count as success
625 if (is_dir($path) && !is_link($path)) {
628 if (!$dh = @opendir($path)) return false;
630 if ($f == '..' || $f == '.') continue;
633 if (is_dir("$path/$f") && !is_link("$path/$f")) {
644 if (!io_rmdir($dir, $removefiles)) return false; // abort on any error
648 if (!@unlink($file)) return false; //abort on any error
675 if (io_mkdir_p($tmpdir)) {
685 * if $useAttachment is false,
687 * - if successful will return true, false otherwise
689 * if $useAttachment is true,
691 * - if successful will return the name used for the saved file, false otherwise
697 * @param string $defaultName fallback for if using $useAttachment
699 …* @return bool|string if failed false, otherwise true or the name of the file in the give…
713 if (!$data) return false;
716 if ($useAttachment) {
717 if (isset($http->resp_headers['content-disposition'])) {
720 if (
728 if (!$name) {
729 if (!$defaultName) return false;
738 if (!$fp) return false;
741 if (!$fileexists && $conf['fperm']) {
744 if ($useAttachment) return $name;
761 if (!@rename($from, $to)) {
762 if (@copy($from, $to)) {
763 if ($conf['fperm']) {
793 if (!$ph) return -1;
820 if (!$fh) return false;
827 if (!str_ends_with($line, "\n")) continue;
829 // check if line matches
830 if (preg_match($pattern, $line, $match)) {
831 if ($backref) {
838 if ($max && $max == $cnt) break;
857 if (!file_exists($file)) return 0;
859 if (str_ends_with($file, '.gz')) {
861 if ($fp === false) return 0;
868 if (!DOKU_HAS_BZIP) return 0;
870 if ($bz === false) return 0;
875 if (($buffer === false) || (bzerrno($bz) !== 0)) {