[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 4 /** 5 6 * Configuration du serveur dhcp 7 * @Version $Id: config.php 8568 2015-03-15 14:40:20Z plouf $ 8 9 * @Projet LCS / SambaEdu 10 11 * @auteurs GrosQuicK eric.mercier@crdp.ac-versailles.fr 12 13 * @note 14 15 * @Licence Distribue sous la licence GPL 16 17 */ 18 19 20 /** 21 22 * @Repertoire: dhcp 23 24 * file: config.php 25 */ 26 27 28 // init html code 29 include "entete.inc.php"; 30 include "ldap.inc.php"; 31 include "ihm.inc.php"; 32 require_once "dhcpd.inc.php"; 33 34 35 36 37 $action = $_POST['action']; 38 39 if (is_admin("system_is_admin",$login)=="Y") 40 { 41 42 //aide 43 $_SESSION["pageaide"]="Le_module_DHCP#Configuration_du_serveur_DHCP"; 44 45 $content .= "<h1>".gettext("Paramètres du serveur DHCP")."</h1>"; 46 switch($action) { 47 case '' : 48 case 'index' : 49 $content .= dhcp_config_form(""); 50 $content .= dhcpd_status(); 51 break; 52 53 case 'newconfig' : 54 $error = dhcp_update_config(); 55 $content .= dhcp_config_form($error); 56 if ($error=="") {dhcpd_restart();} 57 $content .= dhcpd_status(); 58 break; 59 case 'restart' : 60 dhcpd_restart(); 61 $content .= dhcp_config_form(""); 62 $content .= dhcpd_status(); 63 break; 64 case 'stop' : 65 dhcpd_stop(); 66 $content .= dhcp_config_form(""); 67 $content .= dhcpd_status(); 68 break; 69 70 default : 71 $title = ''; 72 $content = ''; 73 return; 74 } 75 print "$content\n"; 76 } 77 else 78 { 79 print (gettext("Vous n'avez pas les droits nécessaires pour ouvrir cette page...")); 80 } 81 82 // Footer 83 include ("pdp.inc.php"); 84 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |