Changeset 854
- Timestamp:
- Mar 18, 2018, 12:19:26 PM (7 years ago)
- Location:
- trunk/Modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigLinux/Generators/DNS.php
r832 r854 42 42 // Base server 43 43 $Output .= "@\tIN\tA\t".strtolower($DNS['BaseServer'])."\n"; 44 $Output .= "@\tIN\tAAAA\t".strtolower($DNS['BaseServerIPv6'])."\n"; 44 45 45 46 // IPv4 host list … … 75 76 $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n". 76 77 '$TTL '.$DNS['TTL']."\n". 77 "@\tIN\tSOA\t".$DNS[' NameServer'][0].".\troot.".$DNS['Domain'].". (\n".78 "@\tIN\tSOA\t".$DNS['ReverseNameServer'][0].".\troot.".$DNS['Domain'].". (\n". 78 79 "\t\t\t\t".$DNS['Serial']."\t; serial\n". 79 80 "\t\t\t\t".$DNS['Refresh']."\t; refresh\n". … … 109 110 $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n". 110 111 '$TTL '.$DNS['TTL']."\n". 111 "@\tIN\tSOA\t".$DNS[' NameServer'][0].".\troot.".$DNS['Domain'].". (\n".112 "@\tIN\tSOA\t".$DNS['ReverseNameServer'][0].".\troot.".$DNS['Domain'].". (\n". 112 113 "\t\t\t\t".$DNS['Serial']."\t; serial\n". 113 114 "\t\t\t\t".$DNS['Refresh']."\t; refresh\n". … … 158 159 $MinimumTime = 10800; 159 160 $TTL = 86400; 160 $BaseDir = '/var/ named';161 $BaseDir = '/var/cache/bind'; 161 162 //$BaseDir = '/home/chronos/Projekty/centrala/trunk/var/named'; 162 163 if(!file_exists($BaseDir)) die('Base directory "'.$BaseDir.'" not exists.'); … … 175 176 'Description' => 'ZdechovNET community network', 176 177 'BaseDir' => $BaseDir.'/internal/', 177 'MailServer' => array(' centrala.'.$BaseDomain),178 'MailServer' => array('mail.'.$BaseDomain), 178 179 'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 179 180 'BaseServer' => '10.145.64.8', 181 'BaseServerIPv6' => '2a00:e580:244:1::4', 180 182 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 181 183 'Host' => array(), … … 241 243 'Description' => 'ZdechovNET community network', 242 244 'BaseDir' => $BaseDir.'/external/', 243 'MailServer' => array(' centrala.'.$BaseDomain),244 'NameServer' => array('gw-hajda.inext.cz', 'ns 0.xname.org', 'ns2.afraid.org'),245 'MailServer' => array('mail.'.$BaseDomain), 246 'NameServer' => array('gw-hajda.inext.cz', 'ns2.afraid.org', 'ns5.he.net'), 245 247 'BaseServer' => '10.145.64.8', 246 'ReverseNameServer' => array('gw-hajda.inext.cz', 'inext.inext.cz'), 248 'BaseServerIPv6' => '2a00:e580:244:1::4', 249 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 247 250 'Host' => array(), 248 251 'Alias' => array(), … … 283 286 'Description' => 'ZdechovNET community network', 284 287 'BaseDir' => $BaseDir.'/czfree/', 285 'MailServer' => array(' centrala.'.$BaseDomain),288 'MailServer' => array('mail.'.$BaseDomain), 286 289 'NameServer' => array('centrala.'.$BaseDomain, 'mozek'.$BaseDomain), 287 290 'BaseServer' => '10.145.64.8', 291 'BaseServerIPv6' => '2a00:e580:244:1::4', 288 292 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 289 293 'Host' => array(), … … 325 329 'Description' => 'ZdechovNET community network', 326 330 'BaseDir' => $BaseDir.'/internal/', 327 'MailServer' => array(' centrala.'.$BaseDomain),331 'MailServer' => array('mail.'.$BaseDomain), 328 332 'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 329 333 'BaseServer' => '10.145.64.8', 334 'BaseServerIPv6' => '2a00:e580:244:1::4', 330 335 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 331 336 'Host' => array(), -
trunk/Modules/NetworkConfigRouterOS/Routerboard.php
r658 r854 8 8 var $UserName; 9 9 var $Password; 10 var $PrivateKey = ' id_dsa';10 var $PrivateKey = '~/.ssh/id_dsa'; 11 11 var $MaxBurstLineCount = 100; 12 12 var $Debug = false; … … 52 52 $Commands = str_replace('$', '\$', $Commands); 53 53 //$Commands = str_replace(' ', '\ ', $Commands); 54 $Command = $this->SSHPath.' -o ConnectTimeout='.$this->Timeout.' -l '.$this->UserName.' - i '.$this->PrivateKey.' '.$this->HostName.' "'.$Commands.'"';54 $Command = $this->SSHPath.' -o ConnectTimeout='.$this->Timeout.' -l '.$this->UserName.' -o HostKeyAlgorithms=+ssh-dss -o KexAlgorithms=diffie-hellman-group14-sha1 -i '.$this->PrivateKey.' '.$this->HostName.' "'.$Commands.'"'; 55 55 if($this->Debug) echo($Command); 56 56 $Output = array(); -
trunk/Modules/WebCam/WebCam.php
r812 r854 67 67 global $Config; 68 68 $Output = ''; 69 $Output .= '<a href="http://www.zdechov.net/kamery/?id=5"><img alt="Koupaliště" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam5.jpg" /></a>'; 70 $Output .= '<a href="http://www.zdechov.net/kamery/?id=1"><img alt="Webkamera školní hřiště" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam.jpg" /></a>'; 71 $Output .= '<a href="http://www.zdechov.net/kamery/?id=2"><img alt="Webkamera střed obce obloha" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam2.jpg" /></a>'; 72 $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>'; 73 $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>'; 69 $Output .= '<a href="http://www.zdechov.net/kamery/?Id=5"><img alt="Koupaliště" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam5.jpg" /></a>'; 70 $Output .= '<a href="http://www.zdechov.net/kamery/?Id=1"><img alt="Webkamera školní hřiště" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam.jpg" /></a>'; 71 $Output .= '<a href="http://www.zdechov.net/kamery/?Id=2"><img alt="Webkamera střed obce obloha" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam2.jpg" /></a>'; 72 $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>'; 73 $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>'; 74 $Output .= '<a href="http://www.zdechov.net/kamery/?Id=6"><img alt="Lev výběh 1" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam6.jpg" /></a>'; 75 $Output .= '<a href="http://www.zdechov.net/kamery/?Id=7"><img alt="Lev výběh 2" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam7.jpg" /></a>'; 76 $Output .= '<a href="http://www.zdechov.net/kamery/?Id=8"><img alt="Lev domek" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam8.jpg" /></a>'; 74 77 return($Output); 75 78 }
Note:
See TracChangeset
for help on using the changeset viewer.