Home
last modified time | relevance | path

Searched +full:- +full:- +full:global (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/dokuwiki/_test/tests/Remote/
H A DApiTest.php25 global $plugin_controller;
26 global $conf;
27 global $USERINFO;
28 global $auth;
33 $pluginManager = $this->createMock('dokuwiki\Extension\PluginController');
34 $pluginManager->method('getList')->willReturn(array('testplugin', 'testplugin2'));
35 $pluginManager->method('load')->willReturnCallback(
50 $this->userinfo = $USERINFO;
51 $this->remote = new Api();
58 global $USERINFO;
[all …]
H A DApiCoreAclCheckTest.php21 global $auth;
28 global $config_cascade;
29 global $conf;
30 global $USERINFO;
31 global $AUTH_ACL;
37 $this->reloadUsers();
39 $this->oldAuthAcl = $AUTH_ACL;
40 $this->userinfo = $USERINFO;
46 $this->remote = new Api();
51 global $USERINFO;
[all …]
/dokuwiki/_test/tests/inc/
H A Dauth_admincheck.test.php14 global $auth;
15 $this->oldauth = $auth;
20 global $auth;
26 global $auth;
32 global $USERINFO;
36 global $auth;
42 global $USERINFO;
46 global $auth;
52 global $auth;
53 global $AUTH_ACL;
[all …]
H A Dpageutils_findnearest.test.php11 global $AUTH_ACL;
12 global $auth;
13 global $conf;
17 $this->oldAuthAcl = $AUTH_ACL;
29 global $AUTH_ACL;
30 $AUTH_ACL = $this->oldAuthAcl;
34 global $ID;
38 $this->assertEquals(false, $sidebar);
42 global $ID;
44 saveWikiText('sidebar', 'topsidebar-test', '');
[all …]
H A Dcommon_wl.test.php6 global $conf;
11 $this->assertEquals(DOKU_BASE . DOKU_SCRIPT . '?id=start' , wl());
15 global $conf;
20 $this->assertEquals(DOKU_BASE . 'start' , wl());
24 global $conf;
29 $this->assertEquals(DOKU_BASE . DOKU_SCRIPT . '/start' , wl());
33 global $conf;
38 $this->assertEquals($expect, wl('some'));
42 global $conf;
47 $this->assertEquals($expect, wl('0'));
[all …]
H A DPageUtilsIsHiddenPage.test.php6 global $conf;
7 global $ACT;
13 $this->prepare('');
15 $this->assertFalse(isHiddenPage('test'));
19 $this->prepare('^:test$', 'admin');
21 $this->assertFalse(isHiddenPage('test'));
25 $this->prepare();
27 $this->assertTrue(isHiddenPage('test'));
31 $this->prepare();
33 $this->assertFalse(isHiddenPage('another'));
[all …]
H A Dtemplate_include_page.test.php6 global $ID,$ACT;
12 $this->assertEquals('foo:bar', tpl_pagetitle($id, true));
16 global $ID,$ACT;
22 $this->assertEquals('foo:bar', tpl_pagetitle(null, true));
26 global $ID,$ACT;
31 $this->assertEquals('Admin', tpl_pagetitle(null, true));
35 global $ID,$ACT,$INPUT,$conf,$USERINFO;
38 $this->markTestSkipped('Revert plugin not found, unable to test admin plugin titles');
45 $INPUT->set('page','revert');
47 $INPUT->server->set('REMOTE_USER', 'testuser'); // this user is admin
[all …]
H A Dauth_mediaaclpath.test.php13 global $auth;
25 'page-like id' => ['wiki:secret.png', 'wiki:*'],
34 $this->assertSame($expected, mediaAclPath($id));
38 * A page-intended exact-ID rule (e.g. wiki:secret.png as a page) must NOT
44 global $conf;
45 global $AUTH_ACL;
50 'wiki:secret.png @ALL 0', // page-intended deny on this exact ID
53 // raw-id check (the old buggy pattern) hits the deny rule
54 $this->assertEquals(AUTH_NONE, auth_aclcheck('wiki:secret.png', '', []));
57 $this->assertEquals(AUTH_UPLOAD, auth_aclcheck(mediaAclPath('wiki:secret.png'), '', []));
[all …]
H A Dtemplate_tpl_get_action.php7 global $ID;
13 global $ACT;
14 global $INFO;
15 global $REV;
35 $this->assertEquals($expect, tpl_get_action('edit'));
39 global $ACT;
40 global $INFO;
41 global $REV;
61 $this->assertEquals($expect, tpl_get_action('edit'));
65 global $ACT;
[all …]
H A Dparserutils_get_renderer.test.php9 global $conf;
14 $this->assertInstanceOf('Doku_Renderer_xhtml', p_get_renderer('xhtml'));
21 global $conf;
22 global $plugin_controller;
26 $this->plugin_controller = $plugin_controller;
29 $this->assertInstanceOf('renderer_plugin_test', p_get_renderer('xhtml'));
32 $plugin_controller = $this->plugin_controller;
37 global $conf;
42 $this->assertInstanceOf('Doku_Renderer_xhtml', p_get_renderer('xhtml'));
49 global $conf;
[all …]
H A Dauth_aclcheck_caseinsensitive.test.php11 global $auth;
12 global $AUTH_ACL;
14 $this->oldAuth = $auth;
15 $this->oldAuthAcl = $AUTH_ACL;
21 global $conf;
22 global $AUTH_ACL;
23 global $auth;
25 $auth = $this->oldAuth;
26 $AUTH_ACL = $this->oldAuthAcl;
30 global $conf;
[all …]
H A Dcommon_ml.test.php8 global $conf;
13 $this->assertEquals(DOKU_BASE . $this->script . '?media=' , ml());
17 global $conf;
23 $expect = DOKU_BASE . $this->script . '?a=b&c=d&q=%26%C3%A4&media=some:img.jpg';
24 $this->assertEquals($expect, ml('some:img.jpg', $args));
28 global $conf;
34 $expect = DOKU_BASE . $this->script . '?a=b&c=d&media=some:img.png';
35 $this->assertEquals($expect, ml('some:img.png', $args));
39 global $conf;
45 $expect = DOKU_BASE . $this->script . '?a=b&c=d&media=some:img.gif';
[all …]
/dokuwiki/inc/Action/
H A DSave.php20 global $INFO;
33 global $ID;
34 global $DATE;
35 global $PRE;
36 global $TEXT;
37 global $SUF;
38 global $SUM;
39 global $lang;
40 global $INFO;
41 global $INPUT;
[all …]
H A DLocked.php25 $this->showBanner();
26 (new Editor())->show();
38 global $ID;
39 global $conf;
40 global $lang;
41 global $INFO;
45 $min = round(($conf['locktime'] - (time() - $locktime)) / 60);
H A DEdit.php21 global $INFO;
35 global $INFO;
46 global $ID;
47 global $INFO;
49 global $TEXT;
50 global $RANGE;
51 global $PRE;
52 global $SUF;
53 global $REV;
54 global $SUM;
[all …]
/dokuwiki/lib/plugins/usermanager/_test/
H A DRemoteApiTest.php24 $this->remote = new Api();
31 global $conf;
41 global $auth;
57 $this->assertTrue(
58 $this->remote->call('plugin.usermanager.createUser', $params)
60 $this->assertArrayHasKey('user1', $auth->users);
63 $this->assertFalse(
64 $this->remote->call('plugin.usermanager.createUser', $params)
70 global $auth;
87 $this->expectException(AccessDeniedException::class);
[all …]
/dokuwiki/inc/Ui/
H A DEditor.php27 global $INPUT;
28 global $ID;
29 global $REV;
30 global $DATE;
31 global $PRE;
32 global $SUF;
33 global $INFO;
34 global $SUM;
35 global $lang;
36 global $conf;
[all …]
H A DUserProfile.php26 global $auth;
27 global $INFO;
28 global $INPUT;
32 'name' => $INPUT->post->str('fullname', $INFO['userinfo']['name'], true),
33 'mail' => $INPUT->post->str('email', $INFO['userinfo']['mail'], true),
40 echo $this->updateProfileForm($userinfo)->toHTML('UpdateProfile');
41 echo $this->tokenForm($userinfo['user'])->toHTML();
42 if ($auth->canDo('delUser') && actionOK('profile_delete')) {
43 echo $this->deleteProfileForm()->toHTML('ProfileDelete');
57 global $lang;
[all …]
/dokuwiki/_test/tests/test/
H A Dreset.test.php11 global $conf;
14 global $EVENT_HANDLER;
16 $EVENT_HANDLER->register_hook('DOKUWIKI_STARTED', 'AFTER', null,
18 $self->triggered = true;
22 $request->execute();
23 $this->assertTrue($this->triggered);
30 global $conf;
31 $this->assertFalse(isset($conf['foo']), 'conf setting');
34 $request->execute();
36 $this->assertFalse($this->triggered, 'trigger');
/dokuwiki/inc/Menu/Item/
H A DRevert.php15 global $REV;
16 global $INFO;
17 global $INPUT;
20 if (!$REV || !$INFO['writable'] || $INPUT->server->str('REMOTE_USER') === '') {
23 $this->params['rev'] = $REV;
24 $this->params['sectok'] = getSecurityToken();
25 $this->svg = DOKU_INC . 'lib/images/menu/06-revert_replay.svg';
/dokuwiki/_test/tests/Search/Index/
H A DLockTest.php23 global $conf;
24 $this->assertDirectoryExists($conf['lockdir'] . '/test_lock.index');
29 $this->assertDirectoryDoesNotExist($conf['lockdir'] . '/test_lock.index');
34 global $conf;
39 $this->assertDirectoryExists($dir);
43 $this->assertDirectoryExists($dir);
47 $this->assertDirectoryDoesNotExist($dir);
54 $this->assertTrue(true);
59 global $conf;
70 $this->expectException(IndexLockException::class);
[all …]
/dokuwiki/_test/tests/
H A DDraftTest.php15 * Stage the edit-session POST fields the way the editor would send them.
24 global $INPUT;
25 $INPUT->post->set('wikitext', $wikitext);
26 $INPUT->post->set('prefix', $prefix);
27 $INPUT->post->set('suffix', $suffix);
28 $INPUT->post->set('date', $date);
32 * A whole-page edit is saved and read back unchanged.
36 global $conf;
39 $this->setEditPost('Hello world');
42 $this->assertTrue($draft->saveDraft());
[all …]
/dokuwiki/inc/
H A Dpluginutils.php16 // note that only [a-z0-9]+ is officially supported,
18 if (!defined('DOKU_PLUGIN_NAME_REGEX')) define('DOKU_PLUGIN_NAME_REGEX', '[a-zA-Z0-9\x7f-\xff]+');
34 global $plugin_controller;
35 $plugins = $plugin_controller->getList($type, $all);
54 global $plugin_controller;
55 return $plugin_controller->load($type, $name, $new, $disabled);
67 global $plugin_controller;
68 return !$plugin_controller->isEnabled($plugin);
80 global $plugin_controller;
81 return $plugin_controller->enable($plugin);
[all …]
H A Dauth.php41 global $conf;
43 global $auth;
45 global $INPUT;
46 global $AUTH_ACL;
47 global $lang;
49 global $plugin_controller;
53 if ($INPUT->server->str('REMOTE_USER') === '') {
54 $INPUT->server->remove('REMOTE_USER');
60 foreach ($plugin_controller->getList('auth') as $plugin) {
62 $auth = $plugin_controller->load('auth', $plugin);
[all …]
H A DAjax.php29 $this->$callfn();
32 if ($evt->advise_before()) {
35 $evt->advise_after();
48 global $lang;
49 global $INPUT;
53 $query = $INPUT->post->str('q');
54 if (empty($query)) $query = $INPUT->get->str('q');
58 $data = (new MetadataSearch())->pageLookup($query, true, useHeading('navigation'));
95 global $INPUT;
97 $query = cleanID($INPUT->post->str('q'));
[all …]

12345678910>>...16