diff options
Diffstat (limited to 'ldap-site-mngmt/webinterface/dns')
-rw-r--r-- | ldap-site-mngmt/webinterface/dns/dns.dwt | 79 | ||||
-rw-r--r-- | ldap-site-mngmt/webinterface/dns/dns.php | 26 | ||||
-rw-r--r-- | ldap-site-mngmt/webinterface/dns/dns_footer.inc.php | 18 | ||||
-rw-r--r-- | ldap-site-mngmt/webinterface/dns/dns_header.inc.php | 21 | ||||
-rw-r--r-- | ldap-site-mngmt/webinterface/dns/dns_menu.php | 72 | ||||
-rw-r--r-- | ldap-site-mngmt/webinterface/dns/dns_start.dwt | 30 | ||||
-rw-r--r-- | ldap-site-mngmt/webinterface/dns/menu.dwt | 22 |
7 files changed, 268 insertions, 0 deletions
diff --git a/ldap-site-mngmt/webinterface/dns/dns.dwt b/ldap-site-mngmt/webinterface/dns/dns.dwt new file mode 100644 index 00000000..ec6d0cbc --- /dev/null +++ b/ldap-site-mngmt/webinterface/dns/dns.dwt @@ -0,0 +1,79 @@ +<html> + +<head> + <title>{SEITENTITEL}</title> + <link rel='stylesheet' href='../styles.css' type='text/css'></head> +<body> + +<table cellpadding='0' cellspacing='0' border='0' width='95%' height='8%'> + <tr> + <td width='35%'> + <table cellpadding='5' cellspacing='0' border='0' width='100%'> + <tr valign='top'> + <td width='1'></td> + <td><h2>Rechner und IP Management</h2></td> + </tr> + </table> + </td> + + <td width='40%'> + <table cellpadding='5' cellspacing='0' border='0' width='100%'> + <tr valign='top' align='left'> + <td> + <h4><a href='../start.php' class='headerlink'>Startseite</a> + >> <a href='../au/au.php' class='headerlink'>{AU}</a> [ {DOMAIN} ]</h4> + </td> + </tr> + </table> + </td> + <td width='25%'> + <table cellpadding='5' cellspacing='0' border='0' width='100%' align='right'> + <tr valign='top' align='right'> + <td> + {LOGIN} + </td> + </tr> + </table> + </td> + </tr> +</table> + +<table cellpadding='5' cellspacing='0' border='0' width='95%' height='7%'> +<tr> + <td>{MAINMENU}</td> +</tr> +</table> + +<hr align='center' width='98%' noshade> + + + +<table cellpadding='5' cellspacing='0' border='0' width='100%' height='85%'> + + <tr valign='top' height='100%'> + <td width='28%'> + <table cellpadding='5' cellspacing='0' border='0' width='100%'> + <tr><td> + + {NAVIGATION} + + </td></tr> + </table> + </td> + + <td width='72%'> + <table cellpadding='5' cellspacing='0' border='0' width='100%'> + <tr><td> + + {HAUPTFENSTER} + + </td></tr> + </table> + </td> + + </tr> +</table> + +</body> + +</html> diff --git a/ldap-site-mngmt/webinterface/dns/dns.php b/ldap-site-mngmt/webinterface/dns/dns.php new file mode 100644 index 00000000..dd9e5756 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dns/dns.php @@ -0,0 +1,26 @@ +<?php +include('../standard_header.inc.php'); + +# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt. +$titel = "DNS Zone Management"; +# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc. +$mnr = 0; +$mainnr = 6; +# 3. Dateiname und evtl. Pfad des Templates für die Webseite +$webseite = "dns_start.dwt"; + +include("../class.FastTemplate.php"); + +include('dns_header.inc.php'); + +################################################################################### + +# Menuleisten erstellen +createMainMenu($rollen, $mainnr); +createDNSMenu($rollen, $mnr); + +################################################################################### + +include("dns_footer.inc.php"); + +?>
\ No newline at end of file diff --git a/ldap-site-mngmt/webinterface/dns/dns_footer.inc.php b/ldap-site-mngmt/webinterface/dns/dns_footer.inc.php new file mode 100644 index 00000000..311721c5 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dns/dns_footer.inc.php @@ -0,0 +1,18 @@ +<?php + +$template->assign(array("PFAD" => $START_PATH)); + +# Daten in die Vorlage parsen +$template->parse("LOGIN", "Login"); +$template->parse("MAINMENU", "Mmenu"); +$template->parse("NAVIGATION", "Menu"); +$template->parse("HAUPTFENSTER", "Webseite"); +$template->parse("PAGE", "Vorlage"); + +# Fertige Seite an den Browser senden +$template->FastPrint("PAGE"); + +# Abmelden vom LDAP +ldap_unbind($ds); + +?>
\ No newline at end of file diff --git a/ldap-site-mngmt/webinterface/dns/dns_header.inc.php b/ldap-site-mngmt/webinterface/dns/dns_header.inc.php new file mode 100644 index 00000000..34632b37 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dns/dns_header.inc.php @@ -0,0 +1,21 @@ +<?php +include("dns_menu.php"); + +$template = new FastTemplate("."); + +# dem erstellten Template-Objekt eine Vorlage zuweisen +$definedTemplates = array("Vorlage" => "dns.dwt", + "Login" => "../logout_form.inc.dwt", + "Mmenu" => "../hauptmenue.dwt", + "Menu" => "menu.dwt", + "Webseite" => $webseite); +if (isset($additionalTemplates)) { + foreach ($additionalTemplates as $templateKey => $templateFile) { + $definedTemplates[$templateKey] = $templateFile; + } +} +$template->define($definedTemplates); + +$template->assign(array("SEITENTITEL" => $titel, "ROLLE" => "mainadmin", "AU" => $au_ou, "DOMAIN" => $assocdom, "USERCN" => $usercn)); + +?>
\ No newline at end of file diff --git a/ldap-site-mngmt/webinterface/dns/dns_menu.php b/ldap-site-mngmt/webinterface/dns/dns_menu.php new file mode 100644 index 00000000..1ce8e5b7 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dns/dns_menu.php @@ -0,0 +1,72 @@ +<?php + +function createDNSMenu($rollen , $mnr) { + global $template; + global $START_PATH; + # Struktur der Registerkartenleiste + $hauptmenu = array(array("link" => "dns.php", + "text" => "Übersicht", + "zugriff" => "alle"), + array("link" => "dns.php", + "text" => "SOA Record", + "zugriff" => array("MainAdmin")), + array("link" => "dns.php", + "text" => "INCLUDE Direktiven", + "zugriff" => array("MainAdmin","ZoneAdmin")), + array("link" => "dns.php", + "text" => "Zonen Delgierung", + "zugriff" => array("MainAdmin")), + array("link" => "dns.php", + "text" => "Resource Records", + "zugriff" => array("MainAdmin","HostAdmin","ZoneAdmin"))); + + #$rollen = array_keys($roles); + + # Zusammenstellen der Menuleiste + $template->define_dynamic("Hauptmenu", "Menu"); + $i=0; + foreach($hauptmenu as $item) { + if($item['zugriff'] === "alle" || vergleicheArrays($rollen , $item['zugriff'])) { + if ($i==0) { + if ($mnr==0) { + $zwisch=""; + $lastaktive=true; + $farb="#505050"; + } + else { + $zwisch=""; + $farb="#A0A0A0"; + $lastaktive=false; + } + } + else { + if ($mnr==$i) { + $zwisch=""; + $lastaktive=true; + $farb="#505050"; + } + else { + $farb="#A0A0A0"; + if ($lastaktive) {$zwisch="";} + else {$zwisch="";} + $lastaktive=false; + } + } + $template->assign(array("ZWISCHEN" => $zwisch, + "FARBE" => $farb, + "LINK_M" => $item["link"], + "TEXT_M" => $item["text"])); + $template->parse("HAUPTMENU_LIST", ".Hauptmenu"); + + } + $i=$i+1; + } + if ($lastaktive) {$template->assign(array("ENDE" => ""));} + else { + $template->assign(array("ENDE" => "")); + } + +} + + +?>
\ No newline at end of file diff --git a/ldap-site-mngmt/webinterface/dns/dns_start.dwt b/ldap-site-mngmt/webinterface/dns/dns_start.dwt new file mode 100644 index 00000000..0595dde7 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dns/dns_start.dwt @@ -0,0 +1,30 @@ +<table border='0' cellpadding='5' cellspacing='0' width='90%'> + <tr> + <td colspan='2'><h3>Modul - DNS Zonen Management: </h3></td> + </tr> + <tr> + <td height='10'></td> + </tr> + <tr> + <td> + <p>Dieses Modul dient der Verwaltung ...<br> + Benutzen Sie die Navigation links, um die einzelnen Verwaltungsbereiche anzusteuern:</p> + <ul> + <li><p><b>SOA Record</b></p> + Verwalten Sie hier den Start Of Authority (SOA) ihrer DNS Zone ... + </li> + <li><p><b>Include Direktiven</b></p> + Verwalten Sie hier die $INCLUDE Direktiven ihrer includeten Zonendateien ... + </li> + <li><p><b>Zonen Delegierung</b></p> + Delegieren Sie hier neue DNS Zonen ... + </li> + <li><p><b>Resource Records Zone</b></p> + Verwalten Sie hier alle weiteren Namenseintraege ihrer Zone und deren RRs ... + </li> + </ul> + + </td> + </tr> + +</table>
\ No newline at end of file diff --git a/ldap-site-mngmt/webinterface/dns/menu.dwt b/ldap-site-mngmt/webinterface/dns/menu.dwt new file mode 100644 index 00000000..a57ab962 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dns/menu.dwt @@ -0,0 +1,22 @@ + +<table cellpadding='5' cellspacing='0' border='0' width='100%'> + + + + <!-- BEGIN DYNAMIC BLOCK: Hauptmenu --> + + <tr valign='middle' align='left'>
+
+ <td width='8%' align='right' style="border-style=none;"></td> + <td width="8%" align="left" style="border-width:1 0 1 1;border-color:#000000;border-style:solid;padding:5;background-color:{FARBE}"> </td>
+ <td width="74%" align="left" style="border-width:1 1 1 0;border-color:#000000;border-style:solid;padding:5;background-color:{FARBE}"> + <a href="{LINK_M}" style="text-decoration:none"><b class="standard_schrift">{TEXT_M}</b></a></td>
+ <td width='10%'> </td> + + </tr> + <tr height='5'></tr> + <!-- END DYNAMIC BLOCK: Hauptmenu -->
+ + + +</table>
\ No newline at end of file |