ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
package.php
Go to the documentation of this file.
1 <?php
2 include_once "includes/header.php";
3 include_once "includes/navbar.php";
4 ?>
5 <p>
6 Source Listing:
7 </p>
8 <ul>
9  <?php
10  chdir("../");
11  $files = glob("*.php");
12  $files = array_merge($files, glob("util/*.php"));
13  foreach ($files as $fileName) {
14  ?>
15  <li><a href="package.php?view=<?php echo sha1($fileName);?>"><?php echo $fileName;?></a>&nbsp;-&nbsp;<?php echo date ("F d Y - g:i a", filemtime($fileName));?></li>
16  <?php
17  }
18  ?>
19 </ul>
20 <?php
21 if( isset($_REQUEST['view']) ) {
22  $hash = $_REQUEST['view'];
23  $n = array_search($hash, array_map(sha1, $files));
24  $fileName = $files[$n];
25  ?>
26  <hr />
27  Viewing: <?php echo $fileName;?>
28  <hr />
29  <?php
30  highlight_file($fileName);
31  ?>
32  <hr />
33 <?php
34 }
35 include_once "includes/footer.php";
36 ?>
37