Advertisement
NginUS

cfg

Nov 3rd, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.48 KB | None | 0 0
  1. <?php if (!defined('PmWiki')) exit();
  2. # Don't rewrite requests for any files, directories, or symbolic
  3. # links (shortcuts) that exist on the filesystem.
  4. #RewriteCond %{REQUEST_FILENAME} !-f
  5. #RewriteCond %{REQUEST_FILENAME} !-d
  6. #RewriteCond %{REQUEST_FILENAME} !-l
  7.  
  8. ## This is a sample config.php file. To use this file, copy it to
  9. ## local/config.php, then edit it for whatever customizations you want.
  10. ## Also, be sure to take a look at http://www.pmwiki.org/wiki/Cookbook
  11. ## for more details on the types of customizations that can be added
  12. ## to PmWiki.
  13.  
  14. ## $WikiTitle is the name that appears in the browser's title bar.
  15. $WikiTitle = 'Govt Exposed';
  16.  
  17. ## $ScriptUrl is your preferred URL for accessing wiki pages
  18. ## $PubDirUrl is the URL for the pub directory.
  19. $ScriptUrl = 'https://govt.exposed';
  20. $PubDirUrl = 'https://govt.exposed/pub';
  21.  
  22. ## If you want to use URLs of the form .../pmwiki.php/Group/PageName
  23. ## instead of .../pmwiki.php?p=Group.PageName, try setting
  24. ## $EnablePathInfo below. Note that this doesn't work in all environments,
  25. ## it depends on your webserver and PHP configuration. You might also
  26. ## want to check http://www.pmwiki.org/wiki/Cookbook/CleanUrls more
  27. ## details about this setting and other ways to create nicer-looking urls.
  28. $EnablePathInfo = 1;
  29.  
  30. ## $PageLogoUrl is the URL for a logo image -- you can change this
  31. ## to your own logo if you wish.
  32. $PageLogoUrl = "https://govt.exposed/pub/skins/skittish/images/balloon.jpg";
  33.  
  34. ## If you want to have a custom skin, then set $Skin to the name
  35. ## of the directory (in pub/skins/) that contains your skin files.
  36. ## See PmWiki.Skins and Cookbook.Skins.
  37. $Skin = 'skittish';
  38.  
  39. ## You'll probably want to set an administrative password that you
  40. ## can use to get into password-protected pages. Also, by default
  41. ## the "attr" passwords for the PmWiki and Main groups are locked, so
  42. ## an admin password is a good way to unlock those. See PmWiki.Passwords
  43. ## and PmWiki.PasswordsAdmin.
  44. $DefaultPasswords['admin'] = 'xxx';
  45.  
  46. ## Unicode (UTF-8) allows the display of all languages and all alphabets.
  47. ## Highly recommended for new wikis.
  48. include_once("scripts/xlpage-utf-8.php");
  49.  
  50. ## If you're running a publicly available site and allow anyone to
  51. ## edit without requiring a password, you probably want to put some
  52. ## blocklists in place to avoid wikispam. See PmWiki.Blocklist.
  53. # $EnableBlocklist = 1; # enable manual blocklists
  54. # $EnableBlocklist = 10; # enable automatic blocklists
  55.  
  56. ## PmWiki comes with graphical user interface buttons for editing;
  57. ## to enable these buttons, set $EnableGUIButtons to 1.
  58. $EnableGUIButtons = 1;
  59.  
  60. ## To enable markup syntax from the Creole common wiki markup language
  61. ## (http://www.wikicreole.org/), include it here:
  62. # include_once("scripts/creole.php");
  63.  
  64. ## Some sites may want leading spaces on markup lines to indicate
  65. ## "preformatted text blocks", set $EnableWSPre=1 if you want to do
  66. ## this. Setting it to a higher number increases the number of
  67. ## space characters required on a line to count as "preformatted text".
  68. $EnableWSPre = 1; # lines beginning with space are preformatted (default)
  69. $EnableWSPre = 4; # lines with 4 or more spaces are preformatted
  70. $EnableWSPre = 0; # disabled
  71.  
  72. ## If you want uploads enabled on your system, set $EnableUpload=1.
  73. ## You'll also need to set a default upload password, or else set
  74. ## passwords on individual groups and pages. For more information
  75. ## see PmWiki.UploadsAdmin.
  76. $EnableUpload = 1;
  77. # $UploadPermAdd = 0;
  78. $DefaultPasswords['edit'] = pmcrypt('xxx');
  79. $DefaultPasswords['upload'] = pmcrypt('xxx');
  80. $group = PageVar($pagename, '$Group');
  81. if($group=='edit') $EnableCreatePages = 1;
  82. $EnableUploadOverwrite = 0;
  83. $HandleAuth['upload'] = 'edit';
  84. $UploadPrefixFmt = '/$Group/$Name';
  85. $EnableUploadVersions=1;
  86. $UploadDirQuota = 50000000; # limit total uploads to 50000KB (50MB)
  87. $UploadMaxSize = 500000; # limit individual uploads to 500KB (0.5MB)
  88. $UploadExtSize['exe'] = 0; # disallow .exe files
  89. $UploadExtSize[''] = 0; # disallow files with no extension
  90. # enable only these file types for uploading
  91. $aSize=250000; // 250 KB file size limitation
  92. $UploadExtSize['jpg' ] = $aSize;
  93. $UploadExtSize['gif' ] = $aSize;
  94. $UploadExtSize['png' ] = $aSize;
  95. $EnableDirectDownload=0;
  96.  
  97. $TimeFmt='%Y %b %a %e %R'; # logical-scale full: (example: 2007 Jan Fri 26 00:29)
  98. putenv("TZ=EST5EDT");
  99.  
  100. $EnablePostAuthorRequired = 1;
  101.  
  102. ## Setting $EnableDiag turns on the ?action=diag and ?action=phpinfo
  103. ## actions, which often helps others to remotely troubleshoot
  104. ## various configuration and execution problems.
  105. # $EnableDiag = 1; # enable remote diagnostics
  106.  
  107. ## By default, PmWiki doesn't allow browsers to cache pages. Setting
  108. ## $EnableIMSCaching=1; will re-enable browser caches in a somewhat
  109. ## smart manner. Note that you may want to have caching disabled while
  110. ## adjusting configuration files or layout templates.
  111. # $EnableIMSCaching = 1; # allow browser caching
  112.  
  113. ## Set $SpaceWikiWords if you want WikiWords to automatically
  114. ## have spaces before each sequence of capital letters.
  115. # $SpaceWikiWords = 1; # turn on WikiWord spacing
  116.  
  117. ## Set $EnableWikiWords if you want to allow WikiWord links.
  118. ## For more options with WikiWords, see scripts/wikiwords.php .
  119. # $EnableWikiWords = 1; # enable WikiWord links
  120.  
  121. ## $DiffKeepDays specifies the minimum number of days to keep a page's
  122. ## revision history. The default is 3650 (approximately 10 years).
  123. # $DiffKeepDays=30; # keep page history at least 30 days
  124.  
  125. ## By default, viewers are prevented from seeing the existence
  126. ## of read-protected pages in search results and page listings,
  127. ## but this can be slow as PmWiki has to check the permissions
  128. ## of each page. Setting $EnablePageListProtect to zero will
  129. ## speed things up considerably, but it will also mean that
  130. ## viewers may learn of the existence of read-protected pages.
  131. ## (It does not enable them to access the contents of the pages.)
  132. $EnablePageListProtect = 0;
  133.  
  134. ## The refcount.php script enables ?action=refcount, which helps to
  135. ## find missing and orphaned pages. See PmWiki.RefCount.
  136. if ($action == 'refcount') include_once("scripts/refcount.php");
  137.  
  138. ## The feeds.php script enables ?action=rss, ?action=atom, ?action=rdf,
  139. ## and ?action=dc, for generation of syndication feeds in various formats.
  140. if ($action == 'rss') include_once("scripts/feeds.php"); # RSS 2.0
  141. # if ($action == 'atom') include_once("scripts/feeds.php"); # Atom 1.0
  142. # if ($action == 'dc') include_once("scripts/feeds.php"); # Dublin Core
  143. # if ($action == 'rdf') include_once("scripts/feeds.php"); # RSS 1.0
  144.  
  145. ## In the 2.2.0-beta series, {$var} page variables were absolute, but now
  146. ## relative page variables provide greater flexibility and are recommended.
  147. ## (If you're starting a new site, it's best to leave this setting alone.)
  148. # $EnableRelativePageVars = 1; # 1=relative; 0=absolute
  149.  
  150. ## By default, pages in the Category group are manually created.
  151. ## Uncomment the following line to have blank category pages
  152. ## automatically created whenever a link to a non-existent
  153. ## category page is saved. (The page is created only if
  154. ## the author has edit permissions to the Category group.)
  155. $AutoCreate['/^Category\\./'] = array('ctime' => $Now);
  156.  
  157. ## PmWiki allows a great deal of flexibility for creating custom markup.
  158. ## To add support for '*bold*' and '~italic~' markup (the single quotes
  159. ## are part of the markup), uncomment the following lines.
  160. ## (See PmWiki.CustomMarkup and the Cookbook for details and examples.)
  161. Markup("'~", "inline", "/'~(.*?)~'/", "<i>$1</i>"); # '~italic~'
  162. Markup("'*", "inline", "/'\\*(.*?)\\*'/", "<b>$1</b>"); # '*bold*'
  163.  
  164. ## If you want to have to approve links to external sites before they
  165. ## are turned into links, uncomment the line below. See PmWiki.UrlApprovals.
  166. ## Also, setting $UnapprovedLinkCountMax limits the number of unapproved
  167. ## links that are allowed in a page (useful to control wikispam).
  168. $UnapprovedLinkCountMax = 2;
  169. # include_once("scripts/urlapprove.php");
  170.  
  171. ## The following lines make additional editing buttons appear in the
  172. ## edit page for subheadings, lists, tables, etc.
  173. $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
  174. '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');
  175. $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
  176. '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');
  177. $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
  178. '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
  179. $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
  180. '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
  181. $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
  182. '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"');
  183. $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
  184. '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"');
  185. $GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
  186. '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
  187. $GUIButtons['table'] = array(600,
  188. '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '',
  189. '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement