Changeset 738 for trunk/Modules/WebCam


Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
Location:
trunk/Modules/WebCam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/WebCam/WebCam.php

    r586 r738  
    66  var $ShortTitle = 'Kamera';
    77  var $ParentClass = 'PagePortal';
    8  
     8
    99  function Show()
    1010  {
     
    1717      var theTimer = setTimeout("reloadImage()", 1);
    1818
    19       function reloadImage() 
     19      function reloadImage()
    2020      {
    2121        theDate = new Date();
     
    5757    $this->SupportedModels = array();
    5858  }
    59  
     59
    6060  function DoStart()
    6161  {
    6262    $this->System->Pages['webcam'] = 'PageWebcam';
    63   } 
     63  }
    6464
    6565 function ShowImage()
     
    7171    $Output .= '<a href="http://www.zdechov.net/kamery/?id=3"><img alt="Skiareál, motokrosová grapa" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam3.jpg" /></a>';
    7272    $Output .= '<a href="http://www.zdechov.net/kamery/?id=4"><img alt="Fotbalové hřiště" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam4.jpg" /></a>';
    73           return($Output);   
    74   } 
     73    return($Output);
     74  }
    7575}
  • trunk/Modules/WebCam/webcam_refresh.php

    r579 r738  
    1010//    $Output = shell_exec('wget "http://kamera-stred/Webcam.jpg?MobilePass='.$Config['Web']['WebcamPassword'].'&V=2&Q=2&B=2&U=0" -O webcam_cache.jpg -T '.($Config['Web']['WebcamRefresh']).' --limit-rate=200k');
    1111    $Output = shell_exec('wget "http://kamera-knihovna/cgi-bin/viewer/video.jpg" -O webcam_cache.jpg -T '.($Config['Web']['WebcamRefresh']).' --limit-rate=200k');
    12    
    13     if((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false)) 
     12
     13    if((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false))
    1414      shell_exec('mv -f webcam_cache.jpg webcam.jpg');
    1515  }
Note: See TracChangeset for help on using the changeset viewer.