-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfichier.php
More file actions
executable file
·87 lines (74 loc) · 2.13 KB
/
fichier.php
File metadata and controls
executable file
·87 lines (74 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: fichier.php,v 1.4 2015-04-03 11:16:23 jpermanne Exp $
// définition du minimum nécéssaire
$base_path=".";
$base_auth = "FICHIER_AUTH";
$base_title = "\$msg[onglet_fichier]";
$prefix = "gestfic0";
if ((isset($_POST["dest"])) && ($_POST["dest"]=="TABLEAU")) {
$base_noheader=1;
}
require_once ("$base_path/includes/init.inc.php");
// modules propres à demandes.php ou à ses sous-modules
require("$include_path/templates/fichier.tpl.php");
// création de la page
switch($dest) {
case "TABLEAU":
break;
case "TABLEAUHTML":
header("Content-Type: application/download\n");
header("Content-Disposition: atttachement; filename=\"tableau.html\"");
print "<html><head>" .
'<meta http-equiv=Content-Type content="text/html; charset='.$charset.'" />'.
"</head><body>";
echo "<h1>".htmlentities($msg['onglet_fichier'].$msg[1003].$msg[1001],ENT_QUOTES,$charset)."</h1>";
break;
default:
print "<div id='att' style='z-Index:1000'></div>";
print $menu_bar;
print $extra;
print $extra2;
print $extra_info;
if($use_shortcuts) {
include("$include_path/shortcuts/circ.sht");
}
echo window_title($database_window_title.$msg['onglet_fichier'].$msg[1003].$msg[1001]);
print $fichier_layout;
break;
}
switch($categ){
case 'consult':
include("$base_path/fichier/fichier_consult.inc.php");
break;
case 'saisie':
include("$base_path/fichier/fichier_saisie.inc.php");
break;
case 'panier':
include("$base_path/fichier/fichier_panier.inc.php");
break;
case 'gerer':
include("$base_path/fichier/fichier_gestion.inc.php");
break;
default:
include("$include_path/messages/help/$lang/module_fichier.txt");
break;
}
switch($dest) {
case "TABLEAU":
break;
case "TABLEAUHTML":
print $footer;
print "</body>" ;
break;
default:
print $fichier_layout_end;
// pied de page
print $footer;
print "</body>" ;
break;
}
// deconnection MYSql
pmb_mysql_close($dbh);