本文整理匯總了PHP中module_security::check_ssl方法的典型用法代碼示例。如果您正苦於以下問題:PHP module_security::check_ssl方法的具體用法?PHP module_security::check_ssl怎麽用?PHP module_security::check_ssl使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類module_security
的用法示例。
在下文中一共展示了module_security::check_ssl方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
$required_php_version = '5.3.0';
if (version_compare(PHP_VERSION, $required_php_version) < 0) {
echo "I'm sorry, a PHP version of {$required_php_version} or above is REQUIRED to run this - the current PHP version is: " . PHP_VERSION . ". Please ask the web hosting provider to upgrade you.";
}
try {
foreach ($load_modules as $load_module_key => $load_module) {
$load_module = basename($load_module);
$load_page = isset($load_pages[$load_module_key]) ? basename($load_pages[$load_module_key]) : false;
// if the user isn't logged in, display the login page.
if (!_UCM_INSTALLED || $load_module == 'setup') {
$load_page = 'setup';
$load_module = 'setup';
} else {
if (!getcred()) {
if (is_callable('module_security::check_ssl')) {
module_security::check_ssl();
}
$load_page = 'login';
} else {
if (!$load_page) {
$load_page = 'home';
}
}
}
if ($load_page) {
//} && is_file("pages/".$load_page.".php")){
$page = "pages/" . $load_page . ".php";
} else {
$page = 'pages/home.php';
}
// load this particular module so other scripts can access the $module variable.