Core  3.2
PHP API documentation
 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 
27 
29 
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
Definition: geticon.php:23
newFreeVaultFile($dbaccess)
Definition: Lib.Util.php:17
$mimetype
Definition: geticon.php:24
$dbaccess
Definition: geticon.php:26
getDbAccess()
Definition: Lib.Common.php:368
Http_DownloadFile($filename, $name, $mime_type= '', $inline=false, $cache=true, $deleteafter=false)
Definition: Lib.Http.php:225
$vf
Definition: geticon.php:28
$info
Definition: geticon.php:30
← centre documentaire © anakeen