Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
geticon.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* Retrieve icon file
9
*
10
* @author Anakeen 2002
11
* @version $Id: geticon.php,v 1.6 2006/08/01 15:31:43 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage
15
*/
16
/**
17
*/
18
19
include_once (
"../WHAT/Lib.Prefix.php"
);
20
include_once (
"Lib.Common.php"
);
21
include_once (
"Lib.Http.php"
);
22
23
include_once (
"FDL/exportfile.php"
);
24
25
$vaultid
=
GetHttpVars
(
"vaultid"
, 0);
26
$mimetype
=
GetHttpVars
(
"mimetype"
,
"image"
);
27
28
$wdbaccess
=
getDbAccess
();
29
$dbaccess
=
getParam
(
"FREEDOM_DB"
);
30
31
$vf
=
newFreeVaultFile
(
$dbaccess
);
32
33
if
(
$vf
->Retrieve(
$vaultid
, $info) !=
""
) {
34
}
else
{
35
//Header("Location: $url");
36
if
(($info->public_access)) {
37
Http_DownloadFile
($info->path, $info->name,
$mimetype
,
true
);
38
}
else
{
39
Http_DownloadFile
(
"FREEDOM/Images/doc.gif"
,
"unknow"
,
"image/gif"
,
true
);
40
}
41
}
42
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase