Added projects, updated names
This commit is contained in:
50
Python Projects/other/MiniRoll/resources/cgi-bin/lastSearch.cgi
Executable file
50
Python Projects/other/MiniRoll/resources/cgi-bin/lastSearch.cgi
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/bin/bash
|
||||
|
||||
check()
|
||||
{
|
||||
start
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
if [[ -f ../tmp/list.html ]]
|
||||
then
|
||||
pre;
|
||||
echo "<meta http-equiv='refresh' content='0;URL=../tmp/list.html'>"
|
||||
post;
|
||||
elif [[ -f ../tmp/alist.html ]]
|
||||
then
|
||||
pre;
|
||||
echo "<meta http-equiv='refresh' content='0;URL=../tmp/alist.html'>"
|
||||
post;
|
||||
|
||||
elif [[ ! -f ../tmp/aList.html && ! -f ../tmp/alist.html ]]
|
||||
then
|
||||
pre;
|
||||
echo "<meta http-equiv='refresh' content='1;URL=../index.html'>"
|
||||
echo "</head>"
|
||||
echo "<body style='background-color:#000000'>"
|
||||
echo -e "<center><font color='#FFFFFF'>No Last Search... \n Loading Home...</font></center>"
|
||||
echo "<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
|
||||
echo "</body>"
|
||||
echo "</html>"
|
||||
fi
|
||||
}
|
||||
pre()
|
||||
{
|
||||
echo "Content-type: text/html"
|
||||
echo ""
|
||||
echo "<html>"
|
||||
echo "<head>"
|
||||
echo "<title>Loading...</title>"
|
||||
}
|
||||
post()
|
||||
{
|
||||
echo "</head>"
|
||||
echo "<body style='background-color:#000000'>"
|
||||
echo -e "<center><font color='#FFFFFF'>Loading Last Search...</font></center>"
|
||||
echo "<img style='width:30em;height:30em;margin-left:50%;margin-top:15%;' src='../icons/loading.gif'></img>"
|
||||
echo "</body>"
|
||||
echo "</html>"
|
||||
}
|
||||
check
|
Reference in New Issue
Block a user