Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "content-type: text/plain"
- echo ""
- echo ""
- echo "<html>"
- echo "<head>"
- echo "<title>Área de Download</title>"
- echo "</head>"
- echo "<body>"
- DIR=`pwd`
- echo "Listagem dos arquivos para download do diretório ${DIR##/*public_html*/} - CPG"
- echo "=================================INÍCIO====================================="
- for LS in *
- do
- echo "<A HREF="http://meusite.com.br/${DIR##/*public_html*/}/${LS}"></A>"\n
- done
- echo "==================================FIM======================================"
- echo `date +%A" - "%d" de "%B" de "%G" às "%H":"%M`
- echo "</body>"
- echo "</html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement