本文整理汇总了PHP中Wizard::start方法的典型用法代码示例。如果您正苦于以下问题:PHP Wizard::start方法的具体用法?PHP Wizard::start怎么用?PHP Wizard::start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wizard
的用法示例。
在下文中一共展示了Wizard::start方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pre
}
if (version_compare(PHP_VERSION, '5.3') >= 0) {
//the user has the correct version
} else {
//the user does not have the minimum php version
echo "<body style='background-color:#F7F8FA;'>";
echo "<div style='text-align:center; font-family:sans-serif; margin:60px auto; max-width:500px;'>";
echo "<h2>Please upgrade your version of PHP before continuing</h2>";
echo "<br/><p><strong>Required version</strong>: This application requires PHP 5.3 or greater. <br/>\n <strong>Your current version</strong>: You currently have PHP " . PHP_VERSION . "</p> <br/><br/>";
echo "<p>You will need to contact your hosting provider to upgrade your version of php.\n This is usually free and very quick. Once you have upgraded, return this installation script to continue with\n the installation. </p>";
echo "</div></body>";
exit;
}
require_once 'server/wizard.class.php';
$wizard = new Wizard();
$wizard->start();
function pre($data, $return = false)
{
if (!$return) {
echo "<pre>";
print_r($data);
echo "</pre>";
return true;
} else {
return "<pre>" . print_r($data, true) . "</pre>";
}
}
//todo: hack, I should just be able to require shared.functions.php but I'm re-using function names which causes errors
function get_config($option)
{
global $CONFIG;