[Commits] [svn:einsteintoolkit] www/documentation/ThornDoc/ (Rev. 1130)

ian.hinder at aei.mpg.de ian.hinder at aei.mpg.de
Thu Mar 13 12:08:03 CDT 2014


User: hinder
Date: 2014/03/13 12:08 PM

Added:
 /documentation/ThornDoc/
  .htaccess, index.php

Log:
 Add .htaccess and index.php

File Changes:

Directory: /documentation/ThornDoc/
===================================

File [added]: .htaccess
Delta lines: +1 -0
===================================================================
--- documentation/ThornDoc/.htaccess	                        (rev 0)
+++ documentation/ThornDoc/.htaccess	2014-03-13 17:08:03 UTC (rev 1130)
@@ -0,0 +1 @@
+DirectoryIndex documentation.html index.html index.php

File [added]: index.php
Delta lines: +61 -0
===================================================================
--- documentation/ThornDoc/index.php	                        (rev 0)
+++ documentation/ThornDoc/index.php	2014-03-13 17:08:03 UTC (rev 1130)
@@ -0,0 +1,61 @@
+<html>
+<head>
+<title>Einstein Toolkit Thorn Documentation</title>
+</head>
+<body>
+
+<!-- <script> -->
+<!--   (function() { -->
+<!--     var cx = '010633638434495175530:drikheaxmhi'; -->
+<!--     var gcse = document.createElement('script'); -->
+<!--     gcse.type = 'text/javascript'; -->
+<!--     gcse.async = true; -->
+<!--     gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + -->
+<!--         '//www.google.com/cse/cse.js?cx=' + cx; -->
+<!--     var s = document.getElementsByTagName('script')[0]; -->
+<!--     s.parentNode.insertBefore(gcse, s); -->
+<!--   })(); -->
+<!-- </script> -->
+
+<?php $title='Documentation';
+include_once($_SERVER['DOCUMENT_ROOT'].'/global/header.php'); ?>
+
+<gcse:search></gcse:search>
+<h4>Arrangements</h4>
+
+<?php
+
+   $arrangementlist = glob("*/documentation.html");
+
+   echo "<ul>";
+   foreach($arrangementlist as $arrangement)
+   {
+     $arr = dirname($arrangement);
+     echo "<li class=\"doclist\"><a href='$arr'>$arr</a></li>";
+   }
+   echo "</ul>";
+
+   $thorns = glob("*/*", GLOB_ONLYDIR);
+
+   $arrangements = array();
+   foreach($thorns as $thorn_path)
+   {
+     $thorn = basename($thorn_path);
+     $arrangement = dirname($thorn_path);
+     $arrangements[$arrangement][] = $thorn;
+   }
+
+   foreach($arrangements as $name => $arrangement)
+   {
+     echo "<h4>$name</h4>\n";
+     echo "<ul>";
+     foreach($arrangement as $thorn)
+     {
+       echo "<li class=\"doclist\"><a href='$name/$thorn'>$thorn</a></li>\n";
+     }
+     echo "</ul>";
+   }
+?>
+
+</body>
+</html>



More information about the Commits mailing list