|
@@ -0,0 +1,26 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$path = $_GET["path"];
|
|
|
+$raiz= "comp/";
|
|
|
+$cant= strlen($raiz);
|
|
|
+$dirs = glob($raiz."*");//
|
|
|
+
|
|
|
+echo "<table align='left' border=2>";
|
|
|
+echo "<tr><td align=center><b><a>Lista de Commits</a></b></td></tr>";
|
|
|
+for ($i=0; $i<count($dirs); $i++)
|
|
|
+{
|
|
|
+ $dir = substr($dirs[$i],$cant);
|
|
|
+ echo '<tr><td><a href=http://localhost/imagenes.php?path='.$dir.'><font size="3" face="arial">'.$dir.'</font></a></td></tr>';
|
|
|
+}
|
|
|
+echo "</table>";
|
|
|
+echo "<h3 align=center style='color: brown;font-family: courier;'>Comp commit: <u>" . $path . "</u></h3>";
|
|
|
+
|
|
|
+echo "<table align='right' border=1>";
|
|
|
+$files = glob("comp/".$path."/*/*.*");
|
|
|
+
|
|
|
+for ($i=0; $i<count($files); $i++)
|
|
|
+ {
|
|
|
+ $num = $files[$i];
|
|
|
+ echo '<tr><a href='.$num.'><img src="'.$num.'" alt="random image" height="150" width="150"></a>'." </tr>";
|
|
|
+ }
|
|
|
+echo "</table>";
|