| /dokuwiki/inc/ |
| H A D | load.php | 104 * Check if the class is one of the fixed names 107 * @return bool true if the class was loaded, false otherwise 111 if (isset($this->fixedClassNames[$className])) { 119 * Check if the class is a test mock class 122 * @return bool true if the class was loaded, false otherwise 126 if ($this->prefixStrip($classPath, 'dokuwiki/test/mock/')) { 128 if (file_exists($file)) { 137 * Check if the class is a test mock class 140 * @return bool true if the class was loaded, false otherwise 144 if ($this->prefixStrip($classPath, 'dokuwiki/test/')) { [all …]
|
| H A D | init.php | 30 // if available load a preload config file 32 if (file_exists($preload)) include($preload); 35 if (!defined('DOKU_INC')) define('DOKU_INC', fullpath(__DIR__ . '/../') . '/'); 38 if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); 41 if (!defined('DOKU_CONF')) define('DOKU_CONF', DOKU_INC . 'conf/'); 44 if (!defined('DOKU_E_LEVEL') && file_exists(DOKU_CONF . 'report_e_all')) { 47 if (!defined('DOKU_E_LEVEL')) { 81 if (empty($config_cascade['main'][$config_group])) continue; 83 if (file_exists($config_file)) { 102 if (empty($config_cascade['license'][$config_group])) continue; [all …]
|
| H A D | io.php | 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')) { [all …]
|
| H A D | utf8.php | 7 * functions if needed. All actual code is in the \dokuwiki\Utf8 classes 20 if (!defined('UTF8_MBSTRING')) { 21 if (function_exists('mb_substr') && !defined('UTF8_NOMBSTRING')) { 29 * Check if PREG was compiled with UTF-8 support 33 if (!defined('UTF8_PREGSUPPORT')) { 38 * Check if PREG was compiled with Unicode Property support 42 if (!defined('UTF8_PROPERTYSUPPORT')) { 47 if (UTF8_MBSTRING) { 52 if (!function_exists('utf8_isASCII')) { 62 if (!function_exists('utf8_strip')) { [all …]
|
| H A D | template.php | 28 * default template if the custom version doesn't exist. 39 if (@is_readable(DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file)) 58 if (!$tpl) $tpl = $conf['template']; 75 if (!$tpl) $tpl = $conf['template']; 90 * @return bool true if any output 133 * If you use this you most probably want to call tpl_content with 151 if (is_array($TOC)) { 152 // if a TOC was prepared in global scope, always use it 155 // get TOC from metadata, render if neccessary 159 … if (!$tocok || !is_array($toc) || !$conf['tocminheads'] || count($toc) < $conf['tocminheads']) { [all …]
|
| H A D | auth.php | 52 // unset REMOTE_USER if empty 53 if ($INPUT->server->str('REMOTE_USER') === '') { 57 if (!$conf['useacl']) return false; 61 if ($conf['authtype'] === $plugin) { 67 if (!$auth instanceof AuthPlugin) { 72 if ($auth->success == false) { 82 if (!$conf['rememberme']) $INPUT->set('r', false); 87 if (preg_match('~^Basic ([a-z\d/+]*={0,2})$~i', $header, $matches)) { 92 // if no credentials were given try to use HTTP auth (for SSO) 93 …if (!$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($INPUT->server->str('PHP_AUTH_USER… [all …]
|
| H A D | common.php | 47 * If the $input string does not contain enough elements, the missing elements will be 48 * filled up with the $default value. If the input string contains more elements, the last 64 * Checks if the given input is blank 82 if (is_null($in)) return true; 83 if (is_array($in)) return $in === []; 84 if ($in === "\0") return true; 85 if ($trim && trim($in) === '') return true; 86 if ((string) $in !== '') return false; 121 if (trim($user) == '' || trim($session) == '') return ''; 129 * @return bool success if the token matched [all …]
|
| H A D | search.php | 37 if ($base == '' || $base == '/') { 43 if (!$dh) return; 45 if (preg_match('/^[\._]/', $file)) continue; //skip hidden files and upper dirs 46 if (is_dir($base . '/' . $dir . '/' . $file)) { 54 if (!empty($sort)) { 55 if ($sort == 'date') { 65 if (call_user_func_array($func, [&$data, $base, $dir, 'd', $lvl, $opts])) { 79 * decide if this directory should be traversed (true) or not (false) 177 * $opts['showmsg'] shows message if invalid media id is used 196 if ($type == 'd') { [all …]
|
| H A D | Ip.php | 34 * @return bool Returns true if $needle is within the range specified 35 * by $haystack, false if it is outside the range. 37 * @throws Exception Thrown if $needle is not a valid IP address. 38 * @throws Exception Thrown if $haystack is not a valid IP range. 47 if ($networkIp['version'] === 4) { 51 if ($maskLength > 128) { 61 if (PHP_INT_SIZE == 4) { 97 * @throws Exception Thrown if the IP is not valid. 103 if ($binary === false) { 107 if (strlen($binary) === 4) { [all …]
|
| H A D | confutils.php | 24 * If $knownonly is true (the default), then only known extensions 31 * @return array with extension, mimetype and if it should be downloaded 37 if ($ext === false) { 41 if (!isset($mtypes[$ext])) { 42 if ($knownonly) { 48 if ($mtypes[$ext][0] == '!') { 63 if (!$mime) { 78 if (!$acronyms) { 93 if (!$smileys) { 108 if (!$entities) { [all …]
|
| /dokuwiki/inc/Input/ |
| H A D | Input.php | 9 * All function access the $_REQUEST array by default, if you want to access $_POST or $_GET 49 if (!$this->filter) return $data; 70 * Check if a parameter was set 95 if (isset($this->access[$name])) { 99 if (isset($this->post) && isset($_POST[$name])) { 102 if (isset($this->get) && isset($_GET[$name])) { 111 * @param mixed $default Default to return if parameter isn't set 112 * @param bool $nonempty Return $default if parameter is set but empty() 117 if (!isset($this->access[$name])) return $default; 119 if ($nonempty && empty($value)) return $default; [all …]
|
| /dokuwiki/lib/plugins/authad/adLDAP/ |
| H A D | adLDAP.php | 43 * based directory. If you bind as a domain user, you can't fetch as 92 * If this is set to null then adLDAP will attempt to obtain this automatically from the rootDSE 106 * Array of domain controllers. Specifiy multiple controllers if you 126 * Setting to false will fudge "Domain Users" and is much faster. Keep in mind though that if 143 * If you wish to use TLS you should ensure that $useSSL is set to false and vice-versa 160 … * user_ingroup("Fred","C") will returns true with this option turned on, false if turned off 184 if ($this->ldapConnection) { 221 if (!$this->groupClass) { 240 if (!$this->userClass) { 259 if (!$this->folderClass) { [all …]
|
| /dokuwiki/inc/Action/ |
| H A D | Edit.php | 22 if ($INFO['exists']) { 30 * @inheritdoc falls back to 'source' if page not writable 38 if ($INFO['exists'] && !$INFO['writable']) { 58 if (!isset($TEXT)) { 59 if ($INFO['exists']) { 60 if ($RANGE) { 71 if (!$SUM) { 72 if ($REV) { 81 if (!$DATE) $DATE = @filemtime(wikiFN($ID)); 83 //check if locked by anyone - if not lock for my self [all …]
|
| H A D | Search.php | 30 * we only search if a search word was given 44 if ($ID !== $conf['start'] && !$INPUT->has('q')) { 52 if ($s === '') throw new ActionAbort(); 95 …* This will only do something if the search didn't originate from the form on the searchpage itself 101 if ($INPUT->bool('sf')) { 107 if (empty($parsedQuery['ns']) && empty($parsedQuery['notns'])) { 108 if ($conf['search_nslimit'] > 0) { 109 if (getNS($ID) !== false) { 117 if ($conf['search_fragment'] !== 'exact') { 118 if (empty(array_diff($parsedQuery['words'], $parsedQuery['and']))) { [all …]
|
| /dokuwiki/inc/Search/Index/ |
| H A D | FileIndex.php | 31 if (!$this->isWritable) throw new IndexLockException(); 33 if (!str_ends_with($value, "\n")) { 39 if (!$fh) { 46 if ($ih) { 52 // if wanted line is beyond the current line count, insert empty lines inbetween 53 if ($rid > $ln) { 61 if ($conf['fperm']) { 70 if (!file_exists($this->filename)) { 74 if (!$fh) { 79 if (++$ln == $rid) { [all …]
|
| /dokuwiki/vendor/splitbrain/lesserphp/src/ |
| H A D | Parser.php | 77 * if we are in parens we can be more liberal with whitespace around 102 if (!self::$operatorString) { 133 // if (preg_match('/^\s+/', $this->buffer, $m)) { 144 if ($this->count != strlen($this->buffer)) { 153 if (!property_exists($this->env, 'parent') || !is_null($this->env->parent)) { 177 * If it is successful, it will place the keyword in the referenced 178 * argument, advance the position in the buffer, and return true. If it 188 * But, if some of the rules in the chain succeed before one fails, then 193 * position into $s. Then if a chain fails, use $this->seek($s) to 200 if (empty($this->buffer)) return false; [all …]
|
| /dokuwiki/lib/plugins/authad/adLDAP/classes/ |
| H A D | adLDAPUsers.php | 72 * If you specify a password here, this can only be performed over SSL 80 … if (!array_key_exists("username", $attributes)){ return "Missing compulsory field [username]"; } 81 … if (!array_key_exists("firstname", $attributes)){ return "Missing compulsory field [firstname]"; } 82 … if (!array_key_exists("surname", $attributes)){ return "Missing compulsory field [surname]"; } 83 if (!array_key_exists("email", $attributes)){ return "Missing compulsory field [email]"; } 84 … if (!array_key_exists("container", $attributes)){ return "Missing compulsory field [container]"; } 85 if (!is_array($attributes["container"])){ return "Container attribute must be an array."; } 87 …if (array_key_exists("password",$attributes) && (!$this->adldap->getUseSSL() && !$this->adldap->ge… 91 if (!array_key_exists("display_name", $attributes)) { 109 if (!$attributes["enabled"]) { [all …]
|
| /dokuwiki/lib/exe/ |
| H A D | mediamanager.php | 5 if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../'); 17 if ($INPUT->str('msg1')) msg(hsc($INPUT->str('msg1')), 1); 18 if ($INPUT->str('err')) msg(hsc($INPUT->str('err')), -1); 22 if ($INPUT->str('delete')) { 43 // If this page is directly opened it means we are in popup mode not fullscreen 51 // do not display the manager if user does not have read access 52 if ($AUTH < AUTH_READ && !$fullscreen) { 58 if (isset($_FILES['Filedata'])) { 61 if ($JUMPTO == false) { 70 if (!empty($_FILES['upload']['error'])) { [all …]
|
| /dokuwiki/lib/scripts/ |
| H A D | compatibility.js | 4 * This will print a warning to the JavaScript console (if available) in 5 * Firebug and Chrome and a stack trace (if available) to easily locate the 11 if(!window.console) return; 12 if(!msg) msg = ''; 15 if(arguments.callee) func = arguments.callee.caller.name; 16 if(func) func = ' '+func+'()'; 19 if(console.warn){ 25 if(console.trace) console.trace();
|
| /dokuwiki/lib/plugins/authpdo/ |
| H A D | auth.php | 32 if (!class_exists('PDO')) { 38 if (!$this->getConf('dsn')) { 126 if ($userdata === false) { 132 if ($this->checkConfig(['check-pass'])) { 136 if ($result === false) return false; 141 if (isset($userdata['hash'])) { 168 if ($data == false) return false; 170 if (isset($data['hash'])) unset($data['hash']); 171 if (isset($data['clean'])) unset($data['clean']); 173 if ($requireGroups) { [all …]
|
| /dokuwiki/vendor/splitbrain/slika/src/ |
| H A D | GdAdapter.php | 34 if (is_resource($this->image)) { 44 if ($this->extension !== 'jpeg') { 57 if ($orientation < 0 || $orientation > 8) { 61 if ($orientation <= 1) { 71 if (in_array($orientation, [3, 4])) { 82 if (in_array($orientation, [2, 5, 7, 4])) { 86 if ($image !== $this->image) { 91 //keep png alpha channel if possible 92 if ($this->extension == 'png' && function_exists('imagesavealpha')) { 128 if ($extension === 'jpg') { [all …]
|
| /dokuwiki/inc/HTTP/ |
| H A D | HTTPClient.php | 22 //set these if you like 30 …public $max_bodysize_abort = true; // if set, abort if the response body is bigger than max_bodys… 31 public $header_regexp = ''; // if set this RE must match against the headers, else abort 50 // set these if you need to use a proxy 55 public $proxy_ssl; //boolean set to true if your proxy needs SSL 72 if (extension_loaded('zlib')) $this->headers['Accept-encoding'] = 'gzip'; 92 if (!$this->sendRequest($url)) return false; 93 if ($this->status == 304 && $sloppy304) return $this->resp_body; 94 if ($this->status < 200 || $this->status > 206) return false; 115 if (strpos($url, '?')) { [all …]
|
| /dokuwiki/lib/plugins/config/core/ |
| H A D | Writer.php | 37 if ($this->isLocked()) throw new \Exception('no save'); 40 if (file_exists($this->savefile)) { 41 if (file_exists($this->savefile . '.bak.php')) @unlink($this->savefile . '.bak.php'); 42 … if (!io_rename($this->savefile, $this->savefile . '.bak.php')) throw new \Exception('no backup'); 45 if (!$fh = @fopen($this->savefile, 'wb')) { 52 if ($setting->shouldBeSaved()) { 57 if ($out === '') { 64 if ($conf['fperm']) chmod($this->savefile, $conf['fperm']); 77 if ($this->isLocked()) throw new \Exception('no save'); 83 * Invalidate the opcache of the given file (if possible) [all …]
|
| /dokuwiki/lib/plugins/authldap/ |
| H A D | auth.php | 37 if (!function_exists('ldap_connect')) { 50 * Checks if the given user exists and the given 62 if (empty($pass)) return false; 63 if (!$this->openLDAP()) return false; 66 if ($this->getConf('binddn') && $this->getConf('bindpw')) { 68 …if (!@ldap_bind($this->con, $this->getConf('binddn'), conf_decodeString($this->getConf('bindpw')))… 96 // Try to bind to with the dn if we have one. 97 if (!empty($dn)) { 99 if (!@ldap_bind($this->con, $dn, $pass)) { 107 // See if we can find the user [all …]
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | Installer.php | 26 /** @var bool if changes have been made that require a cache purge */ 79 if ($skipInstalled && $extension->isInstalled()) return; 94 if (!$url) { 126 if ($_FILES[$field]['error']) { 132 if (!move_uploaded_file($_FILES[$field]['tmp_name'], "$tmp/$tmpbase.archive")) { 155 if ($extension->isInstalled()) { 156 if (!$this->overwrite) { 170 if (isset($this->processed[$id])) continue; 171 if ($id == $extension->getId()) continue; // avoid circular dependencies 198 if (!$extension->isInstalled()) { [all …]
|