Changeset 245
- Timestamp:
- Aug 29, 2009, 9:28:25 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/error.php
r219 r245 28 28 $Backtrace[0]['function'] = ''; 29 29 $Backtrace[0]['args'] = ''; 30 $Backtrace[0]['file'] = ''; 31 $Backtrace[0]['line'] = ''; 30 32 //$First = array_shift($Backtrace); 31 33 //print_r($First); -
trunk/network/user_hosts.php
r234 r245 10 10 function Show() 11 11 { 12 global $Config; 13 12 14 $Output = '<div align="center" style="font-size: small;"><table class="WideTable">'; 13 15 $Output .= '<tr><th>Jméno počítače</th><th>Místní adresa</th><th>Veřejná adresa</th><th>CZFree adresa</th><th>Fyzická adresa</th><th>Typ</th><th>Naposledy online</th></tr>'; -
trunk/system/generators/dns.php
r235 r245 70 70 { 71 71 $Parts = explode('.', $Network); 72 $Output = '$ORIGINS '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'.72 $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n". 73 73 '$TTL '.$DNS['TTL']."\n". 74 74 "@\tIN\tSOA\t".$DNS['NameServer'][0].".\troot.".$DNS['Domain'].". (\n". … … 79 79 "\t\t\t\t".$DNS['Minimum']."\t; minimum\n". 80 80 "\t\t\t\t)\n"; 81 foreach($DNS[' NameServer'] as $NameServer)81 foreach($DNS['ReverseNameServer'] as $NameServer) 82 82 { 83 83 if(substr($NameServer, -strlen($DNS['Domain'])) == $DNS['Domain']) … … 111 111 'MailServer' => array('centrala.'.$BaseDomain), 112 112 'NameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain), 113 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain), 113 114 'Host' => array(), 114 115 'Alias' => array(), … … 163 164 'BaseDir' => '/var/named/external/', 164 165 'MailServer' => array('centrala.'.$BaseDomain), 165 'NameServer' => array('gw-hajda.inext.cz', 'ns3.eu.editdns.net', 'ns1.twisted4life.com'), 166 'NameServer' => array('gw-hajda.inext.cz', 'ns1.vcsweb.com', 'ns1.twisted4life.com'), 167 'ReverseNameServer' => array('gw-hajda.inext.cz', 'inext.inext.cz'), 166 168 'Host' => array(), 167 169 'Alias' => array(), … … 199 201 'BaseDir' => '/var/named/czfree/', 200 202 'MailServer' => array('centrala.'.$BaseDomain), 201 'NameServer' => array('centrala.'.$BaseDomain, 'server.zlin.czf'), 203 'NameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain), 204 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain), 202 205 'Host' => array(), 203 206 'Alias' => array(), … … 235 238 'BaseDir' => '/var/named/internal/', 236 239 'MailServer' => array('centrala.'.$BaseDomain), 237 'NameServer' => array('centrala.'.$BaseDomain, 'server.zlin.czf'), 240 'NameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain), 241 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain), 238 242 'Host' => array(), 239 243 'Alias' => array(), -
trunk/webcam/webcam_refresh.php
r228 r245 2 2 include('../global.php'); 3 3 4 $Config['Web']['ShowPHPError'] = true; 4 5 while(1) 5 6 { … … 8 9 { 9 10 $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'] - 1)); 10 if((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false))11 shell_exec('mv -f webcam_cache.jpg webcam.jpg');11 if((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false)) 12 shell_exec('mv -f webcam_cache.jpg webcam.jpg'); 12 13 } 13 14 //echo('.');
Note:
See TracChangeset
for help on using the changeset viewer.