-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlearn.php
executable file
·36 lines (35 loc) · 1.07 KB
/
learn.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
<?php
session_start();
if(!isset($_SESSION['authenticated']) || !$_SESSION['authenticated']){
header("Location:login.php");
}
?>
<?php require_once 'header.php'; ?>
<div class="highlight-posts">
<section role="main">
<article id="post-of-the-day">
<header>
<h1 class="post-title">
<a title="Song of the Day">
Sheet Music
</a>
</h1>
</header>
</article>
</section>
</div>
<div class="learn-wrapper">
<?php
$directory = "pdfcontent/*.pdf";
$files = glob($directory);
$i=0;
foreach($files as $file){?>
<div class="file" id="<?php $i;?>">
<iframe class="pdf-learn-object-container" src="
<?php print($file);?>">
Sorry, your browser isn't compatible with this pdf viewer.
</iframe>
</div>
<?php $i++;} ?>
</div>
<?php require_once 'footer.php'; ?>