Home
last modified time | relevance | path

Searched full:if (Results 1 – 25 of 1101) sorted by relevance

12345678910>>...45

/dokuwiki/inc/
H A Dindexer.php19 if (!defined('IDX_MINWORDLENGTH')) define('IDX_MINWORDLENGTH', 2);
38 if ($indexer_version == null) {
65 // If left alone, all chinese "words" will get put into w3.idx
67 if (preg_match_all('/[\xE2-\xEF]/', $w, $leadbytes)) {
84 if (!isset($Indexer)) {
100 if (is_null($stopwords)) {
103 if (file_exists($swfile)) {
127 // check if page was deleted but is still in the index
128 if (!page_exists($page)) {
129 if (!file_exists($idxtag)) {
[all …]
H A Dload.php108 * Check if the class is one of the fixed names
111 * @return bool true if the class was loaded, false otherwise
115 if (isset($this->fixedClassNames[$className])) {
123 * Check if the class is a test mock class
126 * @return bool true if the class was loaded, false otherwise
130 if ($this->prefixStrip($classPath, 'dokuwiki/test/mock/')) {
132 if (file_exists($file)) {
141 * Check if the class is a test mock class
144 * @return bool true if the class was loaded, false otherwise
148 if ($this->prefixStrip($classPath, 'dokuwiki/test/')) {
[all …]
H A Dio.php25 * @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 Dinit.php30 // 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 Dutf8.php7 * 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 Dtemplate.php27 * default template if the custom version doesn't exist.
38 if (@is_readable(DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file))
57 if (!$tpl) $tpl = $conf['template'];
74 if (!$tpl) $tpl = $conf['template'];
89 * @return bool true if any output
132 * If you use this you most probably want to call tpl_content with
150 if (is_array($TOC)) {
151 // if a TOC was prepared in global scope, always use it
154 // get TOC from metadata, render if neccessary
158if (!$tocok || !is_array($toc) || !$conf['tocminheads'] || count($toc) < $conf['tocminheads']) {
[all …]
H A Dauth.php51 // unset REMOTE_USER if empty
52 if ($INPUT->server->str('REMOTE_USER') === '') {
56 if (!$conf['useacl']) return false;
60 if ($conf['authtype'] === $plugin) {
66 if (!$auth instanceof AuthPlugin) {
71 if ($auth->success == false) {
81 if (!$conf['rememberme']) $INPUT->set('r', false);
86 if (preg_match('~^Basic ([a-z\d/+]*={0,2})$~i', $header, $matches)) {
91 // if no credentials were given try to use HTTP auth (for SSO)
92if (!$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($INPUT->server->str('PHP_AUTH_USER…
[all …]
H A Dcompatibility.php9 if (!function_exists('ctype_space')) {
19if (!is_string($text)) return false; #FIXME original treats between -128 and 255 inclusive as ASCI…
20 if (trim($text) === '') return true;
25 if (!function_exists('ctype_digit')) {
35if (!is_string($text)) return false; #FIXME original treats between -128 and 255 inclusive as ASCI…
36 if (preg_match('/^\d+$/', $text)) return true;
41 if (!function_exists('gzopen') && function_exists('gzopen64')) {
58 if (!function_exists('gzseek') && function_exists('gzseek64')) {
75 if (!function_exists('gztell') && function_exists('gztell64')) {
94 if (!function_exists('str_starts_with')) {
[all …]
H A DIp.php33 * @return bool Returns true if $needle is within the range specified
34 * by $haystack, false if it is outside the range.
36 * @throws Exception Thrown if $needle is not a valid IP address.
37 * @throws Exception Thrown if $haystack is not a valid IP range.
46 if ($networkIp['version'] === 4) {
50 if ($maskLength > 128) {
84 * @throws Exception Thrown if the IP is not valid.
90 if ($binary === false) {
94 if (strlen($binary) === 4) {
110 * Determine if an IP address is equal to another IP or within an IP range.
[all …]
H A Dsearch.php37 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
197 if ($type == 'd') {
[all …]
/dokuwiki/inc/Input/
H A DInput.php9 * 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 DadLDAP.php43 * 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 DEdit.php22 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 DSearch.php27 * we only search if a search word was given
41 if ($ID !== $conf['start'] && !$INPUT->has('q')) {
49 if ($s === '') throw new ActionAbort();
79 …* This will only do something if the search didn't originate from the form on the searchpage itself
85 if ($INPUT->bool('sf')) {
92 if (empty($parsedQuery['ns']) && empty($parsedQuery['notns'])) {
93 if ($conf['search_nslimit'] > 0) {
94 if (getNS($ID) !== false) {
102 if ($conf['search_fragment'] !== 'exact') {
103 if (empty(array_diff($parsedQuery['words'], $parsedQuery['and']))) {
[all …]
/dokuwiki/vendor/splitbrain/lesserphp/src/
H A DParser.php77 * 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 DadLDAPUsers.php72 * If you specify a password here, this can only be performed over SSL
80if (!array_key_exists("username", $attributes)){ return "Missing compulsory field [username]"; }
81if (!array_key_exists("firstname", $attributes)){ return "Missing compulsory field [firstname]"; }
82if (!array_key_exists("surname", $attributes)){ return "Missing compulsory field [surname]"; }
83 if (!array_key_exists("email", $attributes)){ return "Missing compulsory field [email]"; }
84if (!array_key_exists("container", $attributes)){ return "Missing compulsory field [container]"; }
85 if (!is_array($attributes["container"])){ return "Container attribute must be an array."; }
87if (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/scripts/
H A Dcompatibility.js4 * 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/exe/
H A Dmediamanager.php5 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/plugins/authpdo/
H A Dauth.php32 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/inc/HTTP/
H A DHTTPClient.php22 //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/vendor/splitbrain/slika/src/
H A DGdAdapter.php33 if (is_resource($this->image)) {
44 if ($this->extension !== 'jpeg') {
50 if (function_exists('exif_read_data')) {
53 if (!empty($exif['Orientation'])) {
60 if (preg_match('@\x12\x01\x03\x00\x01\x00\x00\x00(.)\x00\x00\x00@', $data, $matches)) {
63 … } else if (preg_match('@\x01\x12\x00\x03\x00\x00\x00\x01\x00(.)\x00\x00@', $data, $matches)) {
79 if ($orientation < 0 || $orientation > 8) {
83 if ($orientation <= 1) {
92 if (in_array($orientation, [3, 4])) {
95 if (in_array($orientation, [5, 6])) {
[all …]
/dokuwiki/lib/plugins/config/core/
H A DWriter.php37 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');
42if (!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/inc/Search/
H A DIndexer.php37 if (!$this->lock())
42 if ($pid === false) {
50 if ($words === false) {
55 if (!empty($words)) {
63 if (!$this->saveIndex('i', $wlen, $index)) {
72 if ($pageword_idx !== '') {
77 if ($word != '') {
93 if (!$this->saveIndexKey('pageword', '', $pid, $pageword_idx)) {
121 if (isset($words[$l])) {
136 if ($wid === false) {
[all …]
/dokuwiki/lib/plugins/authldap/
H A Dauth.php37 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')) {
68if (!@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 DInstaller.php26 /** @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 …]

12345678910>>...45