|
@@ -19,21 +19,18 @@ $adapter = new AwsS3Adapter($client, 'comparaciones');
|
|
|
|
|
|
$filesystem = new Filesystem($adapter);
|
|
|
|
|
|
-
|
|
|
$path = $_GET["path"];
|
|
|
-$raiz= "comp/";
|
|
|
-$cant= strlen($raiz);
|
|
|
|
|
|
$contents = $filesystem->listContents("/");
|
|
|
-
|
|
|
$dirs = array();
|
|
|
+
|
|
|
foreach($contents as $cont){
|
|
|
$dirs[] = $cont["path"];
|
|
|
}
|
|
|
+
|
|
|
$dirs = array_reverse($dirs);
|
|
|
-//$dirs = glob($raiz."*");//
|
|
|
|
|
|
-echo "<table align='left' border=2>";
|
|
|
+echo "<table align='left' border=1>";
|
|
|
echo "<tr><td align=center><b><a>Lista de Commits</a></b></td></tr>";
|
|
|
for ($i=0; $i<count($dirs); $i++)
|
|
|
{
|
|
@@ -42,6 +39,13 @@ for ($i=0; $i<count($dirs); $i++)
|
|
|
echo '<tr><td><a href=imagenes.php?path='.$dir.'><font size="3" face="arial">'.$dir.'</font></a></td></tr>';
|
|
|
}
|
|
|
echo "</table>";
|
|
|
+
|
|
|
+if($path == ""){
|
|
|
+
|
|
|
+echo "<h3 align=center style='color: brown;font-family: courier;'>Seleccionar un commit</h3>";
|
|
|
+}
|
|
|
+else{
|
|
|
+
|
|
|
echo "<h3 align=center style='color: brown;font-family: courier;'>Comp commit: <u>" . $path . "</u></h3>";
|
|
|
|
|
|
echo "<table align='right' border=1>";
|
|
@@ -55,9 +59,6 @@ foreach($fscont as $cont){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-//$files = glob("comp/".$path."/*/*.*");
|
|
|
-
|
|
|
echo "<tr>";
|
|
|
for ($i=0; $i<count($files); $i++)
|
|
|
{
|
|
@@ -67,4 +68,4 @@ for ($i=0; $i<count($files); $i++)
|
|
|
}
|
|
|
echo "</tr>";
|
|
|
echo "</table>";
|
|
|
-//echo ($_SERVER['PATH_INFO']);
|
|
|
+}
|