<?php
header( "Location: https://www.uty.co.jp/" ) ;
exit ;

	include("../init1.php");

$PAGE_TITLE = "精進湖からの富士山（静止画24時間）";
$index_flag = 1 ;

$DEBUG = 1 ;

$error_flag	=	false ;
$wk_y	=	"" ;
$wk_m	=	"" ;

$m	=	func_sanitaze( func_parm_get( 'm' ) , 2 ) ;


$len	=	strlen( $m ) ;
if( $len != 8 )
{
	$error_flag	=	true ;
}
else
{
	$wk_y	=	substr( $m , 0 , 4 ) ;
	$wk_m	=	(int)substr( $m , 4 , 2 ) ;
	$wk_d	=	(int)substr( $m , 6 , 2 ) ;
	$ret	=	checkdate( 1 , $wk_m , $wk_y ) ;
	if( !$ret )
		$error_flag	=	true ;
}

if( $error_flag )
{
 	header( "Location: /livecam/shojiko.php" ) ;
 	exit;
}

$basedir	=	"../live/shojiko/" ;
// $base_dir	=	 $wk_y."-".$wk_m."-".$wk_d ;
$base_dir	=	 $wk_y."-".sprintf( "%02s" , $wk_m )."-".sprintf( "%02s" , $wk_d ) ;

if( !file_exists( $basedir.$base_dir ) )
{
 	header( "Location: /livecam/shojiko.php" ) ;
 	exit;
}

$arr_disp_file	=	array() ;

include( "./sub_image24_get.php" ) ;


$PAGE_TITLE	=	"精進湖からの富士山（".$wk_y."年".$wk_m."月".$wk_d."日）";
$CHAR_KEYWORD		=	"富士山,精進湖,ライブカメラ,".$wk_y."年".$wk_m."月".$wk_d."日" ;
$CHAR_DESCRIPTION	=	$wk_y."年".$wk_m."月".$wk_d."日の精進湖からの富士山ページです。過去の精進湖からの富士山をご覧ください。" ;
?>
<!doctype html>
<html class="no-js" lang="ja">
    <head>
        <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="format-detection" content="telephone=no" />
<meta name="robots" content="INDEX,FOLLOW" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="Keywords" content="<?php print $CHAR_KEYWORD;?>" />
<meta name="Description" content="<?php print $CHAR_DESCRIPTION;?>" />
<meta http-equiv="expires" content="sat, 1 Jan 2000 00:00:00 GMT" />
<meta http-equiv="cache-control" content="no-store, no-cache, must-revalidate, max-age=0" />
<meta http-equiv="cache-control" content="post-check=0, pre-check=0" />
<meta http-equiv="pragma" content="no-cache" />
<base href="<?php print $HOME_URL ; ?>livecam/">
<title><?php print $PAGE_TITLE." | ".$SITE_NAME; ?></title>
<link rel="shortcut icon" href="<?php print $CHAR_FAVICON;?>" />

		<!-- ========================= CSS here ========================= -->
		<link rel="stylesheet" href="../css/bootstrap-5.0.0-alpha-1.min.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
        <link rel="stylesheet" href="../css/LineIcons.2.0.css">
		<link rel="stylesheet" href="../css/animate.css">
		<link rel="stylesheet" href="../css/slider-pro.css">
		<link rel="stylesheet" href="../assets/js/slick/slick-theme.css">
		<link rel="stylesheet" href="../assets/js/slick/slick.css">
		<link rel="stylesheet" href="../css/main.css">
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.2.0/magnific-popup.min.css">
<?php
if( $DEBUG )
{
	include("../common/accesslog.php");
}
?>
    </head>
    <body class="subbody" oncontextmenu="return false;">
        <!--[if lte IE 9]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
        <![endif]-->
<?php include("../common/header.php"); ?>

        <div class="sub_main">
        <nav aria-label="breadcrumb">
          <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="<?php print $HOME_URL;?>">TOP</a></li>
            <li class="breadcrumb-item"><a href="./">ライブカメラ</a></li>
            <li class="breadcrumb-item"><a href="./shojiko_archive/<?php print substr( $m , 0 , 6 ) ; ?>/">精進湖からの富士山（<?php print $wk_y ; ?>年<?php print $wk_m ; ?>月）</a></li>
            <li class="breadcrumb-item active" aria-current="page"><?php print $PAGE_TITLE ; ?></li>
          </ol>
        </nav>
        <section class="module">
            <div class="container">
                <div class="row">
                   
                    <div class="col-lg-8 col-xl-9">
                    <div class="h2_title"><img src="../images/sub/icon7.svg" width="40">&nbsp;&nbsp;ライブカメラ</div>

					<section class="mt-3">
						<h3 class="h3_title_bordered mb-3"><?php print $PAGE_TITLE ; ?></h3>
						<img src="<?php print $arr_disp_file[0] ; ?>" name="精進湖ライブカメラ" title="精進湖ライブカメラ" alt="精進湖ライブカメラ" class="img-responsive img-responsive-center">
						<div class="text-center mt-2">
							<a href="http://www.fgo.jp/~rest/" target="_blank" class="btn btn-lg btn-download btn-blocks">精進湖レストハウス <i class="far fa-window-restore"></i> より</a>
						</div>

<?php
// 2022.08.03 start
if( 0 )
{
// 2022.01.31 start i-mobile
if( $device=="mobile" )
{
	// 1:i-mobile
//	if( 1 )
	if( $sm_ad_mode==1 )
	{
?>
<!-- /9176203,22484854615/1776050 SP ライブカメラ下レクタングル -->
<div id='div-gpt-ad-1643013197033-0' style='margin:auto;text-align:center;' class="mt-2">
  <script>
    googletag.cmd.push(function() { googletag.display('div-gpt-ad-1643013197033-0'); });
  </script>
</div>
<?php
	// 2:fluct
	}
	else
	{
?>
<!-- /62532913,22525286053/s_uty_300x250_livecamerashita-rectangle_27630 -->
<div id='div-gpt-ad-1645152762364-0' style='min-width: 300px; min-height: 250px;' class="mt-2">
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1645152762364-0'); });
</script>
</div>
<?php
	}
}
// 2022.01.31 end i-mobile
}
// 2022.08.03 end
?>


			<div class="livecam_contents">
				<div class="row">



<?php
	for( $i=1 ; $i<count( $arr_disp_file ) ; $i++ )
	{
		if( ( $i % 12 ) > 0 )
			continue ;
		$arr	=	explode( "/" , $arr_disp_file[$i] ) ;
		$wk		=	substr( $arr[4] , 1 , 15 ) ;
		$wk2	=	date( "H:i", filemtime( $arr_disp_file[$i] ) ) ;
?>
					<div class="col-4 col-sm-3">
<p class="mt-3">
<a href="<?php print $arr_disp_file[$i] ; ?>" class="popup-image" data-gallery="gallery"><img src="./get_thumbnail_shojiko.php?a=<?php print $wk ; ?>" name="精進湖からの富士山" title="精進湖からの富士山" alt="精進湖からの富士山" class="img-responsive img-responsive-center latest_img"></a>
</p>
<p class="text-center"><?php print $wk2 ; ?></p>
					</div>
<?php
		unset( $arr ) ;
	}
?>



				</div><!-- /row -->
			</div><!-- /livecam_contents -->
				<div class="row mt-5">
					<div class="col-12 text-center">
					<a href="./shojiko.php" class="btn btn-lg btn-download">現在の精進湖からの富士山</a>
					
					</div>
				</div>



					</section>

                    </div>
                    <div class="col-lg-4 col-xl-3">
<?php
					include( "./sub_aside.php" ) ;
?>
                              
                       </div>
                       </div>
                    </div>
        </section>
        </div>

<?php include("../common/footer.php"); ?>

        <!-- ========================= scroll-top ========================= -->
        <a href="#" class="scroll-top">
            <i class="fas fa-level-up-alt"></i>
        </a>

		<!-- ========================= JS here ========================= -->
		<script src="../assets/js/bootstrap.bundle-5.0.0.alpha-1-min.js"></script>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.2.0/jquery.magnific-popup.min.js"></script>
		<script src="../assets/js/wow.min.js"></script>
		<script src="../assets/js/main.js"></script>
   <script src="../assets/js/jquery.matchHeight.js"></script>
   <script src="../assets/js/jquery.sliderPro.min.js"></script>
   <script src="../assets/js/slick/slick.js"></script>
   <script>
      $(function() {
    $('.event_title').matchHeight();
                    $('.event_info').matchHeight();
    $('.link_list_footer').matchHeight();
          $('.sub_slider').slick({
            autoplay:true,
            arrows:false,
            autoplaySpeed:5000,
            dots:true,
            slidesToShow:1
            
});
  });
  $(function(){
$('.livecam_contents').magnificPopup({
type: 'image',
delegate: "a", 
gallery: {
    enabled: true, //ギャラリーを有効可
  },
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out'
}
});
});
    </script>
<?php
unset( $arr_disp_file ) ;
?>
    </body>
</html>
