소스 검색

imagenes commit

Fernando Alonso 8 년 전
부모
커밋
da1b493270
2개의 변경된 파일12개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 1
      behat/testScreenshot/gitHead.php
  2. 11 10
      behat/testScreenshot/tests/imagenes.php

+ 1 - 1
behat/testScreenshot/gitHead.php

@@ -22,6 +22,6 @@ echo $hora."\n".$fecha . "\n";
 */
 //require "vendor/hipchat/hipchat-php/src/HipChat/HipChat.php";
 //	shell_exec('./hip.sh');
-echo ($_SERVER['PATH_INFO']);
+echo __DIR__."\n";
 
 

+ 11 - 10
behat/testScreenshot/tests/imagenes.php

@@ -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']);
+}