<?php if (!User::checkAuth()) { redirect('/'); } ?> <!DOCTYPE html> <html ng-app="tutorial-app"> <head lang="en"> <meta charset="UTF-8"> <title></title> <script> document.game_host = '<?php echo GAME_HOST; ?> '; document.secret = '<?php echo $_SESSION['secret']; ?> '; document.skinPath = '<?php $skin = explode(',', Player::getSkin()); $type = $skin[0]; $color = $skin[1]; echo "img/ameba_pics/{$type}/{$color}.svg"; ?> '; </script> <script src="libs/angular.js"></script>
<?php require_once "user.php"; $user = new User(); if (!$user->checkAuth(true)) { die; } ini_set('session.gc_maxlifetime', 5); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>HomegearWS example</title> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="css/index.css" rel="stylesheet"> <script type="text/javascript" src="js/homegear-ws-0.0.1.js"></script> <script type="text/javascript" src="js/jquery.2.1.4.min.js"></script> <script type="text/javascript"> var homegear; function readCookie(key) { var result; return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? (result[1]) : null; } function homegearReady() {
* @created 2015-01-16 * @author -- * @version v1.0 * @copyright Copyright (c) 2015 USEN */ session_start(); set_include_path(get_include_path() . PATH_SEPARATOR . "/var/sheep/web/lib"); include_once "common/Common.php"; include_once "class.User.php"; try { //ページキー取得 $PAGE = isset($PAGE) && constant($PAGE) ? constant($PAGE) : null; //パラメーター取得 $req = new Request(); $request = $req->getAll(); // ========================== // 認証処理・権限取得 // ========================== $adminUser = new User(); $authCheck = $adminUser->checkAuth(); if (!$authCheck['result']) { //認証エラー $param['errors'] = $authCheck['errors']; renderTemplate('error.tpl', $param); exit; } } catch (Exception $e) { $param['errors'][] = "システムエラーが発生しました。"; renderTemplate('error.tpl', $param); exit; }
<?php /** * トップ画面 * * @created 2015-02-05 * @author R. Kumabe * @version v1.0 * @copyright Copyright (c) 2015 USEN */ $PAGE = "S_MENU"; include_once "../_init_auth.php"; include_once "class.Top.php"; try { $user = new User(); $userdata = $user->checkAuth(); $top = new Top(); $param = array(); $param['page'] = $PAGE; //var_dump ($_SESSION); $date = date('Ymd'); $year = date('Y'); $month = date('m'); //$param['date'] = $date; $id = $_SESSION[SESSION_USER_ID]; $name = $_SESSION[SESSION_USER]; $authority = $_SESSION[SESSION_GROUP_CD]; $department_cd = $_SESSION[SESSION_USER_DEPARTMENT_CD]; $division_cd = $_SESSION[SESSION_USER_DIVISION_CD]; $param['id'] = $id; $param['date'] = $date;
<?php if (User::checkAuth()) { redirect('/profile'); } ?> <!DOCTYPE html> <html> <head lang="en"> <!--fonts:css--> <link rel="stylesheet" href="css/fonts.css"> <!--endinject--> <link href="css/start/style.css" rel="stylesheet"> <link href="css/start/position.css" rel="stylesheet"> <meta charset="UTF-8"> <title></title> </head> <body> <div id="enter"> <form action="/enter" method="post"> <button type="submit" id="enter-button">ВХОД</button> </form> </div> <div id="logo-wrapper"> <img id="logo" src="img/logo_evolution.svg"/> </div> <div id="content"> Амёбообразную форму имеют и многие другие одноклеточные, в том числе амёба-убийца Naegleria fowleri,