From 5b1a656a46de489c892a68cc0f1fc8198fc7b979 Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 31 Oct 2005 15:48:31 +0000 Subject: [PATCH] not needed anymore git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4955 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- config/Tools.php | 644 ---------------------------------------------- config/Values.php | 541 -------------------------------------- 2 files changed, 1185 deletions(-) delete mode 100644 config/Tools.php delete mode 100644 config/Values.php diff --git a/config/Tools.php b/config/Tools.php deleted file mode 100644 index 88712ceae..000000000 --- a/config/Tools.php +++ /dev/null @@ -1,644 +0,0 @@ - - */ -class ConfigValue { - - /** - * Name of the Value. - * @var string - * @access protected - */ - var $name; - /** - * The current value. - * @var mixed - * @access protected - */ - var $currentValue; - /** - * The default value. - * @var mixed - * @access protected - */ - var $defaultValue; - /** - * Array with a short and full description. - * @var array - * @access protected - */ - var $description; - /** - * Validator object to validate a new value. - * @var object - * @access protected - */ - var $validator; - - /** - * Constructor - * - * Initializes instance variables from parameter array. - * @param array $params Array with properties of the config value. - */ - function ConfigValue($params){ - $this->name = $params['name']; - $this->section = $params['section']; - $this->defaultValue = $params['defaultValue']; - $this->description = $params['description']; - $this->validator = &$params['validator']; - $this->currentValue = $this->getStarting(); - } - - /** - * Static method to get the proper subclass. - * - * @param array $params Config Values properties. - * @return object A subclass of ConfigValue. - * @static - */ - function getConfig($params){ - if (isset($params['validator'])) { - $params['validator'] = &Validator::getValidator($params['validator']); - } - return new ConfigValue($params); - } - - /** - * Determines if the value is valid. - * - * If the parameter is a valid value for this config value returns - * true, false else. - * @param mixed $value Value to be checked for validity. - * @return boolean True if valid, false else. - */ - function valid($value){ - if ($this->validator->validate($value)) { - return true; - } - trigger_error("Value for \'" . $this->name . "\' is invalid.", - E_USER_WARNING); - return false; - } - - /** - * Determines the value currently being used. - * - * Just returns the default value. - * @return mixed The currently used value (the default). - */ - function getStarting(){ - return $this->defaultValue; - } - - /** - * Get the currently selected value. - * - * @return mixed The currently selected value. - */ - function getCurrent(){ - return $this->currentValue; - } - - /** - * Set the current value to this. - * - * Checks to see if the parameter is a valid value, if so it - * sets the parameter to currentValue. - * @param mixed $value The value to set. - */ - function setCurrent($value){ - if ($this->valid($value)) { - $this->currentValue = $value; - } - } - - /** - * Get the Name of the Value - * @return mixed Name of the value. - */ - function getName(){ - return $this->name; - } - - /** - * Get the default value of the Value - * @return mixed Default value of the value. - */ - function getDefaultValue(){ - return $this->defaultValue; - } - - /** - * Get the Short Description of the Value - * @return mixed Short Description of the value. - */ - function getShortDescription(){ - return $this->description['short']; - } - - /** - * Get the Full Description of the Value - * @return mixed Full Description of the value. - */ - function getFullDescription(){ - return $this->description['full']; - } -} - - - - -/** -* Abstract base Validator Class -* @author Joby Walker -*/ -class Validator { - - /** - * Constructor - * - * Dummy constructor that does nothing. - */ - function Validator(){ - return; - } - - /** - * Dummy valitate method -- always returns true. - * @param mixed $value Value to check. - * @return boolean Always returns true. - */ - function validate($value){ - return true; - } - - /** - * Get the proper Valitator subclass for the provided parameters - * @param array $params Initialization values for Validator. - * @return object Validator subclass for use with the parameters. - * @static - */ - function getValidator($params){ - extract($params, EXTR_OVERWRITE); - $class = 'Validator' . $type; - if (isset($list)){ - $class .= 'List'; - return new $class ($list); - } elseif (isset($range)) { - $class .= 'Range'; - return new $class ($range); - } elseif (isset($pcre)){ - $class .= 'Pcre'; - return new $class ($pcre); - } - return new $class (); - - } - -} - -/** -* Validator subclass for use with boolean values -* @author Joby Walker -*/ -class ValidatorBoolean extends Validator { - - /** - * Checks the parameter to see if it is a boolean, returns true if - * it is, else false. - * @param boolean $boolean Value to check to ensure it is a boolean. - * @return boolean True if parameter is boolean. - */ - function validate ($boolean){ - if (is_bool($boolean)) { - return true; - } - return false; - } -} - -/** -* Validator subclass for use with integer values with no bounds. -* @author Joby Walker -*/ -class ValidatorInteger extends Validator { - - /** - * Checks the parameter to ensure that it is an integer. - * @param integer $integer Value to check. - * @return boolean True if parameter is an integer, false else. - */ - function validate ($integer){ - if (is_int($integer)) { - return true; - } - return false; - } -} - -/** -* Validator subclass for use with integer values to be bound within a range. -* @author Joby Walker -*/ -class ValidatorIntegerRange extends ValidatorInteger { - - /** - * Minimum valid value - * @var integer - * @access protected - */ - var $minimum; - - /** - * Maximum valid value - * @var integer - * @access protected - */ - var $maximum; - - /** - * Constructor - * - * Sets the minimum and maximum values from the parameter array. - * @param array $range Minimum and maximum valid values. - */ - function ValidatorIntegerRange($range){ - $this->minimum = $range['minimum']; - $this->maximum = $range['maximum']; - return; - } - - /** - * Checks to ensure that the parameter is an integer and within the desired - * range. - * @param integer $integer Value to check. - * @return boolean True if the parameter is an integer and within the - * desired range, false else. - */ - function validate ($integer){ - if (is_int($integer)) { - if (($integer >= $this->minimum) && ($integer <= $this->maximum)) { - return true; - } - } - return false; - } - -} - -/** -* Validator subclass for use with integer values to be selected from a list. -* @author Joby Walker -*/ -class ValidatorIntegerList extends ValidatorInteger { - - /** - * Array of potential valid values - * @var array - * @access protected - */ - var $intList; - - /** - * Constructor - * - * Saves parameter as the instance variable $intList. - * @param array List of valid values. - */ - function ValidatorIntegerList($intList){ - $this->intList = $intList; - return; - } - - /** - * Checks the parameter to ensure that it is an integer, and - * within the defined list. - * @param integer $integer Value to check. - * @return boolean True if parameter is an integer and in list, false else. - */ - function validate ($integer){ - if (is_int($integer)) { - if (in_array($integer, $this->intList, true)) { - return true; - } - } - return false; - } - -} - -/** -* Validator subclass for string values with no bounds -* @author Joby Walker -*/ -class ValidatorString extends Validator { - - /** - * Checks the parameter to ensure that is is a string. - * @param string $string Value to check. - * @return boolean True if parameter is a string, false else. - */ - function validate ($string){ - if (is_string($string)) { - return true; - } - return false; - } - -} - -/** -* Validator subclass for string values to be selected from a list. -* @author Joby Walker -*/ -class ValidatorStringList extends ValidatorString { - - /** - * Array of potential valid values - * @var array - * @access protected - */ - var $stringList; - - /** - * Constructor - * - * Saves parameter as the instance variable $stringList. - * @param array List of valid values. - */ - function ValidatorStringList($stringList){ - $this->stringList = $stringList; - return; - } - - /** - * Checks the parameter to ensure that is is a string, and within - * the defined list. - * @param string $string Value to check. - * @return boolean True if parameter is a string and in the list, false else. - */ - function validate($string){ - if (is_string($string)) { - if (in_array($string, $this->stringList, true)) { - return true; - } - } - return false; - } - -} - -/** -* Validator subclass for string values that must meet a PCRE. -* @author Joby Walker -*/ -class ValidatorStringPcre extends ValidatorString { - - /** - * PCRE to validate value - * @var array - * @access protected - */ - var $pattern; - - /** - * Constructor - * - * Saves parameter as the instance variable $pattern. - * @param array PCRE pattern to determin validity. - */ - function ValidatorStringPcre($pattern){ - $this->pattern = $pattern; - return; - } - - /** - * Checks the parameter to ensure that is is a string, and matches the - * defined pattern. - * @param string $string Value to check. - * @return boolean True if parameter is a string and matches the pattern, - * false else. - */ - function validate ($string){ - if (is_string($string)) { - if (preg_match($this->pattern, $string)) { - return true; - } - } - return false; - } -} - -/** -* Validator subclass for constant values. -* @author Joby Walker -*/ -class ValidatorConstant extends Validator { - - /** - * Checks the parameter to ensure that is is a constant. - * @param string $constant Value to check. - * @return boolean True if parameter is a constant, false else. - */ - function validate ($constant){ - if (defined($constant)) { - return true; - } - return false; - } -} - -/** -* Validator subclass for constant values to be selected from a list. -* @author Joby Walker -*/ -class ValidatorConstantList extends Validator { - - /** - * Array of potential valid values - * @var array - * @access protected - */ - var $constantList; - - /** - * Constructor - * - * Saves parameter as the instance variable $constantList. - * @param array List of valid values. - */ - function ValidatorConstantList($constantList){ - $this->constantList = $constantList; - return; - } - - /** - * Checks the parameter to ensure that is is a constant, and within - * the defined list. - * @param string $constant Value to check. - * @return boolean True if parameter is a constant and in the list, false else. - */ - function validate ($constant){ - if (defined($constant)) { - if (in_array($constant, $this->constantList, true)) { - return true; - } - } - return false; - } -} - -/** -* Validator subclass for an array. -* @author Joby Walker -*/ -class ValidatorArray extends Validator { - - /* - * Checks to ensure that the parameter is an array then passes the - * array on to validMembers() to ensure that each member of the - * array is valid. - * @param array $array Value to check. - * @return boolean True if the value is and array and members are valid, false else. - */ - function validate($array){ - if(is_array($array)){ - return $this->validMembers($array); - } - return false; - } - - /** - * Checks to ensure that the members of the array are valid. Always true here. - * @param array $array Array of members to check - * @return boolean Always true since there are no restrictions on the members. - */ - function validMembers($array){ - return true; - } -} - -/** -* Validator subclass for an array of strings. -* @author Joby Walker -*/ -class ValidatorArrayString extends Validator { - - /** - * Checks to ensure that the members of the array are valid strings. - * @param array $array Array of members to check - * @return boolean True if the members are valid strings, false else. - */ - function validMembers($array){ - foreach ($array as $member){ - if (!is_string($member)) { - return false; - } - } - return true; - } -} - -/** -* Validator subclass for an array of strings that must be in a list of -* defined values. -* @author Joby Walker -*/ -class ValidatorArrayStringList extends Validator { - - /** - * Array of potential valid values - * @var array - * @access protected - */ - var $stringList; - - /** - * Constructor - * - * Saves parameter as the instance variable $stringList. - * @param array List of valid values. - */ - function ValidatorArrayStringList($stringList){ - $this->stringList = $stringList; - return; - } - - /** - * Checks to ensure that the members of the array are valid strings and - * within the defined list. - * @param array $array Array of members to check - * @return boolean True if the members are valid strings are in the defined list, - * false else. - */ - function validMembers($array){ - foreach ($array as $member){ - if(!in_array($member, $stringList, true)){ - return false; - } - } - return true; - } - -} - -/** - * Convert old-style index.php configuration to config/config.ini - */ -function ConvertToIni ($index) { - $config = "config/config.ini"; -} - -//$Log: not supported by cvs2svn $ -//Revision 1.6 2004/04/16 23:30:41 zorloc -//More work for new ini config system. Tools has array type removed and first implimentations of config-dist.ini and IniConfig.php. Will update config-dist.ini again soon. -// -//Revision 1.5 2003/12/07 19:25:41 carstenklapp -//Code Housecleaning: fixed syntax errors. (php -l *.php) -// -//Revision 1.3 2003/01/28 18:53:25 zorloc -//Added some more Validator subclasses to handle arrays of for which the -//validation criteria should be the same for all members. -// -//Revision 1.2 2003/01/28 06:31:00 zorloc -//Mostly done but ConfigArray will probably need some more helper methods. -// -//Revision 1.1 2003/01/23 00:32:04 zorloc -//Initial work for classes to hold configuration constants/variables. Base -//ConfigValue class and subclasses for constants and variables. -// - -// Local Variables: -// mode: php -// tab-width: 8 -// c-basic-offset: 4 -// c-hanging-comment-ender-p: nil -// indent-tabs-mode: nil -// End: -?> \ No newline at end of file diff --git a/config/Values.php b/config/Values.php deleted file mode 100644 index 7698df668..000000000 --- a/config/Values.php +++ /dev/null @@ -1,541 +0,0 @@ - '', - 'name' => '', - 'section' => , - 'defaultValue' => , - 'hide' => , - 'description' => array( - 'short' => '', - 'full' => '' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => '' - ) -); -*/ - -/** -* Define the include path if necessary. -*/ -$values[] = array( - 'type' => 'Ini', - 'name' => 'INCLUDE_PATH', - 'section' => 0, - 'defaultValue' => null, - 'hide' => true, - 'description' => array( - 'short' => 'Redefine the php.ini \'include_path\' setting.', - 'full' => 'If PHP needs help in finding where you installed the rest ' . - 'of the PhpWiki code, you can set the include_path here.\n\n' . - 'You should not need to do this unless you have moved index.php ' . - 'out of the PhpWiki install directory.\n\n' . - 'NOTE: On Windows installations a semicolon (;) should be used ' . - 'as the path seperator' - ), - 'example' => array( - '.:/usr/local/httpd/htdocs/phpwiki' - ), - 'validator' => array( - 'type' => 'String' - ) -); - -/** -* Enable debuging output -*/ -$values[] = array( - 'type' => 'Constant', - 'name' => 'DEBUG', - 'section' => 0, - 'defaultValue' => false, - 'hide' => true, - 'description' => array( - 'short' => 'Enable Debug Output', - 'full' => 'Set DEBUG to \'true\' to view XHMTL and CSS validator icons, page ' . - 'process timer, and possibly other debugging messages at the ' . - 'bottom of each page' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -/** -* Enable Experimental User Classes -*/ -$values[] = array( - 'type' => 'Constant', - 'name' => 'ENABLE_USER_NEW', - 'section' => 0, - 'defaultValue' => true, - 'hide' => false, - 'description' => array( - 'short' => 'Enable Experimental User Classes', - 'full' => 'Enable the new method of handling WikiUsers. This is currently an ' . - 'experimental feature, although it is considered fairly stable. It is ' . - 'best to leave it on, and only disable it if you have problems with it.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -/** -* Experimental edit feature -*/ -$values[] = array( - 'type' => 'Constant', - 'name' => 'JS_SEARCHREPLACE', - 'section' => 0, - 'defaultValue' => false, - 'description' => array( - 'short' => 'Enable Experimental Edit Feature', - 'full' => '' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - - - -/** -* This defines the Constant that holds the name of the wiki -*/ -$values[] = array( - 'type' => 'Constant', - 'name' => 'WIKI_NAME', - 'section' => 1, - 'defaultValue' => 'PhpWiki', - 'hide' => false, - 'description' => array( - 'short' => 'Name of your Wiki.', - 'full' => 'This can be any string, but it should be short and informative.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'String' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'ENABLE_REVERSE_DNS', - 'section' => 1, - 'defaultValue' => false, - 'hide' => false, - 'description' => array( - 'short' => 'Perform reverse DNS lookups', - 'full' => 'If set, we will perform reverse dns lookups to try to convert ' . - 'the users IP number to a host name, even if the http server ' . - 'didn\'t do it for us.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'ADMIN_USER', - 'section' => 1, - 'defaultValue' => "", - 'hide' => true, - 'description' => array( - 'short' => 'Username of Administrator', - 'full' => 'The username of the Administrator can be just about any string.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'String' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'ADMIN_PASSWD', - 'section' => 1, - 'defaultValue' => "", - 'hide' => true, - 'description' => array( - 'short' => 'Password of Administrator', - 'full' => 'The password of the Administrator, please use a secure password.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'String' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'ENCRYPTED_PASSWD', - 'section' => 1, - 'defaultValue' => true, - 'hide' => false, - 'description' => array( - 'short' => 'Encrypt Administrator Password.', - 'full' => 'True if the Administrator password is encrypted using the embeded tool.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'ZIPDUMP_AUTH', - 'section' => 1, - 'defaultValue' => true, - 'hide' => false, - 'description' => array( - 'short' => 'Require privilage to make zip dumps.', - 'full' => 'If true then only the Administrator will be allowed to make a zipped ' . - 'archive of the Wiki.' - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'ENABLE_RAW_HTML', - 'section' => 1, - 'defaultValue' => false, - 'hide' => false, - 'description' => array( - 'short' => 'Enable the use of html in a WikiPage', - 'full' => 'If true raw html will be respected in the markup of a WikiPage. ' . - '*WARNING*: this is a major security hole! Do not enable on a public ' . - 'Wiki.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'STRICT_MAILABLE_PAGEDUMPS', - 'section' => 1, - 'defaultValue' => false, - 'hide' => false, - 'description' => array( - 'short' => 'Page dumps are valid RFC 2822 e-mail messages', - 'full' => 'If you define this to true, (MIME-type) page-dumps (either zip ' . - 'dumps, or "dumps to directory" will be encoded using the ' . - 'quoted-printable encoding. If you\'re actually thinking of ' . - 'mailing the raw page dumps, then this might be useful, since ' . - '(among other things,) it ensures that all lines in the message ' . - 'body are under 80 characters in length. Also, setting this will ' . - 'cause a few additional mail headers to be generated, so that the ' . - 'resulting dumps are valid RFC 2822 e-mail messages. Probably, you ' . - 'can just leave this set to false, in which case you get raw ' . - '(\'binary\' content-encoding) page dumps.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'HTML_DUMP_SUFFIX', - 'section' => 1, - 'defaultValue' => '.html', - 'hide' => false, - 'description' => array( - 'short' => 'Suffix for XHTML page dumps', - 'full' => 'This suffix will be appended to the name of each page for a ' . - 'XHTML page dump and the page links will be modified accordingly.' - ), - 'example' => array( - '.xml', - '.htm' - ), - 'validator' => array( - 'type' => 'String' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'MAX_UPLOAD_SIZE', - 'section' => 1, - 'defaultValue' => (16 * 1024 * 1024), // 16MB - 'hide' => false, - 'description' => array( - 'short' => 'Maximum file upload size', - 'full' => 'The maximum file upload size in bytes.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Integer' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'MINOR_EDIT_TIMEOUT', - 'section' => 1, - 'defaultValue' => (7 * 24 * 60 * 60), // One week - 'hide' => false, - 'description' => array( - 'short' => 'Length of time where \'Minor Edit\' is default', - 'full' => 'If an edit is started less than this period of time from the ' . - 'prior edit, the \'Minor Edit\' checkbox will be set.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Integer' - ) -); - -$values[] = array( - 'type' => 'Variable', - 'name' => 'DisabledActions', - 'section' => 1, - 'defaultValue' => '', - 'hide' => true, - 'description' => array( - 'short' => 'List of actions to disable', - 'full' => 'Each action listed will be disabled.' - ), - 'example' => array( - 'dumpserial : loadfile', - 'remove : dumpserial : loadfile : upload' - ), - 'validator' => array( - 'type' => 'ArrayString', - 'seperator' => ':', - 'list' => array( - 'browse', - 'verify', - 'diff', - 'search', - 'edit', - 'viewsource', - 'lock', - 'unlock', - 'remove', - 'upload', - 'xmlrpc', - 'zip', - 'ziphtml', - 'dumpserial', - 'dumphtml', - 'loadfile' - ) - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'ACCESS_LOG', - 'section' => 1, - 'defaultValue' => '', - 'hide' => true, - 'description' => array( - 'short' => 'Enable and location of Wiki Access Log', - 'full' => 'PhpWiki can generate an access_log (in NCSA combined log ' . - 'format) for you. If you want one, define location for the ' . - 'file. The server must have write access for the specified ' . - 'location.' - ), - 'example' => array( - '/var/tmp/wiki_access_log', - '/tmp/phpwiki_log' - ), - 'validator' => array( - 'type' => 'String' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'COMPRESS_OUTPUT', - 'section' => 1, - 'defaultValue' => false, - 'hide' => true, - 'description' => array( - 'short' => 'Enable Ouput Compression', - 'full' => 'By default PhpWiki will try to have PHP compress ' . - 'its output before sending it to the browser (if you ' . - 'have a recent enough version of PHP and the browser ' . - 'supports it).\n' . - 'Define COMPRESS_OUTPUT to false to prevent output compression.\n' . - 'Define COMPRESS_OUTPUT to true to force output compression.\n' . - 'Leave undefined to leave the choice up to PhpWiki.\n' . - 'WARNING: Compressing the output has been reported to cause ' . - 'serious problems when PHP is running as a CGI.' - ), - 'example' => array( - 'false' - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - - -$values[] = array( - 'type' => 'Constant', - 'name' => 'CACHE_CONTROL', - 'section' => 1, - 'defaultValue' => 'LOOSE', - 'hide' => false, - 'description' => array( - 'short' => 'HTTP Cache Control Behavior', - 'full' => 'Choose one of:\n\n' . - 'NONE: PhpWiki will instruct proxies and browsers never to ' . - 'cache PhpWiki output. This is roughly pre-1.3.4 behavior.\n\n' . - 'STRICT: Cached pages will be invalidated whenever the database ' . - 'global timestamp changes. This should be slightly more ' . - 'efficient than NONE.\n\n' . - 'LOOSE: Cached pages will be invalidated whenever they are ' . - 'edited, or, if the pages include plugins, when the plugin ' . - 'output could concievably have changed. This might result ' . - 'in wikilinks that show up as undefined even though the page ' . - 'has been (recently) created.\n\n' . - 'ALLOW_STALE: Invalidation will be defined by ' . - 'CACHE_CONTROL_MAX_AGE, allowing browsers and proxies to ' . - 'display stale pages. This will result in very quirky ' . - 'behavior. This setting is generally not advisable.\n\n' . - 'The recommended default is LOOSE.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'String', - 'list' => array( - 'NONE', - 'STRICT', - 'LOOSE', - 'ALLOW_STALE' - ) - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'CACHE_CONTROL_MAX_AGE', - 'section' => 1, - 'defaultValue' => 600, - 'hide' => false, - 'description' => array( - 'short' => 'Maximum Page Staleness', - 'full' => 'The maximum time in seconds proxies and browsers should ' . - 'cache pages. This setting is relevant only if CACHE_CONTROL ' . - 'is set to ALLOW_STALE.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Integer' - ) -); - -$values[] = array( - 'type' => 'Constant', - 'name' => 'WIKIDB_NOCACHE_MARKUP', - 'section' => 1, - 'defaultValue' => false, - 'hide' => true, - 'description' => array( - 'short' => 'Disable Caching of Page Markup', - 'full' => 'PhpWiki normally caches a preparsed version of the most recent ' . - 'version of each page. Define this setting to true to disable ' . - 'the caching of marked-up page content.\n\n' . - 'NOTE: You can also disable markup cacheing on a per-page ' . - 'temporary basis by adding a query arg of \'?nocache=1\' ' . - 'to the URL to the page, or \'?nocache=purge\' to completely ' . - 'discard the cached version of the page. Additionally via the ' . - '"Purge Markup Cache" button on the PhpWikiAdministration page, ' . - 'you can purged the cached markup globally.' - ), - 'example' => array( - ), - 'validator' => array( - 'type' => 'Boolean' - ) -); - -//$Log: not supported by cvs2svn $ -//Revision 1.5 2004/04/21 00:15:24 zorloc -//Added Section 0 values -// -//Revision 1.4 2003/12/07 19:25:41 carstenklapp -//Code Housecleaning: fixed syntax errors. (php -l *.php) -// -//Revision 1.2 2003/01/28 18:55:25 zorloc -//I have added all of the values for Part One of our configuration values. -// -//Revision 1.1 2003/01/28 07:32:24 zorloc -//This file holds all of the config settings for the constants, variables, -//and arrays that can be customized/defined. -// -//I have done a template and one constant (WIKI_NAME). More to follow. -// - -// Local Variables: -// mode: php -// tab-width: 8 -// c-basic-offset: 4 -// c-hanging-comment-ender-p: nil -// indent-tabs-mode: nil -// End: - -?> \ No newline at end of file -- 2.45.0