Projekt

Obecné

Profil

<?
/***** V tomto souboru jsou veskere konstanty pro modul DHCP ******
* Parametry k jednotlivym kategoriim jdou pridavat nasledovne:
* - Globalni parametry:
* - do pole $globalni_parametry se ukladaji presne nazvy parametru
* - do pole $globalni_zadane_hodnoty se ukladaji nazvy pro nazvy formularovych poli
* Pokud obsahuje retezec: (zaskrkavatka)
* _CHECK_ - vytvori se zaskrkavatko bez parametru
* _OnCHECK_ - vytvori se zaskrkavatko s parametrem (on/off)
* _TrueCHECK_ - vytvori se zaskrkavatko s parametrem (true/false)
* (textove pole formulare)
* _UVSTR_ - jedna se o retezec, ktery bude pri ulozeni do conf souboru opatren uvozovkami
* _IP_ - jedna se o IP adresu
* _MAC_ - jedna se o MAC adresu
* _NUM_ - jedna se o cislo
*
* - Subnet, Group a Host parametry se zapisuji stejne pouze s jednim rozdilem. U parametru, ktere se vyskytuji ve vice
* kategoriich, je potreba je nejakym zpusobem odlisit. Napr. do pole $subnet_zadane_hodnoty pridame k jednotlivym nazvum
* _s, do pole $group_zadane_hodnoty _g a do pole $host_zadane_hodnoty _h.
*/
$soubor_dhcp="files/".$_SESSION['online_user_serverIP']."/dhcpd.conf";
$soubor_dhcp_pro_uloz="../files/".$_SESSION['online_user_serverIP']."/dhcpd.conf";
$kontrolni_radek="# configuration for dhcp server\n\n";

$pole_check=array("_CHECK_","_OnCHECK_","_TrueCHECK_");

$img_delete="border=\"0\" src=\"img/delete.jpg\" alt=\"".$lng_delete."\"";
$img_delete2="border=\"0\" src=\"img/delete2.jpg\" alt=\"".$lng_delete."\"";
$img_help="class=\"cursorHelp\" src=\"img/help.jpg\" alt=\"\" border=\"0\"";
$img_help2="class=\"cursorHelp\" src=\"img/help2.jpg\" alt=\"\" border=\"0\"";
$help_parametry="FGCOLOR, '#EBEBEB', BGCOLOR, 'gray', BORDER, 1, CAPTIONFONT, 'Arial', CAPTIONSIZE, 1, TEXTFONT, 'Verdana', TEXTSIZE, '9px'";

$globalni_parametry=array(
"option domain-name",
"option routers",
"option domain-name-servers",
"option subnet-mask",
"option broadcast-address",
"default-lease-time",
"max-lease-time",
"deny unknown-clients",
"authoritative",
"always-broadcast"
);
$globalni_zadane_hodnoty=array(
"domain_name_UVSTR_",
"routers_IP_",
"domain_name_servers_IP_",
"subnet_mask_IP_",
"broadcast_address_IP_",
"default_lease_time_NUM_",
"max_lease_time_NUM_",
"deny_unknown_clients_CHECK_",
"authoritative_CHECK_",
"always_broadcast_OnCHECK_"
);

// parametry pro formulare SUBNET
// parametr subnet musi byt 1., netmask 2.
$subnet_parametry=array(
"subnet",
"netmask",
"option broadcast-address",
"option domain-name-servers",
"default-lease-time",
"max-lease-time",
"range",
"deny unknown-clients",
"always-broadcast"
);
$subnet_zadane_hodnoty=array(
"subnet",
"netmask",
"broadcast_address_s",
"domain_name_servers_s",
"default_lease_time_s_NUM_",
"max_lease_time_s_NUM_",
"range_IP_",
"deny_unknown_clients_s_CHECK_",
"always_broadcast_s_OnCHECK_"
);

// parametry pro formulare GROUP
$group_parametry=array(
"option broadcast-address",
"default-lease-time",
"max-lease-time",
"deny unknown-clients"
);
$group_zadane_hodnoty=array(
"broadcast_address_g",
"default_lease_time_g",
"max_lease_time_g",
"deny_unknown_clients_g_CHECK_"
);

// parametry pro formulare HOST
// parametr "host" musi byt prvni
$host_parametry=array(
"host",
"hardware ethernet",
"fixed-address"
);
$host_zadane_hodnoty=array(
"host",
"hardware_ethernet_MAC_",
"fixed_address_IP_"
);


?>
(7-7/13)