/dokuwiki/lib/plugins/authpdo/conf/ |
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...] |
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...] |
/dokuwiki/inc/ |
H A D | auth.php | 51 if ($INPUT->server->str('REMOTE_USER') === '') { 52 $INPUT->server->remove('REMOTE_USER'); 58 foreach ($plugin_controller->getList('auth') as $plugin) { 60 $auth = $plugin_controller->load('auth', $plugin); 66 msg($lang['authtempfail'], -1); 70 if ($auth->success == false) { 74 msg($lang['authtempfail'], -1); 79 $INPUT->se 207 auth_login($user, $pass, $sticky = false, $silent = false) global() argument 1246 auth_setCookie($user, $pass, $sticky) global() argument [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 | 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 | 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 | 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...] |
/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/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/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/vendor/splitbrain/php-cli/ |
H A D | README.md | 1 # PHP-CLI 3 PHP-CLI is a simple library that helps with creating nice looking command line scripts. 7 - **option parsing** 8 - **help page generation** 9 - **automatic width adjustment** 10 - **colored output** 11 - **optional PSR3 compatibility** 13 It is lightweight and has **no 3rd party dependencies**. Note: this is for non-interactive scripts only. It has no readline or similar support. 19 ```php composer.phar require splitbrain/php-cli``` 37 $options->setHel [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/lib/plugins/authplain/ |
H A D | auth.php | 13 * @author Jan Schumann <js@schumann-it.com> 40 $this->success = false; 43 $this->cando['addUser'] = true; 44 $this->cando['delUser'] = true; 45 $this->cando['modLogin'] = true; 46 $this->cando['modPass'] = true; 47 $this->cando['modName'] = true; 48 $this->cando['modMail'] = true; 49 $this->cando['modGroups'] = true; 51 $this->cand 67 checkPass($user, $pass) global() argument 108 createUserLine($user, $pass, $name, $mail, $grps) global() argument [all...] |
/dokuwiki/lib/plugins/usermanager/ |
H A D | admin.php | 48 $this->setupLocale(); 51 $this->disabled = $this->lang['noauth']; 52 } elseif (!$auth->canDo('getUsers')) { 53 $this->disabled = $this->lang['nosupport']; 56 $this->auth = &$auth; 61 $this->import_failures = $_SESSION['import_failures']; 74 if (!is_null($this->auth)) 77 return $this->getLan [all...] |
/dokuwiki/vendor/splitbrain/php-cli/src/ |
H A D | TableFormatter.php | 32 $width = $this->getTerminalWidth(); 34 $this->max = $width - 1; 38 $this->colors = $colors; 40 $this->colors = new Colors(); 51 return $this->border; 62 $this->border = $border; 74 return $this->max; 84 $this->max = $max; 122 $border = $this->strle [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/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/ |
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/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/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/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/vendor/simplepie/simplepie/src/Cache/ |
H A D | MySQL.php | 6 * A PHP-Based RSS and Atom Feed Framework. 9 * Copyright (c) 2004-2022, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors 37 * @copyright 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 92 $this->options = [ 94 'pass' => null, 104 $this->options = array_replace_recursive($this->options, \SimplePie\Cache::parse_URL($location)); 107 $this->options['dbname'] = substr($this->option [all...] |
/dokuwiki/vendor/composer/ |
H A D | InstalledVersions.php | 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 23 * To require its presence, you can require `composer-runtime-api ^2.0` 31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 50 * @psalm-return list<string> 71 * @psalm-return list<string> 117 * @param string|null $constraint A version constraint to check for, if you pass on [all...] |