[pLog-svn] r3177 - in plog/trunk: . templates/wizard
mark at devel.lifetype.net
mark at devel.lifetype.net
Tue Apr 4 02:16:47 GMT 2006
Author: mark
Date: 2006-04-04 02:16:38 +0000 (Tue, 04 Apr 2006)
New Revision: 3177
Modified:
plog/trunk/templates/wizard/checks.template
plog/trunk/wizard.php
Log:
Add ctype_digit check (some plugin still need it). After we modify all the plugin integer validator to our own, then we can remove this check.
Modified: plog/trunk/templates/wizard/checks.template
===================================================================
--- plog/trunk/templates/wizard/checks.template 2006-04-03 07:03:21 UTC (rev 3176)
+++ plog/trunk/templates/wizard/checks.template 2006-04-04 02:16:38 UTC (rev 3177)
@@ -34,7 +34,7 @@
{/if}
{/if}
<div style="padding-bottom:5px; margin-top: 10px;">
- {$check->getDesc()}
+ {$check->getDesc()} {if !$check->isCritical()}(optional){/if}
{if !$check->isValid()}
<div style="margin-left: 20px; margin-top: 5px;">
{if $check->isCritical()}
Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php 2006-04-03 07:03:21 UTC (rev 3176)
+++ plog/trunk/wizard.php 2006-04-04 02:16:38 UTC (rev 3177)
@@ -289,7 +289,7 @@
{
$this->WizardValidator( "Checking if <b>session.auto_start</b> is disabled",
"LifeType can only run when session.auto_start is disabled.",
- false );
+ true );
}
function validate()
@@ -420,8 +420,24 @@
$this->_valid = (ini_get( "file_uploads" ) == 1);
return( parent::validate());
}
- }
+ }
+ class WizardCtypeFunctionsAvailableValidator extends WizardValidator
+ {
+ function WizardCtypeFunctionsAvailableValidator()
+ {
+ $this->WizardValidator( "Checking if <b>ctype</b> functions are available",
+ "Some LifeType plugins requires support for variable type validation.",
+ false );
+ }
+
+ function validate()
+ {
+ $this->_valid = function_exists( "ctype_digit" );
+ return( parent::validate());
+ }
+ }
+
class WizardChecks extends Action
{
function perform()
@@ -449,7 +465,8 @@
"xml" => new WizardXmlFunctionsAvailableValidator(),
"iconv" => new WizardIconvFunctionsAvailableValidator(),
"mbstring" => new WizardMbstringFunctionsAvailableValidator(),
- "gd" => new WizardGdFunctionsAvailableValidator()
+ "gd" => new WizardGdFunctionsAvailableValidator(),
+ "ctype" => new WizardCtypeFunctionsAvailableValidator()
);
// run the checks
More information about the pLog-svn
mailing list