General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
Admin
▼
:
Document Index
»
Page:
CheckConfigInstall
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
WebHome
»
XWiki and MySQL Configuration Check
»
XWiki Configuration Check Install
Wiki source code of
XWiki Configuration Check Install
Last modified by
Administrator
on 2010/09/24 19:35
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: #if(!$xwiki.hasAdminRights()) 2: You are running this script as a non admin. It will have no effect. Login as admin. 3: #else 4: This script automatically set the owner of the pages of the check Configuration Tool. This will allow the priviledged scripts included in them to work. 5: 6: #end 7: 8: #if($request.confirm=="1") 9: Assigning programming rights to the following pages: 10: #else 11: [Confirm assigning programming rights to the following pages:>$doc.fullName?confirm=1] 12: #end 13: 14: #foreach($item in ["Admin.CheckConfig", "Admin.CheckConfigInstall", "Admin.CheckDBEncoding", "Admin.CheckIndexes", "Admin.CheckRights"]) 15: * $item #if($request.confirm=="1") $xwiki.getDocument($item).save() #end 16: 17: #end 18: 19: #if($request.confirm=="1") 20: [Access the configuration check pages>CheckConfig]. 21: #else 22: [Return to the configuration check pages>CheckConfig]. 23: #end