if( !isset( $_SESSION ) ) session_start(); require_once('/var/www/vhosts/jamm-net.com/httpsdocs/config/config.php'); require_once 'UserClass.php'; $user = new flexibleAccess(); $ref = $_SERVER['HTTP_REFERER']; if (!$user->is_loaded() || !$user->is_samesession() || !$user->is_active() || $ref=='https://www.jamm-net.com/logout.php') { }else{ header("HTTP/1.1 301 Moved Permanently"); header("Location: https://www.jamm-net.com/"); } ?> session_cache_limiter('private, must-revalidate'); ?> echo('') ?>
会員用サイト ログイン画面
if( !isset( $_SESSION ) ) session_start(); require_once('/var/www/vhosts/jamm-net.com/httpsdocs/config/config.php'); require_once(LOG4PHP_DIR.'/LoggerManager.php'); $logger =& LoggerManager::getLogger(basename($_SERVER['SCRIPT_NAME'])); $msg = sprintf( "%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s" ,$_SERVER['REMOTE_ADDR'] ,gethostbyaddr($_SERVER["REMOTE_ADDR"]) ,$_SERVER['HTTP_REFERER'] ,$_SERVER['HTTP_USER_AGENT'] ,$_SERVER['PHP_SELF'] ,$_SESSION['LOGINID'] ,$_SESSION['LOGINNAME'] ,$_SESSION['PERIOD'] ,$_SESSION['LISTTYPE'] ,$_SESSION['DATATYPE'] ,$_SESSION['VISITTYPE'] ,$_SESSION['MEDTYPE'] ,$_SESSION['87CD'] ,$_SESSION['BRANDCD'] ,$_SESSION['GENERICCD'] ,$_SESSION['MEDICINECD'] ,$_SESSION['DISCD'] ,$_SESSION['ICDCD'] ,$_SESSION['PATTYPE'] ,$_SESSION['LISTTOP'] ,$_SESSION['NEXT']); $logger->info($msg); LoggerManager::shutdown(); if( isset($_SESSION['LOGINID']) ){ unset($_SESSION['LOGINID']); } if( isset($_SESSION['LOGINNAME']) ){ unset($_SESSION['LOGINNAME']); } echo '