Permalink
Browse files

Removed unneeded files and functions

  • Loading branch information...
1 parent a23250f commit d317d9166338e9c903e97f57721c1c2228a125da @marcusmyers committed Apr 25, 2012
Showing with 5 additions and 84 deletions.
  1. +5 −6 index.php
  2. +0 −7 js/raphael.js
  3. +0 −71 statBoard.php
View
@@ -6,16 +6,15 @@
<meta charset='utf-8' />
<meta http-equiv="refresh" content="1800" />
<title>Status Board</title>
- <!--<script src="https://www.google.com/jsapi?key=ABQIAAAAeiV8QcjRzVreooy6xD2vvxQ1dKXbrvPhpjOqskkBCj21hFZHRxS1n9icvB_eYHCyT1az6-qbDljOPg" type="text/javascript"></script>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> -->
- <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
+
+ <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script src="/status/js/jquery.jdigiclock.js"></script>
- <script src="/status/js/twitterlib.min.js"></script>
+ <script src="/status/js/twitterlib.min.js"></script>
<script src="/status/js/jquery.flot.min.js"></script>
<script src="/status/js/jquery.pauseanimate.js"></script>
- <script src="/status/js/statBoard.js"></script>
+ <script src="/status/js/statBoard.js"></script>
<link rel="stylesheet" type="text/css" href="jquery.jdigiclock.css" />
- <link rel="stylesheet" type="text/css" href="default.css" />
+ <link rel="stylesheet" type="text/css" href="default.css" />
<script>
function draw(){
var canvas = document.getElementById('tutorial');
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -114,75 +114,4 @@ function getProjects() {
}
-/*function getOpenTickets(){
- $dbh = new mysqli('10.20.15.56','glpiuser','ttwu*data','glpi') or die('could not connect');
- $result = $dbh->query("SELECT COUNT( ID ) FROM glpi_tracking WHERE closedate IS NULL");
- $row = $result->fetch_array();
-
- return $row[0];
-}*/
-
-function getWeather(){
- $memcache = new Memcache();
- $memcache->connect('localhost',11211);
- $weather = 'http://xoap.weather.com/weather/local/USOH0648?cc=*&dayf=2&link=xoap&prod=xoap&par=1075495930&key=21cfbdc902ba1753';
- $xmlStr = file_get_contents($weather,0);
- $xml = new SimplexmlElement($xmlStr);
- $cc = $xml->cc;
- $strReturn = "\t\t<div id='current_logo'><img src='/status/images/icons/".$cc->icon.".png' /></div>\n\t\t<div id='current_text'>".$cc->tmp."&deg;<p>".$cc->t."</p><p class='loc'>Napoleon, OH</p></div><br/>";
- $strReturn .= "<div id='day_text'>\n\t\t\t\t";
- $strReturn .= "<div id='today_text'>Today</div>\n\t\t\t\t";
- $strReturn .= "<div id='tomorrow_text'>Tomorrow</div>\n\t\t\t";
- $strReturn .= "</div><br/>\n\t<div id='two_day'>\n\t\t";
- $i = 0;
- $strR1 = "";
- foreach($xml->dayf->day as $item){
- if($memcache->get('day1')){
- //$strReturn .= $memcache->get('day1');
- $test = true;
- } else {
- $test = false;
- }
- if($i == 0){
- //$strReturn .= "<div id='two_day_1'>\n\t\t\t";
- $strR1 .= "<div id='two_day_1'>\n\t\t\t";
- } else {
- $strReturn .= "<div id='two_day_2'>\n\t\t\t";
- }
- foreach($item->part as $pData){
- if("d" === (string) $pData['p']){
- if($i==0){
- //$strReturn .= "<img src='/status/images/icons/".$pData->icon.".png' /><br/>";
- //$strReturn .= $pData->t . "<br />";
- $strR1 .= "<img src='/status/images/icons/".$pData->icon.".png' /><br/>";
- $strR1 .= $pData->t ."<br/>";
- } else {
- $strReturn .= "<img src='/status/images/icons/".$pData->icon.".png' /><br/>";
- $strReturn .= $pData->t . "<br/>";
- }
- }
- }
- if($i==0){
- //$strReturn .= $item->hi."&deg;/".$item->low."&deg;";
- //$strReturn .= "</div>\n\t\t";
- $strR1 .= $item->hi."&deg;/".$item->low."&deg;";
- $strR1 .= "</div>\n\t\t";
- if($test){
- $strReturn .= $memcache->get('day1');
- } else {
- $strReturn .= $strR1;
- }
- } else {
- $strReturn .= $item->hi."&deg;/".$item->low."&deg;";
- $strReturn .= "</div>\n\t\t";
- }
- if($i==0 && date('G')> 12 && date('G')<14 && !$test){
- $memcache->add('day1',$strR1, false, 49800);
- }
- $i++;
- }
- $strReturn . "</div></div>";
- return $strReturn;
-}
-
?>

0 comments on commit d317d91

Please sign in to comment.