forked from mgarciaisaia/faqoperativos-links
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<html> | ||
<head> | ||
<title>[email protected]</title> | ||
<style>tr:nth-child(even){ background-color: #DDD; }</style> | ||
</head> | ||
<body> | ||
<h1>[email protected]</h1> | ||
<h4>Porque el CSS es muy 2000's</h4> | ||
Las URLs de la tabla redirigen a sus destinos. Cualquiera de ellas puede usarse accediendo a <b>http://faq.utn.so/<i>${URL}</i></b>.<br /> | ||
Las redirecciones válidas <a href="https://github.com/sisoputnfrba/faqoperativos-links">se versionan en GitHub</a>. Los pull requests son bienvenidos. | ||
<table> | ||
<tr> | ||
<th>URL</th> | ||
<th>Destino</th> | ||
</tr> | ||
<?php | ||
$archivo = file(".htaccess"); | ||
foreach($archivo as $line_number => $line) { | ||
if(strpos($line, '#') === FALSE) { | ||
$parts = explode(' ', $line); | ||
if($parts[0] == "Redirect" && $parts[1] == "302") { ?> | ||
<tr> | ||
<td><a href="<?php echo $parts[3]; ?>"><?php echo $parts[2]; ?></a></td> | ||
<td><?php echo $parts[3]; ?></td> | ||
</tr><?php | ||
} | ||
} | ||
} | ||
?> | ||
</table> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
if(md5($_GET['key']) == $_ENV['FAQ_UTN_SO_SECRET']) { | ||
echo copy('https://raw.github.com/sisoputnfrba/faqoperativos-links/master/.htaccess', '.htaccess'); | ||
} | ||
?> | ||
|