Home
last modified time | relevance | path

Searched +full:check +full:- +full:pass -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang) (Results 1 – 25 of 50) sorted by relevance

12

/dokuwiki/lib/plugins/authpdo/_test/
H A Dmysql.test.php15 protected $pass = ''; variable in mysql_plugin_authpdo_test
20 $configuration = DOKU_UNITTEST . "{$this->driver}.conf.php";
26 $this->host = $conf['host'];
27 $this->user = $conf['user'];
28 $this->pass = $conf['pass'];
29 $this->port = $conf['port'];
39 $this->dropDatabase();
43 * Check if database credentials and extensions exist
46 if(!$this->host || !$this->user) {
47 $this->markTestSkipped("Skipped {$this->driver} tests. Missing configuration");
[all …]
/dokuwiki/_test/tests/inc/
H A Dpageutils_sectionid.test.php25 $check = array();
28 $newId = sectionID($title, $check);
29 …$this->assertNotContains($newId, $alreadyGeneratedIds, "id $newId has been generated twice. The 2n…
35 * The convention in the code is to pass $check=false when we're not interested in having
39 $check = false;
40 …$this->assertEquals("abc", sectionID("abc", $check), "Passing \$check=false shouldn't lead to an e…
41 …$this->assertEquals("abc", sectionID("abc", $check), "Passing \$check=false shouldn't try to dedup…
H A Dio_getSizeFile.test.php6 * dependency for tests needing zlib extension to pass
10 $this->markTestSkipped('skipping all zlib tests. Need zlib extension');
12 $this->assertTrue(true); // avoid being marked as risky for having no assertion
16 * dependency for tests needing zlib extension to pass
20 $this->markTestSkipped('skipping all bzip2 tests. Need bz2 extension');
22 $this->assertTrue(true); // avoid being marked as risky for having no assertion
26 …// since git converts line endings, we can't check in this test file but have to create it ourselv…
30 $this->assertEquals(11, io_getSizeFile($plain));
31 $this->assertEquals(0, io_getSizeFile(__DIR__.'/io_readfile/nope.txt'));
33 io_saveFile($plain_mb, "string with utf-8 chars åèö - doo-bee doo-bee dooh\012");
[all …]
H A Dio_readfile.test.php6 * dependency for tests needing zlib extension to pass
10 $this->markTestSkipped('skipping all zlib tests. Need zlib extension');
13 $this->assertTrue(true);
17 * dependency for tests needing zlib extension to pass
21 $this->markTestSkipped('skipping all bzip2 tests. Need bz2 extension');
24 $this->assertTrue(true);
28 …// since git converts line endings, we can't check in this test file but have to create it ourselv…
32 $this->assertEquals("The\012Test\012", io_readFile($plain));
33 $this->assertEquals("The\015\012Test\015\012", io_readFile($plain, false));
34 $this->assertEquals(false, io_readFile(__DIR__.'/io_readfile/nope.txt'));
[all …]
H A Dhttpclient_http.test.php6 * Tests are executed against an instance of go-httpbin
18 $data = $http->get($this->server . '/get?foo=bar');
19 if ($http->noconnection()) {
20 $this->markTestSkipped('connection timed out');
22 $this->assertFalse($data === false, $http->errorInfo());
24 $this->assertTrue(is_array($resp), 'JSON response');
25 $this->assertArrayHasKey('args', $resp);
26 $this->assertEquals(['foo' => ['bar']], $resp['args']);
35 $data = $http->dget($this->server . '/get', ['foo' => 'bar']);
36 if ($http->noconnection()) {
[all …]
H A Dcommon_pageinfo.test.php3 * Unit Test for inc/common.php - pageinfo()
14 'pass' => '179ad45c6ce2cb97cf1029e212046e81',
52 * check info keys and values for a non-existent page & admin user
58 $info = $this->_get_expected_pageinfo();
63 $this->assertEquals($info, pageinfo());
67 * check info keys and values for a existing page & admin user
79 $info = $this->_get_expected_pageinfo();
87 // set from revinfo, $pagelog->getRevisionInfo($info['lastmod'])
91 'sum' => 'created - external edit',
95 $this->assertEquals($info, pageinfo());
[all …]
/dokuwiki/lib/plugins/authpdo/conf/
H A Dmetadata.php12 $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-user'] = array('', '_caution' => 'danger');
19 $meta['list-users'] = array('', '_caution' => 'danger');
20 $meta['count-users'] = array('', '_caution' => 'danger');
21 $meta['update-user-info'] = array('', '_caution' => 'danger');
[all …]
H A Ddefault.php12 $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-user'] = '';
57 $conf['delete-user'] = '';
67 $conf['list-users'] = '';
77 $conf['count-users'] = '';
[all …]
/dokuwiki/inc/
H A Dauth.php52 if ($INPUT->server->str('REMOTE_USER') === '') {
53 $INPUT->server->remove('REMOTE_USER');
59 foreach ($plugin_controller->getList('auth') as $plugin) {
61 $auth = $plugin_controller->load('auth', $plugin);
67 msg($lang['authtempfail'], -1);
71 if ($auth->success == false) {
75 msg($lang['authtempfail'], -1);
80 $INPUT->set('http_credentials', false);
81 if (!$conf['rememberme']) $INPUT->set('r', false);
85 …$header = $INPUT->server->str('HTTP_AUTHORIZATION') ?: $INPUT->server->str('REDIRECT_HTTP_AUTHORIZ…
[all …]
H A Dfetch.functions.php18 * 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-Dispositi…
36 header("Content-Type: $mime");
42 if ($cache == -1) {
50 $expires = 0; // 1970-01-01
58 header('Cache-Control: public, proxy-revalidate, no-transform, max-age=' . $maxage);
62 header('Cache-Control: private, no-transform, max-age=' . $maxage);
67 header('Cache-Control: no-cache, no-transform');
81 header('Content-Disposition: attachment;' . rfc2231_encode(
[all …]
/dokuwiki/inc/Extension/
H A DAuthPlugin.php12 * @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->cando['modMail']);
[all …]
H A DSyntaxPlugin.php51 * '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->allowedModes, $PARSER_MODES[$mt]);
122 $idx = array_search(substr(get_class($this), 7), (array)$this->allowedModes, true);
124 unset($this->allowedModes[$idx]);
[all …]
/dokuwiki/lib/plugins/authpdo/_test/mysql/
H A Dmybb.php13 'select-user' => '
21 'check-pass' => '
27 'select-user-groups' => '
35 'select-groups' => '
39 'insert-user' => '
45 'delete-user' => '
49 'list-users' => '
62 'count-users' => '
72 'update-user-info' => '
77 'update-user-login' => '
[all …]
/dokuwiki/lib/plugins/authpdo/_test/pgsql/
H A Ddjango.php10 'select-user' => '
19 'select-user-groups' => '
25 'select-groups' => '
29 'insert-user' => '
34 'delete-user' => '
41 'list-users' => '
54 'count-users' => '
64 'update-user-info' => '
71 'update-user-login' => '
76 'update-user-pass' => '
[all …]
/dokuwiki/inc/Remote/
H A DApi.php26 * '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->coreMethods = $apiCore->getMethods();
72 return $this->coreMethods;
82 if ($this->pluginMethods) return $this->pluginMethods;
94 $methods = $plugin->getMethods();
98 $e->getMessage(),
[all …]
H A DApiCore.php36 'core.getAPIVersion' => (new ApiCall([$this, 'getAPIVersion'], 'info'))->setPublic(),
39 'core.getWikiTitle' => (new ApiCall([$this, 'getWikiTitle'], 'info'))->setPublic(),
42 'core.login' => (new ApiCall([$this, 'login'], 'user'))->setPublic(),
83 * When developing a client, you should check this version and make sure you can handle it.
107 * Returns a Unix timestamp (seconds since 1970-01-01 00:00:00 UTC).
132 * @param string $pass The password
135 public function login($user, $pass) argument
146 if ($auth->canDo('external')) {
147 $ok = $auth->trustExternal($user, $pass, false);
152 'password' => $pass,
[all …]
/dokuwiki/inc/Action/
H A DSitemap.php27 * @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 Dauth.php10 * @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->getConf('dsn'),
47 $this->getConf('user'),
48 conf_decodeString($this->getConf('pass')),
[all …]
/dokuwiki/.github/workflows/
H A Drelease-preparation.yml4 # When the pull request is merged, the release-build workflow will be triggered automatically
16 - stable
17 - hotfix
18 - rc
23 description: 'The version date YYYY-MM-DD, empty for today'
29 runs-on: ubuntu-latest
31 - name: Fail if branch is not master
37 - name: Checkout
40 fetch-depth: 0
42 - name: Set git identity
[all …]
/dokuwiki/vendor/splitbrain/php-cli/
H A DREADME.md1 # 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 …
19 ```php composer.phar require splitbrain/php-cli```
37 $options->setHelp('A very minimal example that does nothing but print a version');
[all …]
/dokuwiki/lib/plugins/authplain/
H A Dauth.php13 * @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->cando['getUsers'] = true;
[all …]
/dokuwiki/lib/plugins/usermanager/
H A Dadmin.php48 $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->getLang('menu') . ' ' . $this->disabled;
95 return $this->start;
103 return $this->pagesize;
[all …]
/dokuwiki/lib/plugins/authldap/
H A Dauth.php13 * @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) argument
62 if (empty($pass)) return false;
63 if (!$this->openLDAP()) return false;
66 if ($this->getConf('binddn') && $this->getConf('bindpw')) {
[all …]
/dokuwiki/lib/plugins/authad/
H A Dauth.php27 * $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->conf['additional'] = explode(',', $this->conf['additional']);
92 } else $this->conf['additional'] = [];
96 if ($this->conf['debug'])
97 msg("AD Auth: PHP LDAP extension not found.", -1);
[all …]
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php32 $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->strlen($this->border);
123 $fixed = (count($columns) - 1) * $border; // borders are used already
[all …]

12