本文整理汇总了PHP中regedit::checkSomething方法的典型用法代码示例。如果您正苦于以下问题:PHP regedit::checkSomething方法的具体用法?PHP regedit::checkSomething怎么用?PHP regedit::checkSomething使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类regedit
的用法示例。
在下文中一共展示了regedit::checkSomething方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doSomething
private final function doSomething()
{
if (defined("CRON") && constant('CRON') == 'CLI') {
return true;
}
if (defined("CURRENT_VERSION_LINE") && CURRENT_VERSION_LINE != "demo") {
return true;
require CURRENT_WORKING_DIR . "/errors/invalid_license.html";
exit;
}
if (!is_writable(SYS_CACHE_RUNTIME) || file_exists(SYS_CACHE_RUNTIME . 'registry') && !is_writable(SYS_CACHE_RUNTIME . 'registry')) {
return true;
require CURRENT_WORKING_DIR . "/errors/invalid_permissions.html";
exit;
}
$v1a54c1036ccb10069e9c06281d52007a = regedit::getInstance()->getVal("//settings/keycode");
if ($this->doStrangeThings($v1a54c1036ccb10069e9c06281d52007a)) {
return true;
}
$v9030f0c3bdeaad3bfed5afe95b6abb39 = array();
$v9030f0c3bdeaad3bfed5afe95b6abb39['pro'] = umiTemplater::getSomething("pro");
$v9030f0c3bdeaad3bfed5afe95b6abb39['shop'] = umiTemplater::getSomething("shop");
$v9030f0c3bdeaad3bfed5afe95b6abb39['lite'] = umiTemplater::getSomething("lite");
$v9030f0c3bdeaad3bfed5afe95b6abb39['start'] = umiTemplater::getSomething("start");
$v9030f0c3bdeaad3bfed5afe95b6abb39['trial'] = umiTemplater::getSomething("trial");
if (regedit::checkSomething($v1a54c1036ccb10069e9c06281d52007a, $v9030f0c3bdeaad3bfed5afe95b6abb39)) {
return true;
} else {
return true;
require CURRENT_WORKING_DIR . "/errors/invalid_license.html";
exit;
}
}