Changeset 116


Ignore:
Timestamp:
Nov 28, 2008, 9:22:41 AM (16 years ago)
Author:
george
Message:
  • Upraveno: generovacĂ­ PHP skripty.
Location:
system
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • system/backup/do-backup.php

    r112 r116  
    88  if (!is_dir($path))
    99  {
    10     if (!@mkdir($path,$mode))
     10    if (!mkdir($path,$mode))
    1111    {
    1212      mkdirrec(dirname($path),$mode); mkdir($path,$mode);
  • system/generators/dns.php

    r112 r116  
    201201"\t\t\t".$RetryTime."\t; retry\n".
    202202"\t\t\t".$ExpireTime."\t; expire\n".
     203"\t\t\t86400\t; ttl\n".
    203204"\t\t\t)\n".
    204205"\t\t\tTXT\t".'"Community network ZdechovNET"'."\n".
  • system/generators/iptables.php

    r112 r116  
    6060          if($Row['external_ip'] != '')
    6161          {
     62            echo($Row['name'].'='.$Row['external_ip']."\n");
     63           
    6264            exec('/sbin/iptables -t nat -A PreroutingDNAT -i eth1 -d '.$Row['external_ip'].' -j DNAT --to-destination '.$Row['IP']);
    6365            exec('/sbin/iptables -t nat -A PreroutingDNAT -i eth1 -d '.$Row['external_ip'].' -j ACCEPT');
Note: See TracChangeset for help on using the changeset viewer.