本文整理匯總了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;
}
}