Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #######################
- ###Free License #######
- #Powered by SyjON######
- #######################
- #rm -f $_workDir/freshList.txt
- #curl -s http://account.lineage2gaming.com/raid.php >> $_workDir/freshList.txt
- _workDir=/home/pbl/botrb/test
- cp /home/pbl/botrb/freshList.txt /home/pbl/botrb/test/freshList.txt
- #Formated Date
- _formatedDateSystem=$(date -d +8hours +"%m-%d %H:%M")
- _formatedDateSystemSpecial=$(date -d +690minutes +"%m-%d %H:%M")
- _formatedDateSystemSubclass=$(date -d +4hours +"%m-%d %H:%M")
- _lastUpdate=$(date +"%m-%d %H:%M")
- #Source Date
- _sourceDateNormal=$(date -d +8hours +"%s")
- _sourceDateSystem=$(date +"%s")
- _sourceDateSpecial=$(date -d +690minutes +"%s")
- _sourceDateSubclass=$(date -d +4hours +"%s")
- #########################
- ### CREATE WEBSTIE PAGE
- ##########################
- rm -f /home/pbl/public_html/siteRB2.html
- echo "Last Update - <strong>$_lastUpdate</strong>" > $_workDir/last.Update
- cat $_workDir/startpage.txt >> /home/pbl/public_html/siteRB2.html
- cat $_workDir/last.Update >> /home/pbl/public_html/siteRB2.html
- #############################################
- ### NORMAL BOSSES
- #############################################
- echo "<tr><td><strong>Custom Bosses </td><td><font color='red'></font></td><td><font color='green'></font></td></tr>" > $_workDir/aacustom.normal
- _Amber=`cat $_workDir/freshList.txt | grep -A 1 Amber | grep On | wc -l`
- if [[($_Amber = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Amber.date
- echo "$_formatedDateSystem" > $_workDir/Amber.formateddate
- echo "<tr><td>Ember</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Amber.normal
- else
- _sourceDateNormal=`cat $_workDir/Amber.date`
- _formatedDateRemeber=`cat $_workDir/Amber.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Ember</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Amber.normal
- else
- echo "<tr><td>Ember</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Amber.normal
- fi
- fi
- _Anais=`cat $_workDir/freshList.txt | grep -A 1 Anais | grep On | wc -l`
- if [[($_Anais = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Anais.date
- echo "$_formatedDateSystem" > $_workDir/Anais.formateddate
- echo "<tr><td>Anais</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Anais.normal
- else
- _sourceDateNormal=`cat $_workDir/Anais.date`
- _formatedDateRemeber=`cat $_workDir/Anais.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Anais</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Anais.normal
- else
- echo "<tr><td>Anais</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Anais.normal
- fi
- fi
- _Decarbia=`cat $_workDir/freshList.txt | grep -A 1 Decarbia | grep On | wc -l`
- if [[($_Decarbia = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Decarbia.date
- echo "$_formatedDateSystem" > $_workDir/Decarbia.formateddate
- echo "<tr><td>Decarbia</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Decarbia.normal
- else
- _sourceDateNormal=`cat $_workDir/Decarbia.date`
- _formatedDateRemeber=`cat $_workDir/Decarbia.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Decarbia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Decarbia.normal
- else
- echo "<tr><td>Decarbia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Decarbia.normal
- fi
- fi
- _Vermilion=`cat $_workDir/freshList.txt | grep -A 1 Vermilion | grep On | wc -l`
- if [[($_Vermilion = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Vermilion.date
- echo "$_formatedDateSystem" > $_workDir/Vermilion.formateddate
- echo "<tr><td>Vermilion</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Vermilion.normal
- else
- _sourceDateNormal=`cat $_workDir/Vermilion.date`
- _formatedDateRemeber=`cat $_workDir/Vermilion.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Vermilion</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Vermilion.normal
- else
- echo "<tr><td>Vermilion</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Vermilion.normal
- fi
- fi
- _Hundred=`cat $_workDir/freshList.txt | grep -A 1 Hundred | grep On | wc -l`
- if [[($_Hundred = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Hundred.date
- echo "$_formatedDateSystem" > $_workDir/Hundred.formateddate
- echo "<tr><td>Hundred</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Hundred.normal
- else
- _sourceDateNormal=`cat $_workDir/Hundred.date`
- _formatedDateRemeber=`cat $_workDir/Hundred.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Hundred</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Hundred.normal
- else
- echo "<tr><td>Hundred</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Hundred.normal
- fi
- fi
- _Golem=`cat $_workDir/freshList.txt | grep -A 1 Golem | grep On | wc -l`
- if [[($_Golem = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Golem.date
- echo "$_formatedDateSystem" > $_workDir/Golem.formateddate
- echo "<tr><td>Golem</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Golem.normal
- else
- _sourceDateNormal=`cat $_workDir/Golem.date`
- _formatedDateRemeber=`cat $_workDir/Golem.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Golem</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Golem.normal
- else
- echo "<tr><td>Golem</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Golem.normal
- fi
- fi
- _Hekaton=`cat $_workDir/freshList.txt | grep -A 1 "Hekaton Prime" | grep On | wc -l`
- if [[($_Hekaton = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Hekaton.date
- echo "$_formatedDateSystem" > $_workDir/Hekaton.formateddate
- echo "<tr><td>Hekaton</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Hekaton.normal
- else
- _sourceDateNormal=`cat $_workDir/Hekaton.date`
- _formatedDateRemeber=`cat $_workDir/Hekaton.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Hekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Hekaton.normal
- else
- echo "<tr><td>Hekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Hekaton.normal
- fi
- fi
- _Ipos=`cat $_workDir/freshList.txt | grep -A 1 Ipos | grep On | wc -l`
- if [[($_Ipos = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Ipos.date
- echo "$_formatedDateSystem" > $_workDir/Ipos.formateddate
- echo "<tr><td>Ipos</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Ipos.normal
- else
- _sourceDateNormal=`cat $_workDir/Ipos.date`
- _formatedDateRemeber=`cat $_workDir/Ipos.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Ipos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Ipos.normal
- else
- echo "<tr><td>Ipos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Ipos.normal
- fi
- fi
- _Brakki=`cat $_workDir/freshList.txt | grep -A 1 Brakki | grep On | wc -l`
- if [[($_Brakki = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Brakki.date
- echo "$_formatedDateSystem" > $_workDir/Brakki.formateddate
- echo "<tr><td>Brakki</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Brakki.normal
- else
- _sourceDateNormal=`cat $_workDir/Brakki.date`
- _formatedDateRemeber=`cat $_workDir/Brakki.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Brakki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Brakki.normal
- else
- echo "<tr><td>Brakki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Brakki.normal
- fi
- fi
- _Tayr=`cat $_workDir/freshList.txt | grep -A 1 Tayr | grep On | wc -l`
- if [[($_Tayr = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Tayr.date
- echo "$_formatedDateSystem" > $_workDir/Tayr.formateddate
- echo "<tr><td>Tayr</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Tayr.normal
- else
- _sourceDateNormal=`cat $_workDir/Tayr.date`
- _formatedDateRemeber=`cat $_workDir/Tayr.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Tayr</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Tayr.normal
- else
- echo "<tr><td>Tayr</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Tayr.normal
- fi
- fi
- _KetraHeroHekaton=`cat $_workDir/freshList.txt | grep -A 1 "Ketra Hero Hekaton" | grep On | wc -l`
- if [[($_KetraHeroHekaton = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/KetraHeroHekaton.date
- echo "$_formatedDateSystem" > $_workDir/KetraHeroHekaton.formateddate
- echo "<tr><td>KetraHeroHekaton</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/KetraHeroHekaton.normal
- else
- _sourceDateNormal=`cat $_workDir/KetraHeroHekaton.date`
- _formatedDateRemeber=`cat $_workDir/KetraHeroHekaton.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>KetraHeroHekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/KetraHeroHekaton.normal
- else
- echo "<tr><td>KetraHeroHekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/KetraHeroHekaton.normal
- fi
- fi
- _Glaki=`cat $_workDir/freshList.txt | grep -A 1 Glaki | grep On | wc -l`
- if [[($_Glaki = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Glaki.date
- echo "$_formatedDateSystem" > $_workDir/Glaki.formateddate
- echo "<tr><td>Glaki</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Glaki.normal
- else
- _sourceDateNormal=`cat $_workDir/Glaki.date`
- _formatedDateRemeber=`cat $_workDir/Glaki.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Glaki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Glaki.normal
- else
- echo "<tr><td>Glaki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Glaki.normal
- fi
- fi
- _Olkuth=`cat $_workDir/freshList.txt | grep -A 1 Olkuth | grep On | wc -l`
- if [[($_Olkuth = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Olkuth.date
- echo "$_formatedDateSystem" > $_workDir/Olkuth.formateddate
- echo "<tr><td>Olkuth</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Olkuth.normal
- else
- _sourceDateNormal=`cat $_workDir/Olkuth.date`
- _formatedDateRemeber=`cat $_workDir/Olkuth.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Olkuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Olkuth.normal
- else
- echo "<tr><td>Olkuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Olkuth.normal
- fi
- fi
- _Ashakiel=`cat $_workDir/freshList.txt | grep -A 1 Ashakiel | grep On | wc -l`
- if [[($_Ashakiel = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Ashakiel.date
- echo "$_formatedDateSystem" > $_workDir/Ashakiel.formateddate
- echo "<tr><td>Ashakiel</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Ashakiel.normal
- else
- _sourceDateNormal=`cat $_workDir/Ashakiel.date`
- _formatedDateRemeber=`cat $_workDir/Ashakiel.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Ashakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Ashakiel.normal
- else
- echo "<tr><td>Ashakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Ashakiel.normal
- fi
- fi
- _Naga=`cat $_workDir/freshList.txt | grep -A 1 Naga | grep On | wc -l`
- if [[($_Naga = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Naga.date
- echo "$_formatedDateSystem" > $_workDir/Naga.formateddate
- echo "<tr><td>Naga</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Naga.normal
- else
- _sourceDateNormal=`cat $_workDir/Naga.date`
- _formatedDateRemeber=`cat $_workDir/Naga.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Naga</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Naga.normal
- else
- echo "<tr><td>Naga</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Naga.normal
- fi
- fi
- _Andreas=`cat $_workDir/freshList.txt | grep -A 1 Andreas | grep On | wc -l`
- if [[($_Andreas = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Andreas.date
- echo "$_formatedDateSystem" > $_workDir/Andreas.formateddate
- echo "<tr><td>Andreas</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Andreas.normal
- else
- _sourceDateNormal=`cat $_workDir/Andreas.date`
- _formatedDateRemeber=`cat $_workDir/Andreas.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Andreas</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Andreas.normal
- else
- echo "<tr><td>Andreas</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Andreas.normal
- fi
- fi
- _Uruka=`cat $_workDir/freshList.txt | grep -A 1 Uruka | grep On | wc -l`
- if [[($_Uruka = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Uruka.date
- echo "$_formatedDateSystem" > $_workDir/Uruka.formateddate
- echo "<tr><td>Uruka</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Uruka.normal
- else
- _sourceDateNormal=`cat $_workDir/Uruka.date`
- _formatedDateRemeber=`cat $_workDir/Uruka.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Uruka</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Uruka.normal
- else
- echo "<tr><td>Uruka</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Uruka.normal
- fi
- fi
- _Horuth=`cat $_workDir/freshList.txt | grep -A 1 Horuth | grep On | wc -l`
- if [[($_Horuth = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Horuth.date
- echo "$_formatedDateSystem" > $_workDir/Horuth.formateddate
- echo "<tr><td>Horuth</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Horuth.normal
- else
- _sourceDateNormal=`cat $_workDir/Horuth.date`
- _formatedDateRemeber=`cat $_workDir/Horuth.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Horuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Horuth.normal
- else
- echo "<tr><td>Horuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Horuth.normal
- fi
- fi
- _Mos=`cat $_workDir/freshList.txt | grep -A 1 Mos | grep On | wc -l`
- if [[($_Mos = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Mos.date
- echo "$_formatedDateSystem" > $_workDir/Mos.formateddate
- echo "<tr><td>Mos</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Mos.normal
- else
- _sourceDateNormal=`cat $_workDir/Mos.date`
- _formatedDateRemeber=`cat $_workDir/Mos.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Mos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Mos.normal
- else
- echo "<tr><td>Mos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Mos.normal
- fi
- fi
- _Shadith=`cat $_workDir/freshList.txt | grep -A 1 Shadith | grep On | wc -l`
- if [[($_Shadith = 1)]]
- then
- echo "$_sourceDateNormal" > $_workDir/Shadith.date
- echo "$_formatedDateSystem" > $_workDir/Shadith.formateddate
- echo "<tr><td>Shadith</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Shadith.normal
- else
- _sourceDateNormal=`cat $_workDir/Shadith.date`
- _formatedDateRemeber=`cat $_workDir/Shadith.formateddate`
- diff=$(($_sourceDateNormal-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Shadith</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Shadith.normal
- else
- echo "<tr><td>Shadith</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Shadith.normal
- fi
- fi
- ###########################################
- #### SPECIAL BOSSES
- ###########################################
- echo "<tr><td><strong>Special Bosses </td><td><font color='red'></font></td><td><font color='green'></font></td></tr>" > $_workDir/aaspecial.special
- _Ramdal=`cat $_workDir/freshList.txt | grep -A 1 Ramdal | grep On | wc -l`
- if [[($_Ramdal = 1)]]
- then
- echo "$_sourceDateSpecial" > $_workDir/Ramdal.date
- echo "$_formatedDateSystemSpecial" > $_workDir/Ramdal.formateddate
- echo "<tr><td>Ramdal</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Ramdal.special
- else
- _sourceDateSpecial=`cat $_workDir/Ramdal.date`
- _formatedDateRemeber=`cat $_workDir/Ramdal.formateddate`
- diff=$(($_sourceDateSpecial-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Ramdal</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Ramdal.special
- else
- echo "<tr><td>Ramdal</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Ramdal.special
- fi
- fi
- _Korim=`cat $_workDir/freshList.txt | grep -A 1 Korim | grep On | wc -l`
- if [[($_Korim = 1)]]
- then
- echo "$_sourceDateSpecial" > $_workDir/Korim.date
- echo "$_formatedDateSystemSpecial" > $_workDir/Korim.formateddate
- echo "<tr><td>Korim</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Korim.special
- else
- _sourceDateSpecial=`cat $_workDir/Korim.date`
- _formatedDateRemeber=`cat $_workDir/Korim.formateddate`
- diff=$(($_sourceDateSpecial-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Korim</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Korim.special
- else
- echo "<tr><td>Korim</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Korim.special
- fi
- fi
- _Shuriel=`cat $_workDir/freshList.txt | grep -A 1 Shuriel | grep On | wc -l`
- if [[($_Shuriel = 1)]]
- then
- echo "$_sourceDateSpecial" > $_workDir/Shuriel.date
- echo "$_formatedDateSystemSpecial" > $_workDir/Shuriel.formateddate
- echo "<tr><td>Shuriel</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Shuriel.special
- else
- _sourceDateSpecial=`cat $_workDir/Shuriel.date`
- _formatedDateRemeber=`cat $_workDir/Shuriel.formateddate`
- diff=$(($_sourceDateSpecial-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Shuriel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Shuriel.special
- else
- echo "<tr><td>Shuriel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Shuriel.special
- fi
- fi
- _Cherub=`cat $_workDir/freshList.txt | grep -A 1 Cherub | grep On | wc -l`
- if [[($_Cherub = 1)]]
- then
- echo "$_sourceDateSpecial" > $_workDir/Cherub.date
- echo "$_formatedDateSystemSpecial" > $_workDir/Cherub.formateddate
- echo "<tr><td>Galaxia</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Cherub.special
- else
- _sourceDateSpecial=`cat $_workDir/Cherub.date`
- _formatedDateRemeber=`cat $_workDir/Cherub.formateddate`
- diff=$(($_sourceDateSpecial-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Galaxia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Cherub.special
- else
- echo "<tr><td>Galaxia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Cherub.special
- fi
- fi
- _Rudelto=`cat $_workDir/freshList.txt | grep -A 1 Rudelto | grep On | wc -l`
- if [[($_Rudelto = 1)]]
- then
- echo "$_sourceDateSpecial" > $_workDir/Rudelto.date
- echo "$_formatedDateSystemSpecial" > $_workDir/Rudelto.formateddate
- echo "<tr><td>Rudelto</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Rudelto.special
- else
- _sourceDateSpecial=`cat $_workDir/Rudelto.date`
- _formatedDateRemeber=`cat $_workDir/Rudelto.formateddate`
- diff=$(($_sourceDateSpecial-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Rudelto</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Rudelto.special
- else
- echo "<tr><td>Rudelto</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Rudelto.special
- fi
- fi
- _Cloe=`cat $_workDir/freshList.txt | grep -A 1 Cloe | grep On | wc -l`
- if [[($_Cloe = 1)]]
- then
- echo "$_sourceDateSpecial" > $_workDir/Cloe.date
- echo "$_formatedDateSystemSpecial" > $_workDir/Cloe.formateddate
- echo "<tr><td>Cloe</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Cloe.special
- else
- _sourceDateSpecial=`cat $_workDir/Cloe.date`
- _formatedDateRemeber=`cat $_workDir/Cloe.formateddate`
- diff=$(($_sourceDateSpecial-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Cloe</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Cloe.special
- else
- echo "<tr><td>Cloe</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Cloe.special
- fi
- fi
- #####################################
- #### SUBCLASS BOSSES
- ######################################
- echo "<tr><td><strong>Subclass Bosses </td><td><font color='red'></font></td><td><font color='red'></font></td></tr>" > $_workDir/aasubclass.subclass
- _Kernon=`cat $_workDir/freshList.txt | grep -A 1 Kernon | grep On | wc -l`
- if [[($_Kernon = 1)]]
- then
- echo "$_sourceDateSubclass" > $_workDir/Kernon.date
- echo "$_formatedDateSystemSubclass" > $_workDir/Kernon.formateddate
- echo "<tr><td>Kernon</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Kernon.subclass
- else
- _sourceDateSubclass=`cat $_workDir/Kernon.date`
- _formatedDateRemeber=`cat $_workDir/Kernon.formateddate`
- diff=$(($_sourceDateSubclass-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Kernon</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Kernon.subclass
- else
- echo "<tr><td>Kernon</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Kernon.subclass
- fi
- fi
- _Golkonda=`cat $_workDir/freshList.txt | grep -A 1 Golkonda | grep On | wc -l`
- if [[($_Golkonda = 1)]]
- then
- echo "$_sourceDateSubclass" > $_workDir/Golkonda.date
- echo "$_formatedDateSystemSubclass" > $_workDir/Golkonda.formateddate
- echo "<tr><td>Golkonda</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Golkonda.subclass
- else
- _sourceDateSubclass=`cat $_workDir/Golkonda.date`
- _formatedDateRemeber=`cat $_workDir/Golkonda.formateddate`
- diff=$(($_sourceDateSubclass-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Golkonda</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Golkonda.subclass
- else
- echo "<tr><td>Golkonda</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Golkonda.subclass
- fi
- fi
- _Barakiel=`cat $_workDir/freshList.txt | grep -A 1 Barakiel | grep On | wc -l`
- if [[($_Barakiel = 1)]]
- then
- echo "$_sourceDateSubclass" > $_workDir/Barakiel.date
- echo "$_formatedDateSystemSubclass" > $_workDir/Barakiel.formateddate
- echo "<tr><td>Barakiel</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Barakiel.subclass
- else
- _sourceDateSubclass=`cat $_workDir/Barakiel.date`
- _formatedDateRemeber=`cat $_workDir/Barakiel.formateddate`
- diff=$(($_sourceDateSubclass-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Barakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Barakiel.subclass
- else
- echo "<tr><td>Barakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Barakiel.subclass
- fi
- fi
- _Hallate=`cat $_workDir/freshList.txt | grep -A 1 Hallate | grep On | wc -l`
- if [[($_Hallate = 1)]]
- then
- echo "$_sourceDateSubclass" > $_workDir/Hallate.date
- echo "$_formatedDateSystemSubclass" > $_workDir/Hallate.formateddate
- echo "<tr><td>Hallate</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Hallate.subclass
- else
- _sourceDateSubclass=`cat $_workDir/Hallate.date`
- _formatedDateRemeber=`cat $_workDir/Hallate.formateddate`
- diff=$(($_sourceDateSubclass-$_sourceDateSystem))
- _calculatedMin=$(($diff / 60))
- _calculatedSec=$(($diff % 60))
- if [[($diff -le 0)]]
- then
- echo "<tr><td>Hallate</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Hallate.subclass
- else
- echo "<tr><td>Hallate</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Hallate.subclass
- fi
- fi
- ############################
- ## FINISH PAGE
- #############################
- echo "<tr><td><strong>Subclass Bosses </td><td><font color='red'></font></td><td><font color='red'></font></td></tr>" > $_workDir/aasubclass.subclass
- cat $_workDir/*.subclass >> /home/pbl/public_html/siteRB2.html
- cat $_workDir/*.normal >> /home/pbl/public_html/siteRB2.html
- cat $_workDir/*.special >> /home/pbl/public_html/siteRB2.html
- cat $_workDir/startpage.last >> /home/pbl/public_html/siteRB2.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement