Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.mrao.cam.ac.uk/projects/OAS/pmwiki/pmwiki.php/PmWiki/BasicVariables?action=print
Дата изменения: Unknown Дата индексирования: Sat Mar 1 21:41:37 2014 Кодировка: Поисковые слова: п п п п п п п п п р п р п р п р п р п р п р п р п р п р п |
< Notify | Variables | Debug Variables >
$AsSpacedFunction
$AsSpacedFunction = 'MyAsSpaced';
$EnablePostAuthorRequired
.
$AuthorGroup
$AuthorGroup = 'Users';
$AuthId
SessionAuth($pagename);
if( isset($AuthId) ) { // this person has been authenticated
$AuthPw
SessionAuth($pagename);
if( isset($AuthPw) ) { // this person has entered a password
$BaseNamePatterns
{$BaseName}
PageVariable. The key to the hash is the pattern to be replaced and the value is the replacement string.
# If {$FullName} is "Group.Page-Draft" then {$BaseName} is "Group.Page" $BaseNamePatterns['/-Draft$/'] = ''; # If {$FullName} is "Comments-Group.Page" then {$BaseName} is "Group.Page" $BaseNamePatterns['/^Comments-/'] = '';
$CategoryGroup
$CookiePrefix
$CookiePrefix = 'pmwiki_';
# set cookie prefix to 'pmwiki_'
$CookiePrefix = substr($tmp = md5(__FILE__), 0, 5).'_';
$DefaultGroup
$DefaultName
$DefaultPage
$DefaultGroup
.$DefaultName
.
$DefaultGroup
, $DefaultName
and $DefaultPage
variables to work, they should be defined in the beginning of (farm)config.php, before any call to the function ResolvePageName(). This means, before any script from PmWiki and before any recipe that might be using this function.
$EnableLocalConfig
$EnableLocalConfig = 0; # disable PmWiki's local/config
$EnablePGCust
$EnablePGCust=0; # turn off per-page/group configs
$EnableRedirect
$EnableRedirect
to zero causes PmWiki to pause and issue a "Redirect to link" message instead. This is sometimes useful when debugging recipes to be able to see the results of actions before page redirections occur.
$EnableWikiWords
$EnableWSPre
$EnableWSPre = 1; # leading spaces are preformatted text
$EnableWSPre = 0; # leading spaces are normal lines of text
$EnableWSPre = 4; # 4+ spaces are preformatted text
$FTimeFmt
$FTimeFmt
is $TimeFmt
. (See Markup Expressions)
$GroupPattern
# limit groups to Site, SiteAdmin, PmWiki, and MyGroup
$GroupPattern = '(?:Site|SiteAdmin|PmWiki|MyGroup)';
#for case-sensitive group names, note the ?-i switch:
$GroupPattern = '(?-i:Site|SiteAdmin|PmWiki|MyGroup)';
$LinkWikiWords
(:linkwikiwords:)
and (:nolinkwikiwords:)
directives.
$LinkWikiWords = 1; # turn on WikiWord links
$LinkWikiWords = 0; # disable WikiWord links
$LogoutRedirectFmt
?action=logout
. Defaults to the current page.
$LogoutRedirectFmt = 'Site.Logout'; # ?action=logout target
$LogoutCookies
?action=logout
is invoked.
$NamePattern
$SiteGroup
$SiteAdminGroup
$SpaceWikiWords
$AsSpacedFunction
. Note that this value can also be affected by the (:spacewikiwords:)
and (:nospacewikiwords:)
directives.
$SpaceWikiWords = 1; # turn on WikiWord spacing
$SpaceWikiWords = 0; # turn off WikiWord spacing
$TimeFmt
'%B %d, %Y at %I:%M %p'
, which gives dates of the form "September 8, 2005 at 10:57 PM".
$TimeFmt = '%B %d, %Y'; # dates as "September 8, 2005"
$TimeFmt = '%Y-%m-%d'; # dates as "2005-09-08"
$VersionNum
$VersionNum
set to 2001040, as in "2002008".
The first digit is a 2, the next three digits are the major
release number, and the last three digits are the minor release
number. Beta releases use 900-999 for the minor release number.
Thus:
2.1.0 2001000 2.1.1 2001001 ... 2.1.27 2001027 2.2.0-beta1 2001901 2.2.0-beta2 2001902 ... 2.2.0-beta18 2001918 ... 2.2.0 2002000
$WikiWordPattern
< Notify | Variables | Debug Variables >
This page may have a more recent version on pmwiki.org: PmWiki:BasicVariables, and a talk page: PmWiki:BasicVariables-Talk.