devel:environment
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:environment [2011-11-06 20:47] – added DOKU_PLUGIN HåkanS | devel:environment [2023-11-05 14:50] (current) – Klap-in | ||
---|---|---|---|
Line 8: | Line 8: | ||
Holds the current action, see [[Action Modes]]. ([[xref> | Holds the current action, see [[Action Modes]]. ([[xref> | ||
+ | |||
+ | :!: '' | ||
+ | |||
+ | :!: If you are handling an [[devel: | ||
==== $auth ==== | ==== $auth ==== | ||
- | The globally available '' | + | The globally available '' |
==== $conf ==== | ==== $conf ==== | ||
Line 19: | Line 23: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
- | * '' | + | * '' |
Normally you don't need to access this array directly. Both, Plugins and Templates have their own methods to accessing their respective configuration settings. | Normally you don't need to access this array directly. Both, Plugins and Templates have their own methods to accessing their respective configuration settings. | ||
Line 65: | Line 69: | ||
* '' | * '' | ||
+ | On [[infoarray|$INFO array]] is an example array dumped. | ||
==== $lang ==== | ==== $lang ==== | ||
Line 71: | 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 87: | 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 94: | Line 102: | ||
* grps - array of groups the user is part of | * grps - array of groups the user is part of | ||
- | ([[xref> | + | If logged out, or not logged in, this global is set to null. |
+ | ([[xref> | ||
+ | |||
+ | The array is filled in [[xref> | ||
==== $JSINFO ==== | ==== $JSINFO ==== | ||
This array contained information that is passed to the JavaScript as global variable. | This array contained information that is passed to the JavaScript as global variable. | ||
- | see [[devel: | + | Read more: |
+ | * Javascript devel docs: [[devel: | ||
+ | * [[xref> | ||
===== Constants ===== | ===== Constants ===== | ||
Line 177: | Line 189: | ||
=== DOKU_URL === | === DOKU_URL === | ||
+ | |||
The absolute URL to the DokuWiki install. ([[xref> | The absolute URL to the DokuWiki install. ([[xref> | ||
Line 198: | Line 211: | ||
=== DOKU_TPL === | === DOKU_TPL === | ||
- | The URL base path to the current used template. ([[xref> | + | ([[deprecated]]) |
/ | / | ||
Line 205: | Line 218: | ||
http:// | http:// | ||
+ | |||
+ | Note: this define is [[deprecated]] and should be replaced by call to [[xref> | ||
=== DOKU_TPLINC === | === DOKU_TPLINC === | ||
- | The server side include path of the current used template. ([[xref> | + | ([[deprecated]]) |
/ | / | ||
| | ||
+ | |||
+ | Note: this define is [[deprecated]] and should be replaced by call to [[xref> | ||
=== DOKU_PLUGIN === | === DOKU_PLUGIN === | ||
Line 219: | Line 236: | ||
/ | / | ||
- | | + | ===== Request Variables ===== |
+ | |||
+ | Since 2012-09-10 “Adora Belle”, request variables are accessible through the [[xref> | ||
devel/environment.1320608832.txt.gz · Last modified: 2011-11-06 20:47 by HåkanS