-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsave_notice_pos.php
More file actions
executable file
·22 lines (17 loc) · 1.1 KB
/
save_notice_pos.php
File metadata and controls
executable file
·22 lines (17 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: save_notice_pos.php,v 1.7 2015-04-03 11:16:23 jpermanne Exp $
$base_path=".";
$base_noheader=1;
$base_nobody=1;
$base_auth = "ADMINISTRATION_AUTH";
require_once("includes/init.inc.php");
if (!$grille_typdoc) $grille_typdoc='a' ;
if (!$grille_niveau_biblio) $grille_niveau_biblio='m' ;
$requete = "delete from grilles where grille_niveau_biblio='$grille_niveau_biblio' and grille_typdoc='$grille_typdoc' ".($grille_location?"and grille_localisation='$grille_location' ":"");
$res = pmb_mysql_query($requete, $dbh) or die("Big problem: <br />".pmb_mysql_error()."<br />$requete");
$requete = "insert into grilles set grille_niveau_biblio='$grille_niveau_biblio', grille_typdoc='$grille_typdoc', ".($grille_location?"grille_localisation='$grille_location', ":"")."descr_format='".$datas."' ";
$res = pmb_mysql_query($requete, $dbh) or die("Big problem: <br />".pmb_mysql_error()."<br />$requete");
echo "OK";