Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
27058a05
Commit
27058a05
authored
11 years ago
by
Michael Hamann
Browse files
Options
Downloads
Patches
Plain Diff
Fix and add type declarations for the auth system
parent
e4207845
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/auth.php
+11
-11
11 additions, 11 deletions
inc/auth.php
with
11 additions
and
11 deletions
inc/auth.php
+
11
−
11
View file @
27058a05
...
@@ -40,7 +40,7 @@ function auth_setup() {
...
@@ -40,7 +40,7 @@ function auth_setup() {
global
$INPUT
;
global
$INPUT
;
global
$AUTH_ACL
;
global
$AUTH_ACL
;
global
$lang
;
global
$lang
;
global
$config_cascade
;
/* @var Doku_Plugin_Controller $plugin_controller */
global
$plugin_controller
;
global
$plugin_controller
;
$AUTH_ACL
=
array
();
$AUTH_ACL
=
array
();
...
@@ -207,7 +207,7 @@ function auth_login($user, $pass, $sticky = false, $silent = false) {
...
@@ -207,7 +207,7 @@ function auth_login($user, $pass, $sticky = false, $silent = false) {
global
$USERINFO
;
global
$USERINFO
;
global
$conf
;
global
$conf
;
global
$lang
;
global
$lang
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
$sticky
?
$sticky
=
true
:
$sticky
=
false
;
//sanity check
$sticky
?
$sticky
=
true
:
$sticky
=
false
;
//sanity check
...
@@ -361,7 +361,7 @@ function auth_cookiesalt($addsession = false) {
...
@@ -361,7 +361,7 @@ function auth_cookiesalt($addsession = false) {
function
auth_logoff
(
$keepbc
=
false
)
{
function
auth_logoff
(
$keepbc
=
false
)
{
global
$conf
;
global
$conf
;
global
$USERINFO
;
global
$USERINFO
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
// make sure the session is writable (it usually is)
// make sure the session is writable (it usually is)
...
@@ -407,7 +407,7 @@ function auth_logoff($keepbc = false) {
...
@@ -407,7 +407,7 @@ function auth_logoff($keepbc = false) {
function
auth_ismanager
(
$user
=
null
,
$groups
=
null
,
$adminonly
=
false
)
{
function
auth_ismanager
(
$user
=
null
,
$groups
=
null
,
$adminonly
=
false
)
{
global
$conf
;
global
$conf
;
global
$USERINFO
;
global
$USERINFO
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
if
(
!
$auth
)
return
false
;
if
(
!
$auth
)
return
false
;
...
@@ -460,7 +460,7 @@ function auth_isadmin($user = null, $groups = null) {
...
@@ -460,7 +460,7 @@ function auth_isadmin($user = null, $groups = null) {
* @return bool true for membership acknowledged
* @return bool true for membership acknowledged
*/
*/
function
auth_isMember
(
$memberlist
,
$user
,
array
$groups
)
{
function
auth_isMember
(
$memberlist
,
$user
,
array
$groups
)
{
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
if
(
!
$auth
)
return
false
;
if
(
!
$auth
)
return
false
;
...
@@ -526,7 +526,7 @@ function auth_quickaclcheck($id) {
...
@@ -526,7 +526,7 @@ function auth_quickaclcheck($id) {
function
auth_aclcheck
(
$id
,
$user
,
$groups
)
{
function
auth_aclcheck
(
$id
,
$user
,
$groups
)
{
global
$conf
;
global
$conf
;
global
$AUTH_ACL
;
global
$AUTH_ACL
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
// if no ACL is used always return upload rights
// if no ACL is used always return upload rights
...
@@ -725,7 +725,7 @@ function auth_pwgen($foruser = '') {
...
@@ -725,7 +725,7 @@ function auth_pwgen($foruser = '') {
*/
*/
function
auth_sendPassword
(
$user
,
$password
)
{
function
auth_sendPassword
(
$user
,
$password
)
{
global
$lang
;
global
$lang
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
if
(
!
$auth
)
return
false
;
if
(
!
$auth
)
return
false
;
...
@@ -759,7 +759,7 @@ function auth_sendPassword($user, $password) {
...
@@ -759,7 +759,7 @@ function auth_sendPassword($user, $password) {
function
register
()
{
function
register
()
{
global
$lang
;
global
$lang
;
global
$conf
;
global
$conf
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
global
$INPUT
;
global
$INPUT
;
...
@@ -828,7 +828,7 @@ function register() {
...
@@ -828,7 +828,7 @@ function register() {
function
updateprofile
()
{
function
updateprofile
()
{
global
$conf
;
global
$conf
;
global
$lang
;
global
$lang
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
/* @var Input $INPUT */
/* @var Input $INPUT */
global
$INPUT
;
global
$INPUT
;
...
@@ -918,7 +918,7 @@ function updateprofile() {
...
@@ -918,7 +918,7 @@ function updateprofile() {
function
act_resendpwd
()
{
function
act_resendpwd
()
{
global
$lang
;
global
$lang
;
global
$conf
;
global
$conf
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
/* @var Input $INPUT */
/* @var Input $INPUT */
global
$INPUT
;
global
$INPUT
;
...
@@ -1084,7 +1084,7 @@ function auth_verifyPassword($clear, $crypt) {
...
@@ -1084,7 +1084,7 @@ function auth_verifyPassword($clear, $crypt) {
*/
*/
function
auth_setCookie
(
$user
,
$pass
,
$sticky
)
{
function
auth_setCookie
(
$user
,
$pass
,
$sticky
)
{
global
$conf
;
global
$conf
;
/* @var
auth_basic
$auth */
/* @var
DokuWiki_Auth_Plugin
$auth */
global
$auth
;
global
$auth
;
global
$USERINFO
;
global
$USERINFO
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment