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])) {
544 if (substr_count($id, ':') >= 128) {
556 if (strlen($ns) == 0) {
582 if (!@is_dir($dir)) {
583 if (!io_mkdir_p($dir)) {
602 if (@is_dir($target) || empty($target)) return true; // best case check first
603 if (file_exists($target) && !is_dir($target)) return false;
605 if (io_mkdir_p(substr($target, 0, strrpos($target, '/')))) {
607 if ($ret && !empty($conf['dperm'])) {
626 if (!is_string($path) || $path == "") return false;
627 if (!file_exists($path)) return true; // it's already gone or was never there, count as success
629 if (is_dir($path) && !is_link($path)) {
632 if (!$dh = @opendir($path)) return false;
634 if ($f == '..' || $f == '.') continue;
637 if (is_dir("$path/$f") && !is_link("$path/$f")) {
648 if (!io_rmdir($dir, $removefiles)) return false; // abort on any error
652 if (!@unlink($file)) return false; //abort on any error
679 if (io_mkdir_p($tmpdir)) {
689 * if $useAttachment is false,
691 * - if successful will return true, false otherwise
693 * if $useAttachment is true,
695 * - if successful will return the name used for the saved file, false otherwise
701 * @param string $defaultName fallback for if using $useAttachment
703 …* @return bool|string if failed false, otherwise true or the name of the file in the give…
717 if (!$data) return false;
720 if ($useAttachment) {
721 if (isset($http->resp_headers['content-disposition'])) {
724 if (
732 if (!$name) {
733 if (!$defaultName) return false;
742 if (!$fp) return false;
745 if (!$fileexists && $conf['fperm']) {
748 if ($useAttachment) return $name;
765 if (!@rename($from, $to)) {
766 if (@copy($from, $to)) {
767 if ($conf['fperm']) {
797 if (!$ph) return -1;
824 if (!$fh) return false;
831 if (!str_ends_with($line, "\n")) continue;
833 // check if line matches
834 if (preg_match($pattern, $line, $match)) {
835 if ($backref) {
842 if ($max && $max == $cnt) break;
861 if (!file_exists($file)) return 0;
863 if (str_ends_with($file, '.gz')) {
865 if ($fp === false) return 0;
872 if (!DOKU_HAS_BZIP) return 0;
874 if ($bz === false) return 0;
879 if (($buffer === false) || (bzerrno($bz) !== 0)) {