コード例 #1
0
ファイル: h5ai-index.php プロジェクト: rsertelon/h5ai
    if (!file_exists($h5ai_php)) {
        function find_h5ai($path, $h5ai)
        {
            if (file_exists($path . $h5ai)) {
                return $path . $h5ai;
            }
            $parent = str_replace("\\", "/", dirname($path));
            if ($parent !== $path) {
                return find_h5ai($parent, $h5ai);
            }
            error_log("h5ai not found: " . __FILE__);
        }
        $h5ai_php = find_h5ai(str_replace("\\", "/", dirname(__FILE__)), "/_h5ai/php/inc/H5ai.php");
    }
    require_once $h5ai_php;
    $h5ai = new H5ai(__FILE__);
    echo $h5ai->getGenericJson();
}
?>
	</div>
	<div id="data-php-no-js-fallback" class="hideOnJs">
		<?php 
if (stripos($_SERVER["REQUEST_METHOD"], "HEAD") === false) {
    echo $h5ai->getNoJsFallback();
}
?>
	</div>
	<script src="/_h5ai/config.js"></script>
	<script src="/_h5ai/js/scripts.js"></script>
</body>
</html>