Advertisement
Guest User

CGI Bash V 1.0/ Wagner Brasileiro

a guest
Jul 2nd, 2010
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. #!/bin/bash
  2. echo "content-type: text/plain"
  3. echo ""
  4. echo ""
  5. echo "<html>"
  6. echo "<head>"
  7. echo "<title>&Aacute;rea de Download</title>"
  8. echo "</head>"
  9. echo "<body>"
  10. DIR=`pwd`
  11.  
  12. echo "Listagem dos arquivos para download do diretório ${DIR##/*public_html*/} - CPG"
  13. echo "=================================INÍCIO====================================="
  14.  
  15. for LS in *
  16. do
  17. echo "<A HREF="http://meusite.com.br/${DIR##/*public_html*/}/${LS}"></A>"\n
  18.  
  19. done
  20.  
  21. echo "==================================FIM======================================"
  22. echo `date +%A" - "%d" de "%B" de "%G" às "%H":"%M`
  23.  
  24. echo "</body>"
  25. echo "</html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement