Esempio n. 1
0
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: domain.inc.php,v 1.7.4.1 2015-10-02 08:37:08 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once "{$class_path}/acces.class.php";
require_once "{$include_path}/templates/acces.tpl.php";
//recuperation domaine
if (!$id) {
    return;
}
if (!$ac) {
    $ac = new acces();
    $t_cat = $ac->getCatalog();
}
if (!$dom) {
    $dom = $ac->setDomain($id);
}
echo window_title($database_window_title . $msg[7] . $msg[1003] . $msg[1001]);
//construction menu
$admin_menu_acces = "<h1>" . htmlentities($msg["admin_menu_acces"], ENT_QUOTES, $charset) . "<span>&nbsp;&gt;&nbsp;!!menu_sous_rub!!</span></h1>";
$admin_menu_acces .= "<div class='hmenu'>";
foreach ($t_cat as $k => $v) {
    $lib = htmlentities($v['comment'], ENT_QUOTES, $charset);
    $admin_menu_acces .= '<span';
    if ($id == $k) {
        $admin_menu_acces .= " class='selected'";
        $menu_sous_rub = $lib;
    }