/dokuwiki/_test/tests/Remote/ |
H A D | ApiTest.php | 25 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 D | ApiCoreAclCheckTest.php | 20 global $auth; 27 global $config_cascade; 28 global $conf; 29 global $USERINFO; 30 global $AUTH_ACL; 36 $this->reloadUsers(); 38 $this->oldAuthAcl = $AUTH_ACL; 39 $this->userinfo = $USERINFO; 45 $this->remote = new Api(); 50 global $USERINFO; [all …]
|
/dokuwiki/_test/tests/inc/ |
H A D | auth_admincheck.test.php | 14 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 D | pageutils_findnearest.test.php | 11 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 D | common_wl.test.php | 6 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 D | PageUtilsIsHiddenPage.test.php | 6 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 D | template_include_page.test.php | 6 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 D | template_tpl_get_action.php | 7 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 D | parserutils_get_renderer.test.php | 9 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 D | auth_aclcheck_caseinsensitive.test.php | 11 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 D | common_ml.test.php | 8 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 …]
|
H A D | common_obfuscate.test.php | 6 global $conf; 8 $this->assertEquals('jon-doe@example.com', obfuscate('jon-doe@example.com')); 12 global $conf; 14 …$this->assertEquals('jon-doe@examp&#… 15 obfuscate('jon-doe@example.com')); 19 global $conf; 21 …$this->assertEquals('user@example.&#… 26 global $conf; 28 … $this->assertEquals('jon [dash] doe [at] example [dot] com', obfuscate('jon-doe@example.com'));
|
H A D | auth_aclcheck.test.php | 11 global $AUTH_ACL; 12 global $auth; 13 $this->oldAuthAcl = $AUTH_ACL; 18 global $AUTH_ACL; 19 $AUTH_ACL = $this->oldAuthAcl; 24 global $conf; 25 global $AUTH_ACL; 35 $this->assertEquals(auth_aclcheck('page', '',array()), AUTH_NONE); 36 $this->assertEquals(auth_aclcheck('namespace:page','',array()), AUTH_NONE); 37 $this->assertEquals(auth_aclcheck('namespace:*', '',array()), AUTH_NONE); [all …]
|
/dokuwiki/inc/Action/ |
H A D | Save.php | 20 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 D | Locked.php | 25 $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 D | Edit.php | 21 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 …]
|
H A D | Subscribe.php | 15 * E-Mail subscription handling 32 global $conf; 40 $this->handleSubscribeData(); 44 msg($e->getMessage(), -1); 51 (new Ui\Subscribe())->show(); 63 global $lang; 64 global $INFO; 65 global $INPUT; 70 if ($INPUT->has("sub_$param")) { 71 $params[$param] = $INPUT->str("sub_$param"); [all …]
|
/dokuwiki/lib/plugins/usermanager/_test/ |
H A D | RemoteApiTest.php | 24 $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 D | Editor.php | 27 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 D | UserProfile.php | 26 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 D | reset.test.php | 11 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 D | Revert.php | 15 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/inc/ |
H A D | Ajax.php | 28 $this->$callfn(); 31 if ($evt->advise_before()) { 34 $evt->advise_after(); 47 global $lang; 48 global $INPUT; 52 $query = $INPUT->post->str('q'); 53 if (empty($query)) $query = $INPUT->get->str('q'); 95 global $INPUT; 97 $query = cleanID($INPUT->post->str('q')); 98 if (empty($query)) $query = cleanID($INPUT->get->str('q')); [all …]
|
H A D | pluginutils.php | 16 // 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 D | auth.php | 39 global $conf; 41 global $auth; 43 global $INPUT; 44 global $AUTH_ACL; 45 global $lang; 47 global $plugin_controller; 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); [all …]
|