source: pmb4.2/trunk/fuentes/pmb/catalog/serials/serial_view.inc.php @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1<?php
2// +-------------------------------------------------+
3// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4// +-------------------------------------------------+
5// $Id: serial_view.inc.php,v 1.12 2015-04-03 11:16:28 jpermanne Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");
8
9// résultat de recherche pour gestion des périodiques
10echo str_replace('!!page_title!!', $msg[4000].$msg[1003].$msg[show], $serial_header);
11               
12//print $serial_access_form;
13
14//droits d'acces utilisateur/notice (lecture)
15$acces_l=1;
16if ($gestion_acces_active==1 && $gestion_acces_user_notice==1) {
17        require_once("$class_path/acces.class.php");
18        $ac= new acces();
19        $dom_1= $ac->setDomain(1);
20        $acces_l = $dom_1->getRights($PMBuserid,$serial_id,4);  //lecture
21}
22
23if ($acces_l==0) {
24        error_message('', htmlentities($dom_1->getComment('view_seri_error'), ENT_QUOTES, $charset), 1, '');
25} else {
26        if($serial_id) {
27                $myQuery = pmb_mysql_query("SELECT * FROM notices WHERE notice_id=$serial_id ", $dbh);
28        }
29       
30        if($serial_id && pmb_mysql_num_rows($myQuery)) {
31                $sort_children = 1;
32                show_serial_info($serial_id, $page, $nbr_lignes);
33        } else {
34                print "<div class=\"row\"><div class=\"msg-perio\">".$msg['catalog_serie_impossible_aff']."</div></div>";
35        }
36}
Note: See TracBrowser for help on using the repository browser.