SF.net SVN: phpwiki:[10966] trunk

vargenau--- via phpwiki-checkins <[email protected]> Tue, 01 Feb 2022 08:54:55 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10966
          http://sourceforge.net/p/phpwiki/code/10966
Author:   vargenau
Date:     2022-02-01 08:54:54 +0000 (Tue, 01 Feb 2022)
Log Message:
-----------
Put MAX_PAGENAME_LENGTH in configurator.php, config/config-dist.ini and config/config-default.ini

Modified Paths:
--------------
    trunk/config/config-default.ini
    trunk/config/config-dist.ini
    trunk/configurator.php
    trunk/lib/stdlib.php

Modified: trunk/config/config-default.ini
===================================================================
--- trunk/config/config-default.ini	2022-02-01 08:45:44 UTC (rev 10965)
+++ trunk/config/config-default.ini	2022-02-01 08:54:54 UTC (rev 10966)
@@ -26,6 +26,7 @@
 ISREADONLY = false
 WIKI_NAME = PhpWiki
 ENCRYPTED_PASSWD = true
+MAX_PAGENAME_LENGTH = 100
 ENABLE_REVERSE_DNS = true
 ZIPDUMP_AUTH = false
 ENABLE_RAW_HTML = true

Modified: trunk/config/config-dist.ini
===================================================================
--- trunk/config/config-dist.ini	2022-02-01 08:45:44 UTC (rev 10965)
+++ trunk/config/config-dist.ini	2022-02-01 08:54:54 UTC (rev 10966)
@@ -233,6 +233,10 @@
 ; Default: true
 ;ENCRYPTED_PASSWD = false
 
+; Maximum length of page names.
+; Default: 100
+;MAX_PAGENAME_LENGTH = 100
+
 ; Visitor Hostname Lookup
 ;
 ; If set, reverse dns lookups will be performed to attempt to convert

Modified: trunk/configurator.php
===================================================================
--- trunk/configurator.php	2022-02-01 08:45:44 UTC (rev 10965)
+++ trunk/configurator.php	2022-02-01 08:54:54 UTC (rev 10966)
@@ -531,6 +531,9 @@
         array('true' => "true.  use crypt for all passwords",
             'false' => "false. use plaintest passwords (not recommended)"));
 
+$properties["MAX_PAGENAME_LENGTH"] =
+    new numeric_define_optional('MAX_PAGENAME_LENGTH');
+
 $properties["Reverse DNS"] =
     new boolean_define_optional
     ('ENABLE_REVERSE_DNS',

Modified: trunk/lib/stdlib.php
===================================================================
--- trunk/lib/stdlib.php	2022-02-01 08:45:44 UTC (rev 10965)
+++ trunk/lib/stdlib.php	2022-02-01 08:54:54 UTC (rev 10966)
@@ -99,10 +99,6 @@
 if (defined('_PHPWIKI_STDLIB_LOADED')) return;
 else define('_PHPWIKI_STDLIB_LOADED', true);
 
-if (!defined('MAX_PAGENAME_LENGTH')) {
-    define('MAX_PAGENAME_LENGTH', 100);
-}
-
 /**
  * Convert string to a valid XML identifier.
  *

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.