Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 32.12 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #######################
  4. ###Free License #######
  5. #Powered by SyjON######
  6. #######################
  7. #rm -f $_workDir/freshList.txt
  8. #curl -s http://account.lineage2gaming.com/raid.php >> $_workDir/freshList.txt
  9.  
  10. _workDir=/home/pbl/botrb/test
  11.  
  12. cp /home/pbl/botrb/freshList.txt /home/pbl/botrb/test/freshList.txt
  13.  
  14. #Formated Date
  15. _formatedDateSystem=$(date -d +8hours +"%m-%d %H:%M")
  16. _formatedDateSystemSpecial=$(date -d +690minutes +"%m-%d %H:%M")
  17. _formatedDateSystemSubclass=$(date -d +4hours +"%m-%d %H:%M")
  18. _lastUpdate=$(date +"%m-%d %H:%M")
  19.  
  20.  
  21. #Source Date
  22. _sourceDateNormal=$(date -d +8hours +"%s")
  23. _sourceDateSystem=$(date +"%s")
  24. _sourceDateSpecial=$(date -d +690minutes +"%s")
  25. _sourceDateSubclass=$(date -d +4hours +"%s")
  26.  
  27. #########################
  28. ### CREATE WEBSTIE PAGE
  29. ##########################
  30.  
  31. rm -f /home/pbl/public_html/siteRB2.html
  32. echo "Last Update - <strong>$_lastUpdate</strong>" > $_workDir/last.Update
  33. cat $_workDir/startpage.txt >> /home/pbl/public_html/siteRB2.html
  34. cat $_workDir/last.Update >> /home/pbl/public_html/siteRB2.html
  35.  
  36.  
  37. #############################################
  38. ### NORMAL BOSSES
  39. #############################################
  40.  
  41. echo "<tr><td><strong>Custom Bosses </td><td><font color='red'></font></td><td><font color='green'></font></td></tr>" > $_workDir/aacustom.normal
  42.  
  43. _Amber=`cat $_workDir/freshList.txt | grep -A 1 Amber | grep On | wc -l`
  44. if [[($_Amber = 1)]]
  45.         then
  46.         echo "$_sourceDateNormal" > $_workDir/Amber.date
  47.         echo "$_formatedDateSystem" > $_workDir/Amber.formateddate
  48.                 echo "<tr><td>Ember</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Amber.normal
  49. else
  50.    
  51.     _sourceDateNormal=`cat $_workDir/Amber.date`
  52.     _formatedDateRemeber=`cat $_workDir/Amber.formateddate`
  53.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  54.     _calculatedMin=$(($diff / 60))
  55.     _calculatedSec=$(($diff % 60))
  56.     if [[($diff -le 0)]]
  57.         then
  58.          echo "<tr><td>Ember</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Amber.normal
  59.     else
  60.         echo "<tr><td>Ember</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Amber.normal
  61.     fi
  62. fi
  63.  
  64. _Anais=`cat $_workDir/freshList.txt | grep -A 1 Anais | grep On | wc -l`
  65. if [[($_Anais = 1)]]
  66.         then
  67.         echo "$_sourceDateNormal" > $_workDir/Anais.date
  68.         echo "$_formatedDateSystem" > $_workDir/Anais.formateddate
  69.                 echo "<tr><td>Anais</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Anais.normal
  70. else
  71.    
  72.     _sourceDateNormal=`cat $_workDir/Anais.date`
  73.     _formatedDateRemeber=`cat $_workDir/Anais.formateddate`
  74.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  75.     _calculatedMin=$(($diff / 60))
  76.     _calculatedSec=$(($diff % 60))
  77.     if [[($diff -le 0)]]
  78.         then
  79.          echo "<tr><td>Anais</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Anais.normal
  80.     else
  81.         echo "<tr><td>Anais</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Anais.normal
  82.     fi
  83. fi
  84.  
  85. _Decarbia=`cat $_workDir/freshList.txt | grep -A 1 Decarbia | grep On | wc -l`
  86. if [[($_Decarbia = 1)]]
  87.         then
  88.         echo "$_sourceDateNormal" > $_workDir/Decarbia.date
  89.         echo "$_formatedDateSystem" > $_workDir/Decarbia.formateddate
  90.                 echo "<tr><td>Decarbia</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Decarbia.normal
  91. else
  92.    
  93.     _sourceDateNormal=`cat $_workDir/Decarbia.date`
  94.     _formatedDateRemeber=`cat $_workDir/Decarbia.formateddate`
  95.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  96.     _calculatedMin=$(($diff / 60))
  97.     _calculatedSec=$(($diff % 60))
  98.     if [[($diff -le 0)]]
  99.         then
  100.          echo "<tr><td>Decarbia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Decarbia.normal
  101.     else
  102.         echo "<tr><td>Decarbia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Decarbia.normal
  103.     fi
  104. fi
  105.  
  106. _Vermilion=`cat $_workDir/freshList.txt | grep -A 1 Vermilion | grep On | wc -l`
  107. if [[($_Vermilion = 1)]]
  108.         then
  109.         echo "$_sourceDateNormal" > $_workDir/Vermilion.date
  110.         echo "$_formatedDateSystem" > $_workDir/Vermilion.formateddate
  111.                 echo "<tr><td>Vermilion</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Vermilion.normal
  112. else
  113.    
  114.     _sourceDateNormal=`cat $_workDir/Vermilion.date`
  115.     _formatedDateRemeber=`cat $_workDir/Vermilion.formateddate`
  116.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  117.     _calculatedMin=$(($diff / 60))
  118.     _calculatedSec=$(($diff % 60))
  119.     if [[($diff -le 0)]]
  120.         then
  121.          echo "<tr><td>Vermilion</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Vermilion.normal
  122.     else
  123.         echo "<tr><td>Vermilion</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Vermilion.normal
  124.     fi
  125. fi
  126.  
  127. _Hundred=`cat $_workDir/freshList.txt | grep -A 1 Hundred | grep On | wc -l`
  128. if [[($_Hundred = 1)]]
  129.         then
  130.         echo "$_sourceDateNormal" > $_workDir/Hundred.date
  131.         echo "$_formatedDateSystem" > $_workDir/Hundred.formateddate
  132.                 echo "<tr><td>Hundred</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Hundred.normal
  133. else
  134.    
  135.     _sourceDateNormal=`cat $_workDir/Hundred.date`
  136.     _formatedDateRemeber=`cat $_workDir/Hundred.formateddate`
  137.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  138.     _calculatedMin=$(($diff / 60))
  139.     _calculatedSec=$(($diff % 60))
  140.     if [[($diff -le 0)]]
  141.         then
  142.          echo "<tr><td>Hundred</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Hundred.normal
  143.     else
  144.         echo "<tr><td>Hundred</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Hundred.normal
  145.     fi
  146. fi
  147.  
  148. _Golem=`cat $_workDir/freshList.txt | grep -A 1 Golem | grep On | wc -l`
  149. if [[($_Golem = 1)]]
  150.         then
  151.         echo "$_sourceDateNormal" > $_workDir/Golem.date
  152.         echo "$_formatedDateSystem" > $_workDir/Golem.formateddate
  153.                 echo "<tr><td>Golem</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Golem.normal
  154. else
  155.    
  156.     _sourceDateNormal=`cat $_workDir/Golem.date`
  157.     _formatedDateRemeber=`cat $_workDir/Golem.formateddate`
  158.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  159.     _calculatedMin=$(($diff / 60))
  160.     _calculatedSec=$(($diff % 60))
  161.     if [[($diff -le 0)]]
  162.         then
  163.          echo "<tr><td>Golem</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Golem.normal
  164.     else
  165.         echo "<tr><td>Golem</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Golem.normal
  166.     fi
  167. fi
  168.  
  169. _Hekaton=`cat $_workDir/freshList.txt | grep -A 1 "Hekaton Prime" | grep On | wc -l`
  170. if [[($_Hekaton = 1)]]
  171.         then
  172.         echo "$_sourceDateNormal" > $_workDir/Hekaton.date
  173.         echo "$_formatedDateSystem" > $_workDir/Hekaton.formateddate
  174.                 echo "<tr><td>Hekaton</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Hekaton.normal
  175. else
  176.    
  177.     _sourceDateNormal=`cat $_workDir/Hekaton.date`
  178.     _formatedDateRemeber=`cat $_workDir/Hekaton.formateddate`
  179.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  180.     _calculatedMin=$(($diff / 60))
  181.     _calculatedSec=$(($diff % 60))
  182.     if [[($diff -le 0)]]
  183.         then
  184.          echo "<tr><td>Hekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Hekaton.normal
  185.     else
  186.         echo "<tr><td>Hekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Hekaton.normal
  187.     fi
  188. fi
  189.  
  190. _Ipos=`cat $_workDir/freshList.txt | grep -A 1 Ipos | grep On | wc -l`
  191. if [[($_Ipos = 1)]]
  192.         then
  193.         echo "$_sourceDateNormal" > $_workDir/Ipos.date
  194.         echo "$_formatedDateSystem" > $_workDir/Ipos.formateddate
  195.                 echo "<tr><td>Ipos</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Ipos.normal
  196. else
  197.    
  198.     _sourceDateNormal=`cat $_workDir/Ipos.date`
  199.     _formatedDateRemeber=`cat $_workDir/Ipos.formateddate`
  200.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  201.     _calculatedMin=$(($diff / 60))
  202.     _calculatedSec=$(($diff % 60))
  203.     if [[($diff -le 0)]]
  204.         then
  205.          echo "<tr><td>Ipos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Ipos.normal
  206.     else
  207.         echo "<tr><td>Ipos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Ipos.normal
  208.     fi
  209. fi
  210.  
  211. _Brakki=`cat $_workDir/freshList.txt | grep -A 1 Brakki | grep On | wc -l`
  212. if [[($_Brakki = 1)]]
  213.         then
  214.         echo "$_sourceDateNormal" > $_workDir/Brakki.date
  215.         echo "$_formatedDateSystem" > $_workDir/Brakki.formateddate
  216.                 echo "<tr><td>Brakki</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Brakki.normal
  217. else
  218.    
  219.     _sourceDateNormal=`cat $_workDir/Brakki.date`
  220.     _formatedDateRemeber=`cat $_workDir/Brakki.formateddate`
  221.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  222.     _calculatedMin=$(($diff / 60))
  223.     _calculatedSec=$(($diff % 60))
  224.     if [[($diff -le 0)]]
  225.         then
  226.          echo "<tr><td>Brakki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Brakki.normal
  227.     else
  228.         echo "<tr><td>Brakki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Brakki.normal
  229.     fi
  230. fi
  231.  
  232. _Tayr=`cat $_workDir/freshList.txt | grep -A 1 Tayr | grep On | wc -l`
  233. if [[($_Tayr = 1)]]
  234.         then
  235.         echo "$_sourceDateNormal" > $_workDir/Tayr.date
  236.         echo "$_formatedDateSystem" > $_workDir/Tayr.formateddate
  237.                 echo "<tr><td>Tayr</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Tayr.normal
  238. else
  239.    
  240.     _sourceDateNormal=`cat $_workDir/Tayr.date`
  241.     _formatedDateRemeber=`cat $_workDir/Tayr.formateddate`
  242.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  243.     _calculatedMin=$(($diff / 60))
  244.     _calculatedSec=$(($diff % 60))
  245.     if [[($diff -le 0)]]
  246.         then
  247.          echo "<tr><td>Tayr</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Tayr.normal
  248.     else
  249.         echo "<tr><td>Tayr</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Tayr.normal
  250.     fi
  251. fi
  252.  
  253. _KetraHeroHekaton=`cat $_workDir/freshList.txt | grep -A 1 "Ketra Hero Hekaton" | grep On | wc -l`
  254. if [[($_KetraHeroHekaton = 1)]]
  255.         then
  256.         echo "$_sourceDateNormal" > $_workDir/KetraHeroHekaton.date
  257.         echo "$_formatedDateSystem" > $_workDir/KetraHeroHekaton.formateddate
  258.                 echo "<tr><td>KetraHeroHekaton</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/KetraHeroHekaton.normal
  259. else
  260.    
  261.     _sourceDateNormal=`cat $_workDir/KetraHeroHekaton.date`
  262.     _formatedDateRemeber=`cat $_workDir/KetraHeroHekaton.formateddate`
  263.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  264.     _calculatedMin=$(($diff / 60))
  265.     _calculatedSec=$(($diff % 60))
  266.     if [[($diff -le 0)]]
  267.         then
  268.          echo "<tr><td>KetraHeroHekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/KetraHeroHekaton.normal
  269.     else
  270.         echo "<tr><td>KetraHeroHekaton</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/KetraHeroHekaton.normal
  271.     fi
  272. fi
  273.  
  274. _Glaki=`cat $_workDir/freshList.txt | grep -A 1 Glaki | grep On | wc -l`
  275. if [[($_Glaki = 1)]]
  276.         then
  277.         echo "$_sourceDateNormal" > $_workDir/Glaki.date
  278.         echo "$_formatedDateSystem" > $_workDir/Glaki.formateddate
  279.                 echo "<tr><td>Glaki</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Glaki.normal
  280. else
  281.    
  282.     _sourceDateNormal=`cat $_workDir/Glaki.date`
  283.     _formatedDateRemeber=`cat $_workDir/Glaki.formateddate`
  284.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  285.     _calculatedMin=$(($diff / 60))
  286.     _calculatedSec=$(($diff % 60))
  287.     if [[($diff -le 0)]]
  288.         then
  289.          echo "<tr><td>Glaki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Glaki.normal
  290.     else
  291.         echo "<tr><td>Glaki</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Glaki.normal
  292.     fi
  293. fi
  294.  
  295. _Olkuth=`cat $_workDir/freshList.txt | grep -A 1 Olkuth | grep On | wc -l`
  296. if [[($_Olkuth = 1)]]
  297.         then
  298.         echo "$_sourceDateNormal" > $_workDir/Olkuth.date
  299.         echo "$_formatedDateSystem" > $_workDir/Olkuth.formateddate
  300.                 echo "<tr><td>Olkuth</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Olkuth.normal
  301. else
  302.    
  303.     _sourceDateNormal=`cat $_workDir/Olkuth.date`
  304.     _formatedDateRemeber=`cat $_workDir/Olkuth.formateddate`
  305.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  306.     _calculatedMin=$(($diff / 60))
  307.     _calculatedSec=$(($diff % 60))
  308.     if [[($diff -le 0)]]
  309.         then
  310.          echo "<tr><td>Olkuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Olkuth.normal
  311.     else
  312.         echo "<tr><td>Olkuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Olkuth.normal
  313.     fi
  314. fi
  315.  
  316. _Ashakiel=`cat $_workDir/freshList.txt | grep -A 1 Ashakiel | grep On | wc -l`
  317. if [[($_Ashakiel = 1)]]
  318.         then
  319.         echo "$_sourceDateNormal" > $_workDir/Ashakiel.date
  320.         echo "$_formatedDateSystem" > $_workDir/Ashakiel.formateddate
  321.                 echo "<tr><td>Ashakiel</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Ashakiel.normal
  322. else
  323.    
  324.     _sourceDateNormal=`cat $_workDir/Ashakiel.date`
  325.     _formatedDateRemeber=`cat $_workDir/Ashakiel.formateddate`
  326.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  327.     _calculatedMin=$(($diff / 60))
  328.     _calculatedSec=$(($diff % 60))
  329.     if [[($diff -le 0)]]
  330.         then
  331.          echo "<tr><td>Ashakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Ashakiel.normal
  332.     else
  333.         echo "<tr><td>Ashakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Ashakiel.normal
  334.     fi
  335. fi
  336.  
  337. _Naga=`cat $_workDir/freshList.txt | grep -A 1 Naga | grep On | wc -l`
  338. if [[($_Naga = 1)]]
  339.         then
  340.         echo "$_sourceDateNormal" > $_workDir/Naga.date
  341.         echo "$_formatedDateSystem" > $_workDir/Naga.formateddate
  342.                 echo "<tr><td>Naga</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Naga.normal
  343. else
  344.    
  345.     _sourceDateNormal=`cat $_workDir/Naga.date`
  346.     _formatedDateRemeber=`cat $_workDir/Naga.formateddate`
  347.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  348.     _calculatedMin=$(($diff / 60))
  349.     _calculatedSec=$(($diff % 60))
  350.     if [[($diff -le 0)]]
  351.         then
  352.          echo "<tr><td>Naga</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Naga.normal
  353.     else
  354.         echo "<tr><td>Naga</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Naga.normal
  355.     fi
  356. fi
  357.  
  358. _Andreas=`cat $_workDir/freshList.txt | grep -A 1 Andreas | grep On | wc -l`
  359. if [[($_Andreas = 1)]]
  360.         then
  361.         echo "$_sourceDateNormal" > $_workDir/Andreas.date
  362.         echo "$_formatedDateSystem" > $_workDir/Andreas.formateddate
  363.                 echo "<tr><td>Andreas</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Andreas.normal
  364. else
  365.    
  366.     _sourceDateNormal=`cat $_workDir/Andreas.date`
  367.     _formatedDateRemeber=`cat $_workDir/Andreas.formateddate`
  368.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  369.     _calculatedMin=$(($diff / 60))
  370.     _calculatedSec=$(($diff % 60))
  371.     if [[($diff -le 0)]]
  372.         then
  373.          echo "<tr><td>Andreas</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Andreas.normal
  374.     else
  375.         echo "<tr><td>Andreas</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Andreas.normal
  376.     fi
  377. fi
  378.  
  379. _Uruka=`cat $_workDir/freshList.txt | grep -A 1 Uruka | grep On | wc -l`
  380. if [[($_Uruka = 1)]]
  381.         then
  382.         echo "$_sourceDateNormal" > $_workDir/Uruka.date
  383.         echo "$_formatedDateSystem" > $_workDir/Uruka.formateddate
  384.                 echo "<tr><td>Uruka</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Uruka.normal
  385. else
  386.    
  387.     _sourceDateNormal=`cat $_workDir/Uruka.date`
  388.     _formatedDateRemeber=`cat $_workDir/Uruka.formateddate`
  389.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  390.     _calculatedMin=$(($diff / 60))
  391.     _calculatedSec=$(($diff % 60))
  392.     if [[($diff -le 0)]]
  393.         then
  394.          echo "<tr><td>Uruka</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Uruka.normal
  395.     else
  396.         echo "<tr><td>Uruka</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Uruka.normal
  397.     fi
  398. fi
  399.  
  400. _Horuth=`cat $_workDir/freshList.txt | grep -A 1 Horuth | grep On | wc -l`
  401. if [[($_Horuth = 1)]]
  402.         then
  403.         echo "$_sourceDateNormal" > $_workDir/Horuth.date
  404.         echo "$_formatedDateSystem" > $_workDir/Horuth.formateddate
  405.                 echo "<tr><td>Horuth</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Horuth.normal
  406. else
  407.    
  408.     _sourceDateNormal=`cat $_workDir/Horuth.date`
  409.     _formatedDateRemeber=`cat $_workDir/Horuth.formateddate`
  410.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  411.     _calculatedMin=$(($diff / 60))
  412.     _calculatedSec=$(($diff % 60))
  413.     if [[($diff -le 0)]]
  414.         then
  415.          echo "<tr><td>Horuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Horuth.normal
  416.     else
  417.         echo "<tr><td>Horuth</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Horuth.normal
  418.     fi
  419. fi
  420.  
  421. _Mos=`cat $_workDir/freshList.txt | grep -A 1 Mos | grep On | wc -l`
  422. if [[($_Mos = 1)]]
  423.         then
  424.         echo "$_sourceDateNormal" > $_workDir/Mos.date
  425.         echo "$_formatedDateSystem" > $_workDir/Mos.formateddate
  426.                 echo "<tr><td>Mos</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Mos.normal
  427. else
  428.    
  429.     _sourceDateNormal=`cat $_workDir/Mos.date`
  430.     _formatedDateRemeber=`cat $_workDir/Mos.formateddate`
  431.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  432.     _calculatedMin=$(($diff / 60))
  433.     _calculatedSec=$(($diff % 60))
  434.     if [[($diff -le 0)]]
  435.         then
  436.          echo "<tr><td>Mos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Mos.normal
  437.     else
  438.         echo "<tr><td>Mos</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Mos.normal
  439.     fi
  440. fi
  441.  
  442. _Shadith=`cat $_workDir/freshList.txt | grep -A 1 Shadith | grep On | wc -l`
  443. if [[($_Shadith = 1)]]
  444.         then
  445.         echo "$_sourceDateNormal" > $_workDir/Shadith.date
  446.         echo "$_formatedDateSystem" > $_workDir/Shadith.formateddate
  447.                 echo "<tr><td>Shadith</td><td><font color='red'>$_formatedDateSystem</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Shadith.normal
  448. else
  449.    
  450.     _sourceDateNormal=`cat $_workDir/Shadith.date`
  451.     _formatedDateRemeber=`cat $_workDir/Shadith.formateddate`
  452.     diff=$(($_sourceDateNormal-$_sourceDateSystem))
  453.     _calculatedMin=$(($diff / 60))
  454.     _calculatedSec=$(($diff % 60))
  455.     if [[($diff -le 0)]]
  456.         then
  457.          echo "<tr><td>Shadith</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Shadith.normal
  458.     else
  459.         echo "<tr><td>Shadith</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Shadith.normal
  460.     fi
  461. fi
  462.  
  463. ###########################################
  464. #### SPECIAL BOSSES
  465. ###########################################
  466.  
  467.  
  468. echo "<tr><td><strong>Special Bosses </td><td><font color='red'></font></td><td><font color='green'></font></td></tr>" > $_workDir/aaspecial.special
  469.  
  470. _Ramdal=`cat $_workDir/freshList.txt | grep -A 1 Ramdal | grep On | wc -l`
  471. if [[($_Ramdal = 1)]]
  472.         then
  473.         echo "$_sourceDateSpecial" > $_workDir/Ramdal.date
  474.         echo "$_formatedDateSystemSpecial" > $_workDir/Ramdal.formateddate
  475.                 echo "<tr><td>Ramdal</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Ramdal.special
  476. else
  477.    
  478.     _sourceDateSpecial=`cat $_workDir/Ramdal.date`
  479.     _formatedDateRemeber=`cat $_workDir/Ramdal.formateddate`
  480.     diff=$(($_sourceDateSpecial-$_sourceDateSystem))
  481.     _calculatedMin=$(($diff / 60))
  482.     _calculatedSec=$(($diff % 60))
  483.     if [[($diff -le 0)]]
  484.         then
  485.          echo "<tr><td>Ramdal</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Ramdal.special
  486.     else
  487.         echo "<tr><td>Ramdal</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Ramdal.special
  488.     fi
  489. fi
  490.  
  491. _Korim=`cat $_workDir/freshList.txt | grep -A 1 Korim | grep On | wc -l`
  492. if [[($_Korim = 1)]]
  493.         then
  494.         echo "$_sourceDateSpecial" > $_workDir/Korim.date
  495.         echo "$_formatedDateSystemSpecial" > $_workDir/Korim.formateddate
  496.                 echo "<tr><td>Korim</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Korim.special
  497. else
  498.    
  499.     _sourceDateSpecial=`cat $_workDir/Korim.date`
  500.     _formatedDateRemeber=`cat $_workDir/Korim.formateddate`
  501.     diff=$(($_sourceDateSpecial-$_sourceDateSystem))
  502.     _calculatedMin=$(($diff / 60))
  503.     _calculatedSec=$(($diff % 60))
  504.     if [[($diff -le 0)]]
  505.         then
  506.          echo "<tr><td>Korim</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Korim.special
  507.     else
  508.         echo "<tr><td>Korim</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Korim.special
  509.     fi
  510. fi
  511.  
  512. _Shuriel=`cat $_workDir/freshList.txt | grep -A 1 Shuriel | grep On | wc -l`
  513. if [[($_Shuriel = 1)]]
  514.         then
  515.         echo "$_sourceDateSpecial" > $_workDir/Shuriel.date
  516.         echo "$_formatedDateSystemSpecial" > $_workDir/Shuriel.formateddate
  517.                 echo "<tr><td>Shuriel</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Shuriel.special
  518. else
  519.    
  520.     _sourceDateSpecial=`cat $_workDir/Shuriel.date`
  521.     _formatedDateRemeber=`cat $_workDir/Shuriel.formateddate`
  522.     diff=$(($_sourceDateSpecial-$_sourceDateSystem))
  523.     _calculatedMin=$(($diff / 60))
  524.     _calculatedSec=$(($diff % 60))
  525.     if [[($diff -le 0)]]
  526.         then
  527.          echo "<tr><td>Shuriel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Shuriel.special
  528.     else
  529.         echo "<tr><td>Shuriel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Shuriel.special
  530.     fi
  531. fi
  532.  
  533. _Cherub=`cat $_workDir/freshList.txt | grep -A 1 Cherub | grep On | wc -l`
  534. if [[($_Cherub = 1)]]
  535.         then
  536.         echo "$_sourceDateSpecial" > $_workDir/Cherub.date
  537.         echo "$_formatedDateSystemSpecial" > $_workDir/Cherub.formateddate
  538.                 echo "<tr><td>Galaxia</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Cherub.special
  539. else
  540.    
  541.     _sourceDateSpecial=`cat $_workDir/Cherub.date`
  542.     _formatedDateRemeber=`cat $_workDir/Cherub.formateddate`
  543.     diff=$(($_sourceDateSpecial-$_sourceDateSystem))
  544.     _calculatedMin=$(($diff / 60))
  545.     _calculatedSec=$(($diff % 60))
  546.     if [[($diff -le 0)]]
  547.         then
  548.          echo "<tr><td>Galaxia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Cherub.special
  549.     else
  550.         echo "<tr><td>Galaxia</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Cherub.special
  551.     fi
  552. fi
  553.  
  554. _Rudelto=`cat $_workDir/freshList.txt | grep -A 1 Rudelto | grep On | wc -l`
  555. if [[($_Rudelto = 1)]]
  556.         then
  557.         echo "$_sourceDateSpecial" > $_workDir/Rudelto.date
  558.         echo "$_formatedDateSystemSpecial" > $_workDir/Rudelto.formateddate
  559.                 echo "<tr><td>Rudelto</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Rudelto.special
  560. else
  561.    
  562.     _sourceDateSpecial=`cat $_workDir/Rudelto.date`
  563.     _formatedDateRemeber=`cat $_workDir/Rudelto.formateddate`
  564.     diff=$(($_sourceDateSpecial-$_sourceDateSystem))
  565.     _calculatedMin=$(($diff / 60))
  566.     _calculatedSec=$(($diff % 60))
  567.     if [[($diff -le 0)]]
  568.         then
  569.          echo "<tr><td>Rudelto</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Rudelto.special
  570.     else
  571.         echo "<tr><td>Rudelto</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Rudelto.special
  572.     fi
  573. fi
  574.  
  575. _Cloe=`cat $_workDir/freshList.txt | grep -A 1 Cloe | grep On | wc -l`
  576. if [[($_Cloe = 1)]]
  577.         then
  578.         echo "$_sourceDateSpecial" > $_workDir/Cloe.date
  579.         echo "$_formatedDateSystemSpecial" > $_workDir/Cloe.formateddate
  580.                 echo "<tr><td>Cloe</td><td><font color='red'>$_formatedDateSystemSpecial</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Cloe.special
  581. else
  582.    
  583.     _sourceDateSpecial=`cat $_workDir/Cloe.date`
  584.     _formatedDateRemeber=`cat $_workDir/Cloe.formateddate`
  585.     diff=$(($_sourceDateSpecial-$_sourceDateSystem))
  586.     _calculatedMin=$(($diff / 60))
  587.     _calculatedSec=$(($diff % 60))
  588.     if [[($diff -le 0)]]
  589.         then
  590.          echo "<tr><td>Cloe</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Cloe.special
  591.     else
  592.         echo "<tr><td>Cloe</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Cloe.special
  593.     fi
  594. fi
  595.  
  596. #####################################
  597. #### SUBCLASS BOSSES
  598. ######################################
  599.  
  600. echo "<tr><td><strong>Subclass Bosses </td><td><font color='red'></font></td><td><font color='red'></font></td></tr>" > $_workDir/aasubclass.subclass
  601.  
  602. _Kernon=`cat $_workDir/freshList.txt | grep -A 1 Kernon | grep On | wc -l`
  603. if [[($_Kernon = 1)]]
  604.         then
  605.         echo "$_sourceDateSubclass" > $_workDir/Kernon.date
  606.         echo "$_formatedDateSystemSubclass" > $_workDir/Kernon.formateddate
  607.                 echo "<tr><td>Kernon</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Kernon.subclass
  608. else
  609.    
  610.     _sourceDateSubclass=`cat $_workDir/Kernon.date`
  611.     _formatedDateRemeber=`cat $_workDir/Kernon.formateddate`
  612.     diff=$(($_sourceDateSubclass-$_sourceDateSystem))
  613.     _calculatedMin=$(($diff / 60))
  614.     _calculatedSec=$(($diff % 60))
  615.     if [[($diff -le 0)]]
  616.         then
  617.          echo "<tr><td>Kernon</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Kernon.subclass
  618.     else
  619.         echo "<tr><td>Kernon</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Kernon.subclass
  620.     fi
  621. fi
  622.  
  623. _Golkonda=`cat $_workDir/freshList.txt | grep -A 1 Golkonda | grep On | wc -l`
  624. if [[($_Golkonda = 1)]]
  625.         then
  626.         echo "$_sourceDateSubclass" > $_workDir/Golkonda.date
  627.         echo "$_formatedDateSystemSubclass" > $_workDir/Golkonda.formateddate
  628.                 echo "<tr><td>Golkonda</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Golkonda.subclass
  629. else
  630.    
  631.     _sourceDateSubclass=`cat $_workDir/Golkonda.date`
  632.     _formatedDateRemeber=`cat $_workDir/Golkonda.formateddate`
  633.     diff=$(($_sourceDateSubclass-$_sourceDateSystem))
  634.     _calculatedMin=$(($diff / 60))
  635.     _calculatedSec=$(($diff % 60))
  636.     if [[($diff -le 0)]]
  637.         then
  638.          echo "<tr><td>Golkonda</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Golkonda.subclass
  639.     else
  640.         echo "<tr><td>Golkonda</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Golkonda.subclass
  641.     fi
  642. fi
  643.  
  644. _Barakiel=`cat $_workDir/freshList.txt | grep -A 1 Barakiel | grep On | wc -l`
  645. if [[($_Barakiel = 1)]]
  646.         then
  647.         echo "$_sourceDateSubclass" > $_workDir/Barakiel.date
  648.         echo "$_formatedDateSystemSubclass" > $_workDir/Barakiel.formateddate
  649.                 echo "<tr><td>Barakiel</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Barakiel.subclass
  650. else
  651.    
  652.     _sourceDateSubclass=`cat $_workDir/Barakiel.date`
  653.     _formatedDateRemeber=`cat $_workDir/Barakiel.formateddate`
  654.     diff=$(($_sourceDateSubclass-$_sourceDateSystem))
  655.     _calculatedMin=$(($diff / 60))
  656.     _calculatedSec=$(($diff % 60))
  657.     if [[($diff -le 0)]]
  658.         then
  659.          echo "<tr><td>Barakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Barakiel.subclass
  660.     else
  661.         echo "<tr><td>Barakiel</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Barakiel.subclass
  662.     fi
  663. fi
  664.  
  665. _Hallate=`cat $_workDir/freshList.txt | grep -A 1 Hallate | grep On | wc -l`
  666. if [[($_Hallate = 1)]]
  667.         then
  668.         echo "$_sourceDateSubclass" > $_workDir/Hallate.date
  669.         echo "$_formatedDateSystemSubclass" > $_workDir/Hallate.formateddate
  670.                 echo "<tr><td>Hallate</td><td><font color='red'>$_formatedDateSystemSubclass</font></td><td><font color='green'>UP</font></td></tr>" > $_workDir/Hallate.subclass
  671. else
  672.    
  673.     _sourceDateSubclass=`cat $_workDir/Hallate.date`
  674.     _formatedDateRemeber=`cat $_workDir/Hallate.formateddate`
  675.     diff=$(($_sourceDateSubclass-$_sourceDateSystem))
  676.     _calculatedMin=$(($diff / 60))
  677.     _calculatedSec=$(($diff % 60))
  678.     if [[($diff -le 0)]]
  679.         then
  680.          echo "<tr><td>Hallate</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='green'>WINDOW</font></td></tr>" > $_workDir/Hallate.subclass
  681.     else
  682.         echo "<tr><td>Hallate</td><td><font color='red'>$_formatedDateRemeber</font></td><td><font color='red'>$_calculatedMin min </font></td></tr>" > $_workDir/Hallate.subclass
  683.     fi
  684. fi
  685.  
  686.  
  687. ############################
  688. ## FINISH PAGE
  689. #############################
  690. echo "<tr><td><strong>Subclass Bosses </td><td><font color='red'></font></td><td><font color='red'></font></td></tr>" > $_workDir/aasubclass.subclass
  691.  
  692.  
  693. cat $_workDir/*.subclass >> /home/pbl/public_html/siteRB2.html
  694. cat $_workDir/*.normal >> /home/pbl/public_html/siteRB2.html
  695. cat $_workDir/*.special >> /home/pbl/public_html/siteRB2.html
  696. cat $_workDir/startpage.last >> /home/pbl/public_html/siteRB2.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement