From cd46d68991f7ae0cf319f915c5fecdd71b78ee34 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Sat, 1 Mar 2008 18:04:26 +0000 Subject: Reorganisation of the repo structure as discussed on the devel list. - Move the majority of trunk and all branches to the new openslx/ dir. - Move ldap-site-mngmt to contrib/. - Move openslx/trunk/os-plugins/plugins/vmchooser/src/ to openslx-src-tools/trunk/os-plugins/plugins/vmchooser/ git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1591 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/computers/mcdef.php | 132 ----------------------- 1 file changed, 132 deletions(-) delete mode 100644 ldap-site-mngmt/webinterface/computers/mcdef.php (limited to 'ldap-site-mngmt/webinterface/computers/mcdef.php') diff --git a/ldap-site-mngmt/webinterface/computers/mcdef.php b/ldap-site-mngmt/webinterface/computers/mcdef.php deleted file mode 100644 index 51a760ba..00000000 --- a/ldap-site-mngmt/webinterface/computers/mcdef.php +++ /dev/null @@ -1,132 +0,0 @@ -define_dynamic("TRanges", "Webseite"); -if (count($mc['timerange']) > 1){ - foreach($mc['timerange'] as $tr){ - $exptime = explode('_',$tr); - $template->assign(array("MCDAY" => $exptime[0], - "MCBEG" => $exptime[1], - "MCEND" => $exptime[2])); - $template->parse("TRANGES_LIST", ".TRanges"); - } -}else{ - $exptime = explode('_',$mc['timerange']); - $template->assign(array("MCDAY" => $exptime[0], - "MCBEG" => $exptime[1], - "MCEND" => $exptime[2])); - $template->parse("TRANGES_LIST", ".TRanges"); -} - -$expcn = explode('_',$mc['cn']); -$name = array_slice($expcn,1); -$mccn = implode('_',$name); - -$template->assign(array("MCDN" => $mcDN, - "MCCN" => $mccn, - "MCDESC" => $mc['description'], - "LANG" => $mc['language'], - "X" => $mc['start-x'], - "SNMP" => $mc['start-snmp'], - "SSHD" => $mc['start-sshd'], - "XDMCP" => $mc['start-xdmcp'], - "RWHOD" => $mc['start-rwhod'], - "CRON" => $mc['start-cron'], - "CRONTAB" => "", - "PRINTD" => $mc['start-printdaemon'], - "TEX" => $mc['tex-enable'], - "NETBIOS" => $mc['netbios-workgroup'], - "VMWARE" => $mc['vmware'], - "NODEDN" => $nodeDN, - "DEFDN" => "cn=computers,".$auDN, - "MNR" => $mnr, - "SBMNR" => $sbmnr, - "MCNR" => $mcnr)); - -$template->define_dynamic("Crontab", "Webseite"); -if ( count($mc['crontab-entries']) != 0 ){ - if ( count($mc['crontab-entries']) > 1 ){ - foreach ($mc['crontab-entries'] as $crontab){ - $template->assign(array("CRONTAB" => $crontab)); - $template->parse("CRONTAB_LIST", ".Crontab"); - } - } - if ( count($mc['crontab-entries']) == 1 ){ - $template->assign(array("CRONTAB" => $mc['crontab-entries'])); - $template->parse("CRONTAB_LIST", ".Crontab"); - } -} -$template->assign(array("CRONTAB" => "")); -$template->parse("CRONTAB_LIST", ".Crontab"); - -################################################ -# MC kopieren - -$hostorgroup = $exp[0]; -$hgexp = explode('=',$exp[0]); - -$hosts_array = get_hosts($auDN,array("dn","hostname")); -$groups_array = get_groups($auDN,array("dn","cn")); - -$template->define_dynamic("Hosts", "Webseite"); -foreach ($hosts_array as $item){ - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'])); - $template->parse("HOSTS_LIST", ".Hosts"); -} -$template->define_dynamic("Groups", "Webseite"); -foreach ($groups_array as $item){ - $template->assign(array("GDN" => $item['dn'], - "GN" => $item['cn'])); - $template->parse("GROUPS_LIST", ".Groups"); -} - - -# falls TR vorhanden dann soll sie gelöscht werden (flag deltr setzen) -if (count($mc['timerange']) != 0){ - $template->assign(array("DELTR" => "1")); -} -else{ - $template->assign(array("DELTR" => "0")); -} - -################################################################################### - -include("computers_footer.inc.php"); - -?> \ No newline at end of file -- cgit v1.2.3-55-g7522