devel:environment
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:environment [2015-09-17 21:10] – [$ACT] can sometimes be an array LarsDW223 | devel:environment [2023-11-05 14:50] (current) – Klap-in | ||
---|---|---|---|
Line 9: | Line 9: | ||
Holds the current action, see [[Action Modes]]. ([[xref> | Holds the current action, see [[Action Modes]]. ([[xref> | ||
- | :!: $ACT can also be an array instead of a string depending on when it is used. So if you compare it using a string comparison function (e.g. strcmp(), strncmp()) then you better make sure that it is not an array using !is_array($ACT). Otherwise the result may be undefined. :!: | + | :!: '' |
+ | |||
+ | :!: If you are handling an [[devel: | ||
==== $auth ==== | ==== $auth ==== | ||
- | The globally available '' | + | The globally available '' |
==== $conf ==== | ==== $conf ==== | ||
Line 21: | Line 23: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
Line 74: | Line 76: | ||
==== $REV ==== | ==== $REV ==== | ||
- | Holds the revision timestamp of the currently rendered page. This is '' | + | Holds the revision timestamp of the currently rendered page. This is '' |
==== $_SERVER[' | ==== $_SERVER[' | ||
This variable is explicitly set by DokuWiki' | This variable is explicitly set by DokuWiki' | ||
+ | <code php> | ||
+ | $userid = $INPUT-> | ||
+ | </ | ||
==== $TEXT ==== | ==== $TEXT ==== | ||
Line 90: | Line 95: | ||
==== $USERINFO ==== | ==== $USERINFO ==== | ||
- | An globally available associative array which hold some information of a **authenticated** user. | + | An globally available associative array which hold some information of an **authenticated** user. |
* pass - hash of the users' password | * pass - hash of the users' password | ||
Line 96: | Line 101: | ||
* mail - the users' mail address | * mail - the users' mail address | ||
* grps - array of groups the user is part of | * grps - array of groups the user is part of | ||
+ | |||
+ | If logged out, or not logged in, this global is set to null. | ||
([[xref> | ([[xref> | ||
+ | |||
+ | The array is filled in [[xref> | ||
==== $JSINFO ==== | ==== $JSINFO ==== | ||
Line 202: | Line 211: | ||
=== DOKU_TPL === | === DOKU_TPL === | ||
- | The URL base path to the current used template. ([[xref> | + | ([[deprecated]]) |
/ | / | ||
Line 214: | Line 223: | ||
=== DOKU_TPLINC === | === DOKU_TPLINC === | ||
- | The server side include path of the current used template. ([[xref> | + | ([[deprecated]]) |
/ | / |
devel/environment.1442517039.txt.gz · Last modified: 2015-09-17 21:10 by LarsDW223