source: pmb4.1/trunk/fuentes/pmb/catalog/explnum/del_explnum.inc.php @ 478

Last change on this file since 478 was 478, checked in by mabarracus, 4 years ago

copy trusty code 4.1

  • 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: del_explnum.inc.php,v 1.8 2009-07-03 09:35:43 kantin Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");
8
9//verification des droits de modification notice
10$acces_m=1;
11if ($gestion_acces_active==1 && $gestion_acces_user_notice==1) {
12        require_once("$class_path/acces.class.php");
13        $ac= new acces();
14        $dom_1= $ac->setDomain(1);
15        $acces_m = $dom_1->getRights($PMBuserid,$id,8);
16}
17
18if ($acces_m==0) {
19
20        error_message('', htmlentities($dom_1->getComment('mod_enum_error'), ENT_QUOTES, $charset), 1, '');
21       
22} else {
23
24        print "<div class=\"row\"><h1>${msg[313]}</h1></div>";
25       
26        $expl = new explnum($explnum_id);
27        $expl->delete();
28       
29        print "<div class='row'><div class='msg-perio'>".$msg[maj_encours]."</div></div>";
30        $id_form = md5(microtime());
31        $retour = "./catalog.php?categ=isbd&id=$id";
32        print "
33                <form class='form-$current_module' name=\"dummy\" method=\"post\" action=\"$retour\" style=\"display:none\">
34                        <input type=\"hidden\" name=\"id_form\" value=\"$id_form\">
35                        </form>
36                <script type=\"text/javascript\">document.dummy.submit();</script>
37                </div>
38                ";
39}
40?>
Note: See TracBrowser for help on using the repository browser.