我目前正在我的公司安装 Ponydocs。我已经完成了安装的第 4 步,但在第 5 步尝试访问该站点时出现此错误。
解析错误:语法错误,在线出现意外
$ponyDocsProductsList
(T_VARIABLE
)C:\wamp\www\LocalSettings.php
179
这是它正在谈论的代码
################# PONYDOCS START #################
#Ponydocs Logo
$wgLogo = "/extensions/PonyDocs/images/pony.png";
#Implicit group for all visitors, remove access beyond reading
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['upload'] = false;
$wgGroupPermissions['*']['reupload'] = false;
$wgGroupPermissions['*']['reupload-shared'] = false;
$wgGroupPermissions['*']['writeapi'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['*']['read'] = true;
#User is logged-in. Ensure that they still can't edit.
$wgGroupPermissions['user']['read'] = true;
$wgGroupPermissions['user']['createtalk'] = false;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['user']['reupload'] = false;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['user']['minoredit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['writeapi'] = false;
$wgGroupPermissions['user']['move-subpages'] = false;
$wgGroupPermissions['user']['move-rootuserpages'] = false;
$wgGroupPermissions['user']['purge'] = false;
$wgGroupPermissions['user']['sendemail'] = false;
$wgGroupPermissions['user']['writeapi'] = false;
#Our "in charge" group.
$wgGroupPermissions['bureaucrat']['userrights'] = true;
#Custom permission to branch ALL topics for a version.
$wgGroupPermissions['bureaucrat']['branchall'] = true;
#Implicit group for accounts that pass $wgAutoConfirmAge
$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
#Implicit group for accounts with confirmed email addresses This has
#little use when email address confirmation is off
$wgGroupPermissions['emailconfirmed']['emailconfirmed'] = true;
#Users with bot privilege can have their edits hidden from various log pages by default
$wgGroupPermissions['bot']['bot'] = true;
$wgGroupPermissions['bot']['autoconfirmed'] = true;
$wgGroupPermissions['bot']['nominornewtalk'] = true;
$wgGroupPermissions['bot']['autopatrol'] = true;
$wgArticlePath = '/$1';
#Ponydocs environment configuration. update to your specific install
define('PONYDOCS_PRODUCT_LOGO_URL', 'http://' . $_SERVER['interanetsrvr'] . '/extensions/PonyDocs/images/pony.png');
define('PONYDOCS_PDF_COPYRIGHT_MESSAGE', 'Copyright Splunk, Inc. All Rights Reserved');
define('PONYDOCS_ENABLE_BRANCHINHERIT_EMAIL', true)
#NOTE: this *must* match what is in Documentation:Products.This will be fixed in later versions
$ponyDocsProductsList = array("Foo");
define('PONYDOCS_DEFAULT_PRODUCT', "Foo");
include_once($IP . "/extensions/PonyDocs/PonyDocsExtension.php");
################# PONYDOCS END #################