Changeset 245


Ignore:
Timestamp:
Aug 29, 2009, 9:28:25 AM (15 years ago)
Author:
george
Message:
  • Oprveno: Nastavení konfigurace DNS serverů.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/error.php

    r219 r245  
    2828    $Backtrace[0]['function'] = '';
    2929    $Backtrace[0]['args'] = '';
     30    $Backtrace[0]['file'] = '';
     31    $Backtrace[0]['line'] = '';
    3032    //$First = array_shift($Backtrace);
    3133    //print_r($First);
  • trunk/network/user_hosts.php

    r234 r245  
    1010  function Show()
    1111  {
     12    global $Config;
     13   
    1214    $Output = '<div align="center" style="font-size: small;"><table class="WideTable">';
    1315    $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  
    7070  {
    7171    $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".
    7373    '$TTL '.$DNS['TTL']."\n".
    7474    "@\tIN\tSOA\t".$DNS['NameServer'][0].".\troot.".$DNS['Domain'].".  (\n".
     
    7979    "\t\t\t\t".$DNS['Minimum']."\t; minimum\n".
    8080    "\t\t\t\t)\n";
    81     foreach($DNS['NameServer'] as $NameServer)
     81    foreach($DNS['ReverseNameServer'] as $NameServer)
    8282    {
    8383      if(substr($NameServer, -strlen($DNS['Domain'])) == $DNS['Domain'])
     
    111111  'MailServer' => array('centrala.'.$BaseDomain),
    112112  'NameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
     113  'ReverseNameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
    113114  'Host' => array(),
    114115  'Alias' => array(),
     
    163164  'BaseDir' => '/var/named/external/',
    164165  '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'),
    166168  'Host' => array(),
    167169  'Alias' => array(),
     
    199201  'BaseDir' => '/var/named/czfree/',
    200202  '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),
    202205  'Host' => array(),
    203206  'Alias' => array(),
     
    235238  'BaseDir' => '/var/named/internal/',
    236239  '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),
    238242  'Host' => array(),
    239243  'Alias' => array(),
  • trunk/webcam/webcam_refresh.php

    r228 r245  
    22include('../global.php');
    33
     4$Config['Web']['ShowPHPError'] = true;
    45while(1)
    56{
     
    89  {
    910    $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');
    1213  }
    1314  //echo('.');
Note: See TracChangeset for help on using the changeset viewer.