Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
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
* @package FDL
5
*/
6
/**
7
* Retrieve icon file
8
*
9
* @author Anakeen
10
* @version $Id: geticon.php,v 1.6 2006/08/01 15:31:43 eric Exp $
11
* @package FDL
12
* @subpackage
13
*/
14
/**
15
*/
16
17
include_once (
"../WHAT/Lib.Prefix.php"
);
18
include_once (
"Lib.Common.php"
);
19
include_once (
"Lib.Http.php"
);
20
21
include_once (
"FDL/exportfile.php"
);
22
23
$vaultid
= GetHttpVars(
"vaultid"
, 0);
24
$mimetype
= GetHttpVars(
"mimetype"
,
"image"
);
25
26
$dbaccess
=
getDbAccess
();
27
28
$vf
=
newFreeVaultFile
(
$dbaccess
);
29
30
$info
=
new
VaultFileInfo
();
31
if
(
$vf
->Retrieve(
$vaultid
,
$info
) !=
""
) {
32
}
else
{
33
//Header("Location: $url");
34
if
((
$info
->public_access)) {
35
Http_DownloadFile
(
$info
->path,
$info
->name,
$mimetype
,
true
);
36
}
else
{
37
Http_DownloadFile
(
"Images/doc.png"
,
"unknow"
,
"image/png"
,
true
);
38
}
39
}
$vaultid
$vaultid
Definition:
geticon.php:23
newFreeVaultFile
newFreeVaultFile($dbaccess)
Definition:
Lib.Util.php:17
$mimetype
$mimetype
Definition:
geticon.php:24
VaultFileInfo
Definition:
Class.VaultDiskStorage.php:441
$dbaccess
$dbaccess
Definition:
geticon.php:26
getDbAccess
getDbAccess()
Definition:
Lib.Common.php:368
Http_DownloadFile
Http_DownloadFile($filename, $name, $mime_type= '', $inline=false, $cache=true, $deleteafter=false)
Definition:
Lib.Http.php:225
$vf
$vf
Definition:
geticon.php:28
$info
$info
Definition:
geticon.php:30
← centre documentaire
© anakeen