Changeset 25 for www


Ignore:
Timestamp:
Jan 17, 2008, 8:07:59 PM (17 years ago)
Author:
george
Message:

Opraveno: Načítání obrázku web kamery.

Location:
www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • www/config.sample.php

    r4 r25  
    1919    'ShowError' => 1,
    2020    'ErrorLogFile' => '/var/www/html/dev/centrala/www/php_script_error.log',   
     21    'WebcamPassword' => '',
    2122  ),
    2223);
  • www/webcam/webcam.php

    r10 r25  
    11<?php
     2include('../global.php');
    23
    34$RefreshPeriod = 1;
     
    1011if((time() - $RefreshPeriod) >= $ModifyTime)
    1112{
    12   exec('wget "http://192.168.0.114/Webcam.jpg?MobilePass=admin&V=2&Q=2&B=2&U=1" -O webcam_cache.jpg');
     13  exec('wget "http://192.168.1.114/Webcam.jpg?MobilePass='.$Config['Web']['WebcamPassword'].'&V=2&Q=2&B=2&U=0" -O webcam_cache.jpg');
    1314  exec('mv -f webcam_cache.jpg webcam.jpg');
    1415}
Note: See TracChangeset for help on using the changeset viewer.