Index: /trunk/install/php/showlibc.php
===================================================================
--- /trunk/install/php/showlibc.php (リビジョン 94)
+++ /trunk/install/php/showlibc.php (リビジョン 116)
@@ -237,5 +237,5 @@
   </tr>
   <tr>
-    <td><a href =\"$httpmediamappath/$tid.localized/mp4/$fName\" target=\"_blank\">$fName</A> / <script language=\"JavaScript\" type=\"text/javascript\">QT_WriteOBJECT_XHTML('http://g.hatena.ne.jp/images/podcasting.gif','16','16','','controller','FALSE','href','http://$serverfqdn/$httpmediamappath/$tid.localized/mp4/$fName','target','QuickTimePlayer','type','video/mp4');</script> $caplink</td>
+    <td><a href =\"$httpmediamappath/$tid.localized/mp4/$fName\" target=\"_blank\">$fName</A> / <a href=\"./mp4player.php?p=$pid\" target=\"_blank\">Player</a> / <script language=\"JavaScript\" type=\"text/javascript\">QT_WriteOBJECT_XHTML('http://g.hatena.ne.jp/images/podcasting.gif','16','16','','controller','FALSE','href','http://$serverfqdn/$httpmediamappath/$tid.localized/mp4/$fName','target','QuickTimePlayer','type','video/mp4');</script> $caplink</td>
   </tr>
 ";
Index: /trunk/install/php/mp4player.php
===================================================================
--- /trunk/install/php/mp4player.php (リビジョン 116)
+++ /trunk/install/php/mp4player.php (リビジョン 116)
@@ -0,0 +1,134 @@
+<?php
+/*
+ Anime recording system foltia
+ http://www.dcc-jpl.com/soft/foltia/
+
+mp4player.php
+
+���
+HTML5 Video Player��戎�c�MP4�����������
+based HTML5 Video Player | VideoJS http://videojs.com/ 
+
+綣��
+f:�������ゃ���
+ DCC-JPL Japan/foltia project
+
+*/
+
+include("./foltialib.php");
+$con = m_connect();
+
+if ($useenvironmentpolicy == 1){
+	if (!isset($_SERVER['PHP_AUTH_USER'])) {
+	    header("WWW-Authenticate: Basic realm=\"foltia\"");
+	    header("HTTP/1.0 401 Unauthorized");
+		redirectlogin();
+	    exit;
+	} else {
+	login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']);
+	}
+}//end if login
+
+$pid = getgetnumform(p);
+
+if ($pid != ""){
+$query = "
+SELECT title,countno,subtitle,foltia_subtitle.tid,PSPfilename  
+FROM foltia_subtitle,foltia_program 
+WHERE pid = ? AND foltia_subtitle.tid = foltia_program.tid";
+$rs = sql_query($con, $query, "DB������紊掩�������",array($pid));
+$rowdata = $rs->fetch();
+
+$title = htmlspecialchars(mb_convert_encoding($rowdata[0],"UTF-8", "EUC-JP"));
+	if ($rowdata[1] == ""){
+	$countno = "";
+	}else{
+	$countno = "膃�.htmlspecialchars($rowdata[1])."荅�;
+	}
+$subtitle = htmlspecialchars(mb_convert_encoding($rowdata[2],"UTF-8", "EUC-JP"));
+$tid =  htmlspecialchars($rowdata[3]);
+$filename = htmlspecialchars($rowdata[4]);
+
+}else{//綣���������弱���
+header("Status: 404 Not Found",TRUE,404);
+print "<!DOCTYPE html>
+<html>
+<head>
+  <meta charset=\"utf-8\" />\n";
+	print "  <title>foltia HTML5 Video Player</title></head><body>No pid.</body></html>";
+	exit ;
+}
+
+if ($filename == "") {//����ゃ�����������弱���header("Status: 404 Not Found",TRUE,404);
+print "<!DOCTYPE html>
+<html>
+<head>
+  <meta charset=\"utf-8\" />\n";
+	print "  <title>foltia HTML5 Video Player</title></head><body>File not found.</body></html>";
+	exit ;
+}
+
+
+print "<!DOCTYPE html>\n<html>\n<head><meta charset=\"utf-8\" />\n\n
+<title>foltia HTML5 Video Player / $title $countno $subtitle</title>\n";
+$mp4videofileurl =  "http://". getserverfqdn() ."$httpmediamappath/$tid.localized/mp4/$filename";
+?>
+
+
+
+  <!-- Include the VideoJS Library -->
+  <script src="./video-js/video.js" type="text/javascript" charset="utf-8"></script>
+
+  <script type="text/javascript" charset="utf-8">
+    // Run the script on page load.
+
+    // If using jQuery
+    // $(function(){
+    //   VideoJS.setup();
+    // })
+
+    // If using Prototype
+    // document.observe("dom:loaded", function() {
+    //   VideoJS.setup();
+    // });
+
+    // If not using a JS library
+    window.onload = function(){
+      VideoJS.setup();
+    }
+
+  </script>
+  <!-- Include the VideoJS Stylesheet -->
+  <link rel="stylesheet" href="./video-js/video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8">
+</head>
+<body>
+
+<?php
+print "
+  <!-- Begin VideoJS -->
+  <div class=\"video-js-box\">
+    <!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
+    <video class=\"video-js\" width=\"480\" height=\"272\" poster=\"./img/videoplayer.png\" controls preload>
+	  <source src=\"$mp4videofileurl\" type='video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"'>
+      <!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
+      <object class=\"vjs-flash-fallback\" width=\"480\" height=\"272\" type=\"application/x-shockwave-flash\"
+        data=\"http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf\">
+        <param name=\"movie\" value=\"http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf\" />
+        <param name=\"allowfullscreen\" value=\"true\" />
+        <param name=\"flashvars\" value='config={\"clip\":{\"url\":\"$mp4videofileurl\",\"autoPlay\":false,\"autoBuffering\":true}}' />
+        <!-- Image Fallback -->
+        <img src=\"./img/videoplayer.png\" width=\"640\" height=\"264\" alt=\"Poster Image\"
+          title=\"No video playback capabilities.\" />
+      </object>
+    </video>
+    <!-- Download links provided for devices that can't play video in the browser. -->
+    <p class=\"vjs-no-video\"><strong>Download Video:</strong>
+      <!-- Support VideoJS by keeping this link. -->
+      <a href=\"http://videojs.com\">HTML5 Video Player</a> by <a href=\"http://videojs.com\">VideoJS</a>
+    </p>
+  </div>
+  <!-- End VideoJS -->
+"
+?>
+</body>
+</html>