本文整理匯總了PHP中security::redirect_if_not_loggedin方法的典型用法代碼示例。如果您正苦於以下問題:PHP security::redirect_if_not_loggedin方法的具體用法?PHP security::redirect_if_not_loggedin怎麽用?PHP security::redirect_if_not_loggedin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類security
的用法示例。
在下文中一共展示了security::redirect_if_not_loggedin方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: session_start
<?php
require_once "functions.php";
session_start();
security::redirect_if_not_loggedin();
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Money Manager EX</title>
<link rel="icon" href="res/favicon.ico" />
<link rel="apple-touch-icon" href="res/apple-touch-icon.png" />
<link rel="stylesheet" type="text/css" href="res/bootstrap-3.2.0.min.css" />
<link rel="stylesheet" type="text/css" href="res/bootstrap-theme-3.2.0.min.css" />
<link rel="stylesheet" type="text/css" href="res/style_global-0.9.9.css" />
</head>
<body>
<div class="container text_align_center">
<h2><strong>Money Manager EX</strong></h2>
<br />
<img src="res/mmex.ico" alt="Money Manager EX Logo" height="150" width="150"/>
<br />
<br />
<br />