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
helpview.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
* Return Help Files
9
*
10
* @author Anakeen 2000
11
* @version $Id: helpview.php,v 1.6 2004/10/05 10:26:12 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage CORE
15
*/
16
/**
17
*/
18
19
include_once (
"Lib.Http.php"
);
20
21
function
helpview
(&
$action
)
22
{
23
24
$appname
= (
GetHttpVars
(
"appname"
));
25
$filename
= (
GetHttpVars
(
"filename"
));
26
27
if
(
$filename
==
""
)
$filename
= strtoupper(
$appname
) .
".pdf"
;
28
29
$pdffile =
$action
->GetParam(
"CORE_PUBDIR"
) .
"/Docs/$filename"
;
30
if
(file_exists($pdffile)) {
31
Http_DownloadFile
($pdffile,
"$filename"
,
"application/pdf"
);
32
}
else
{
33
$errtext = sprintf(_(
"file for %s not found."
) ,
$appname
);
34
$action
->ExitError($errtext);
35
}
36
}
37
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase