예제 #1
0
//droits d'acces utilisateur/notice (lecture)
$acces_l = 1;
if ($gestion_acces_active == 1 && $gestion_acces_user_notice == 1) {
    require_once "{$class_path}/acces.class.php";
    $ac = new acces();
    $dom_1 = $ac->setDomain(1);
    if (!$art_to_show) {
        $acces_j = $dom_1->getJoin($PMBuserid, 4, 'bulletin_notice');
        //lecture
        $q = "select count(1) from bulletins {$acces_j}  where bulletin_id=" . $bul_id;
        $r = pmb_mysql_query($q, $dbh);
        if (pmb_mysql_result($r, 0, 0) == 0) {
            $acces_l = 0;
        }
    } else {
        $acces_l = $dom_1->getRights($PMBuserid, $art_to_show, 4);
    }
}
if ($acces_l == 0) {
    if (!$art_to_show) {
        error_message('', htmlentities($dom_1->getComment('view_bull_error'), ENT_QUOTES, $charset), 1, '');
    } else {
        error_message('', htmlentities($dom_1->getComment('view_depo_error'), ENT_QUOTES, $charset), 1, '');
    }
} else {
    $form = show_bulletinage_info_catalogage($bul_id);
    if ($art_to_show) {
        $form .= "<script>document.location='#anchor_{$art_to_show}'</script>";
    }
    print $form;
}
예제 #2
0
function do_bull_form($bull_id)
{
    global $recept_deliv_form_bull;
    global $prefix_url_image;
    $prefix_url_image = './../../../';
    $form = $recept_deliv_form_bull;
    $md = show_bulletinage_info_catalogage($bull_id, true);
    $form = str_replace('!!bulletin!!', $md, $form);
    return $form;
}