forked from looma/Looma-II
-
Notifications
You must be signed in to change notification settings - Fork 0
/
looma-htmlBROKEN.php
executable file
·48 lines (39 loc) · 1.64 KB
/
looma-htmlBROKEN.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<!--
Name: Skip
Owner: VillageTech Solutions (villagetechsolutions.org)
Date: 2015 03
Revision: Looma 2.0.0
File: looma-html.php
Description: base page for showing HTML content. call with URL=looma.html.php?fp=filepath&fn=filename
-->
<?php $page_title = 'Looma HTML';
require_once ('includes/header.php');
require_once ('includes/looma-utilities.php');
logFiletypeHit('html');
?>
<link rel="stylesheet" href="css/looma-html.css">
</head>
<body>
<?php
$filename = $_REQUEST['fn']; //echo 'FN is ' . $filename;
$filepath = $_REQUEST['fp']; //echo 'FP is ' . $filepath;
//list($filepath, $filename) = getFPandFN();
if ( strpos($filepath, 'W4S2013')) logFiletypeHit('wikipedia');
else if ( strpos($filepath, 'PhET')) logFiletypeHit('PhET');
// next line commented. counting HTML hits is distorted by Wikipedia navigation
//else logFiletypeHit('html');
?>
<div id="main-container-horizontal">
<div id="fullscreen">
<?php
//$filepath = "/epaath/";
echo "trying to open " . $filepath . $filename; ?>
<!-- NOTE the iframe below has name='looma-frame', and wikipedia articles in looma have <a xxx.htm target="looma-frame" -->
<?php echo "<iframe id='iframe' name='looma-frame' src='$filepath$filename' allowfullscreen>" ?></iframe>
<?php include('includes/looma-control-buttons.php')?>
</div>
</div>
<?php include ('includes/toolbar.php'); ?>
<?php include ('includes/js-includes.php'); ?>
<script src="js/looma-html.js"></script>