/dokuwiki/conf/ |
H A D | dokuwiki.php | 22 $conf['license'] = 'cc-by-nc-sa'; //see conf/license.php 24 $conf['basedir'] = ''; //absolute dir from serveroot - blank for autodetection 25 $conf['baseurl'] = ''; //URL to server including protocol - blank for autodetect 26 $conf['cookiedir'] = ''; //path to use in cookies - blank for basedir 39 $conf['signature'] = ' --- //[[@MAIL@|@NAME@]] @DATE@//'; //signature see wiki page for details 42 // 'email' e-mai [all...] |
/dokuwiki/inc/Action/ |
H A D | Sitemap.php | 27 * @author Michael Hamann <michael@content-space.de> 41 $mime = 'application/x-gzip'; 43 $mime = 'application/xml; charset=utf-8'; 46 // Check if sitemap file exists, otherwise create it 53 header('Content-Type: ' . $mime); 54 header('Content-Disposition: attachment; filename=' . PhpString::basename($sitemap)); 59 //use x-sendfile header to pass the delivery to compatible webservers 66 throw new FatalException('Could not read the sitemap file - bad permissions?');
|
/dokuwiki/inc/Extension/ |
H A D | AuthPlugin.php | 12 * @author Jan Schumann <js@jschumann-it.com> 42 * able to operate. Set capabilities in $this->cando 48 * Set $this->success to false if checks fail 68 return array_keys($this->cando); 72 * Capability check. [ DO NOT OVERRIDE ] 74 * Checks the capabilities set in the $this->cando array and 82 * @param string $cap the capability to check 90 return ($this->cando['modPass'] || 91 $this->cando['modName'] || 92 $this->cand 197 trustExternal($user, $pass, $sticky = false) global() argument 233 checkPass($user, $pass) global() argument 279 createUser($user, $pass, $name, $mail, $grps = null) global() argument [all...] |
H A D | SyntaxPlugin.php | 51 * 'normal' - The plugin can be used inside paragraphs 52 * 'block' - Open paragraphs need to be closed before plugin output 53 * 'stack' - Special case. Plugin wraps other paragraphs. 67 * This function can only pass data to render() via its return value - render() 87 * The function should always check for the given output format and return false 114 if (!$this->allowedModesSetup) { 117 $allowedModeTypes = $this->getAllowedTypes(); 119 $this->allowedModes = array_merge($this->allowedMode [all...] |
/dokuwiki/inc/HTTP/ |
H A D | HTTPClient.php | 18 * @author Tobias Sarnowski <sarnowski@new-thoughts.org> 48 public $pass; 61 // what we use as boundary on multipart/form-data posts 62 protected $boundary = '---DokuWikiHTTPClient--4523452351'; 71 $this->agent = 'Mozilla/4.0 (compatible; DokuWiki HTTP Client; ' . PHP_OS . ')'; 72 if (extension_loaded('zlib')) $this->header 47 public $pass; global() variable in dokuwiki\\HTTP\\HTTPClient [all...] |
/dokuwiki/inc/ |
H A D | Mailer.class.php | 5 * attachments). All mails are assumed to be in UTF-8 encoding. 49 $this->partid = substr(md5(uniqid(random_int(0, mt_getrandmax()), true)), 0, 8) . '@' . $server; 50 $this->boundary = '__________' . md5(uniqid(random_int(0, mt_getrandmax()), true)); 57 $this->allowhtml = (bool)$conf['htmlmail']; 61 $this->setHeader('Return-Path', $conf['mailreturnpath']); 63 $this->setHeader('X-Mailer', 'DokuWiki'); 64 $this->setHeader('X-DokuWik [all...] |
H A D | auth.php | 53 foreach ($plugin_controller->getList('auth') as $plugin) { 55 $auth = $plugin_controller->load('auth', $plugin); 61 msg($lang['authtempfail'], -1); 65 if ($auth->success == false) { 69 msg($lang['authtempfail'], -1); 74 $INPUT->set('http_credentials', false); 75 if (!$conf['rememberme']) $INPUT->set('r', false); 79 $header = $INPUT->server->str('HTTP_AUTHORIZATION') ?: $INPUT->serve 207 auth_login($user, $pass, $sticky = false, $silent = false) global() argument 1246 auth_setCookie($user, $pass, $sticky) global() argument [all...] |
H A D | common.php | 34 return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8'); 62 * Please note: when you pass uninitialized variables, they will implicitly be created 94 return preg_replace('/[\x00-\x1F]+/s', '', $string); 101 * @link http://en.wikipedia.org/wiki/Cross-site_request_forgery 102 * @link http://christ1an.blogspot.com/2007/04/preventing-csrf-efficiently.html 111 $user = $INPUT->server->str('REMOTE_USER'); 114 // CSRF checks are only for logged in users - do not generate for anonymous 120 * Check th [all...] |
H A D | confutils.php | 45 return [$ext, 'application/octet-stream', true]; 158 if ($event->advise_before()) { 160 $jqmod = md5(implode('-', $versions)); 163 $src[] = sprintf('https://code.jquery.com/jquery-%s.min.js', $versions['JQ_VERSION']); 164 $src[] = sprintf('https://code.jquery.com/ui/%s/jquery-ui.min.js', $versions['JQUI_VERSION']); 171 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/%s/jquery-ui.min.js', 176 $event->advise_after(); 302 * @param array $params optional additional params to pass to the callback 305 * $combined - the already read & merged configuration values 306 * $new - arra [all...] |
H A D | fetch.functions.php | 18 * through x-sendfile 23 * @param int $cache remaining cache time in seconds (-1 for $conf['cache'], 0 for no-cache) 25 * @param string $orig original file to send - the file name will be used for the Content-Disposition 36 header("Content-Type: $mime"); 42 if ($cache == -1) { 50 $expires = 0; // 1970-01-01 58 header('Cache-Contro [all...] |
H A D | httputils.php | 29 $last_modified = substr(gmdate('r', $timestamp), 0, -5) . 'GMT'; 32 header("Last-Modified: $last_modified"); 35 $if_modified_since = $INPUT->server->filter('stripslashes')->str('HTTP_IF_MODIFIED_SINCE', false); 36 $if_none_match = $INPUT->server->filter('stripslashes')->str('HTTP_IF_NONE_MATCH', false); 42 // At least one of the headers is there - check the [all...] |
H A D | infoutils.php | 19 define('DOKU_MESSAGEURL', 'https://update.dokuwiki.org/check/'); 21 define('DOKU_MESSAGEURL', 'http://update.dokuwiki.org/check/'); 26 * Check for new messages from upstream 42 // check if new messages needs to be fetched 43 if ($lm < time() - (60 * 60 * 24) || $lm < @filemtime(DOKU_INC . DOKU_SCRIPT)) { 53 $http->timeout = 12; 54 $resp = $http->get(DOKU_MESSAGEURL . $updateVersion); 56 // basic sanity check that this is either an empty string response (ie "no messages") 60 Logger::debug("checkUpdateMessages(): unexpected HTTP response received", $http->error); 94 $commitInfo = shell_exec("git log - 149 function check(){ global() function [all...] |
H A D | template.php | 120 $router->getAction()->tplContent(); 123 msg(hsc($e->getMessage()), -1); 165 $toc = $plugin->getTOC(); 191 $class = $INPUT->str('page'); 203 if (!is_array($TOC)) $TOC = $plugin->getTOC(); //if TOC wasn't requested yet 205 $plugin->html(); 208 $admin->show(); 277 $styleIni = $styleUtil->cssStylein [all...] |
/dokuwiki/inc/Remote/ |
H A D | Api.php | 26 * 'public' => 1/0 - method bypass default group check (used by login) 53 return array_merge($this->getCoreMethods(), $this->getPluginMethods()); 60 * Here you can pass a non-default RemoteAPICore instance. (for mocking) 65 if (!$this->coreMethods) { 67 $this->coreMethods = (new LegacyApiCore())->getMethods(); 69 $this->coreMethod [all...] |
H A D | ApiCore.php | 35 'core.getAPIVersion' => (new ApiCall([$this, 'getAPIVersion'], 'info'))->setPublic(), 38 'core.getWikiTitle' => (new ApiCall([$this, 'getWikiTitle'], 'info'))->setPublic(), 41 'core.login' => (new ApiCall([$this, 'login'], 'user'))->setPublic(), 82 * When developing a client, you should check this version and make sure you can handle it. 106 * Returns a Unix timestamp (seconds since 1970-01-01 00:00:00 UTC). 131 * @param string $pass The password 134 public function login($user, $pass) 145 if ($auth->canDo('external')) { 146 $ok = $auth->trustExterna 1033 login($user, $pass) global() argument [all...] |
/dokuwiki/inc/Search/ |
H A D | Indexer.php | 37 if (!$this->lock()) 41 $pid = $this->getPIDNoLock($page); 43 $this->unlock(); 49 $words = $this->getPageWords($text); 51 $this->unlock(); 57 $index = $this->getIndex('i', $wlen); 60 $index[$wid] = $this->updateTuple($idx, $pid, $freq); 63 if (!$this->saveIndex('i', $wlen, $index)) { 64 $this->unlock(); 71 $pageword_idx = $this->getIndexKe [all...] |
/dokuwiki/inc/Utf8/ |
H A D | Unicode.php | 6 * Convert between UTF-8 and a list of Unicode Code Points 11 * Takes an UTF-8 string and returns an array of ints representing the 17 * string isn't a valid UTF-8 octet sequence and raises a PHP error at 26 * @link http://hsivonen.iki.fi/php-utf8/ 31 * @param string $str UTF-8 encoded string 32 * @param boolean $strict Check for invalid sequences? 33 * @return mixed array of unicode code points or false if UTF-8 invalid 50 // When mState is zero we expect either a US-ASCII character or a 51 // multi-octet sequence. 53 // US-ASCI [all...] |
/dokuwiki/inc/parser/ |
H A D | xhtml.php | 76 -1 79 // @deprecated 2018-04-14, backward compatibility 86 $data['secid'] = ++$this->lastsecid; 88 $this->sectionedits[] = $data; 101 if (count($this->sectionedits) == 0) { 104 $data = array_pop($this->sectionedits); 111 $data['range'] = $data['start'] . '-' . (is_null($end) ? '' : $end); 113 $this->doc .= '<!- [all...] |
/dokuwiki/ |
H A D | install.php | 3 /*><div style="width:60%; margin: auto; background-color: #fcc; 5 <h1 style="font-size: 120%">No PHP Support</h1> 23 // check for error reporting override or set error reporting to sane values 33 $LC = preg_replace('/[^a-z\-]+/', '', $_REQUEST['l']); 44 header('Content-Type: text/html; charset=utf-8'); 49 <meta charset="utf-8"/> 55 font: 84% Verdana, Helvetica, Arial, sans-serif; 67 font-siz [all...] |
/dokuwiki/lib/plugins/authad/adLDAP/ |
H A D | adLDAP.php | 12 * Copyright (c) 2006-2012 Scott Barnett, Richard Hyland 30 * @copyright (c) 2006-2012 Scott Barnett, Richard Hyland 31 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1 74 * The default port for LDAP non-SSL connections 143 * If you wish to use TLS you should ensure that $useSSL is set to false and vice-versa 184 if ($this->ldapConnection) { 185 return $this->ldapConnection; 196 return $this->ldapBind; 205 return $this->baseD [all...] |
/dokuwiki/lib/plugins/authad/ |
H A D | auth.php | 27 * $conf['plugin']['authad']['admin_password'] = 'pass'; 41 * @link http://www.nosq.com/blog/2005/08/ldap-activedirectory-and-dokuwiki/ 43 * @author Jan Schumann <js@schumann-it.com> 86 $this->loadConfig(); 89 if (isset($this->conf['additional'])) { 90 $this->conf['additional'] = str_replace(' ', '', $this->conf['additional']); 91 $this->con 154 checkPass($user, $pass) global() argument [all...] |
/dokuwiki/lib/plugins/authldap/ |
H A D | auth.php | 13 * @author Jan Schumann <js@schumann-it.com> 38 $this->debug("LDAP err: PHP LDAP extension not found.", -1, __LINE__, __FILE__); 39 $this->success = false; 44 $this->cando['modPass'] = $this->getConf('modPass'); 48 * Check user+password 55 * @param string $pass 59 public function checkPass($user, $pass) 62 if (empty($pass)) retur 56 checkPass($user, $pass) global() argument [all...] |
/dokuwiki/lib/plugins/authpdo/ |
H A D | auth.php | 10 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 33 $this->debugMsg('PDO extension for PHP not found.', -1, __LINE__); 34 $this->success = false; 38 if (!$this->getConf('dsn')) { 39 $this->debugMsg('No DSN specified', -1, __LINE__); 40 $this->success = false; 45 $this->pdo = new PDO( 46 $this->getCon 162 checkPass($user, $pass) global() argument [all...] |
/dokuwiki/lib/plugins/authpdo/conf/ |
H A D | default.php | 12 $conf['pass'] = ''; 20 $conf['select-user'] = ''; 23 * statement to check the password in SQL, optional when above returned clear or hash 28 $conf['check-pass'] = ''; 36 $conf['select-user-groups'] = ''; 43 $conf['select-groups'] = ''; 50 $conf['insert-use [all...] |
H A D | metadata.php | 12 $meta['pass'] = array('password', '_caution' => 'danger', '_code' => 'base64'); 13 $meta['select-user'] = array('', '_caution' => 'danger'); 14 $meta['check-pass'] = array('', '_caution' => 'danger'); 15 $meta['select-user-groups'] = array('', '_caution' => 'danger'); 16 $meta['select-groups'] = array('', '_caution' => 'danger'); 17 $meta['insert-user'] = array('', '_caution' => 'danger'); 18 $meta['delete-use [all...] |