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
freedom_editstate.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
* Generated Header (not documented yet)
9
*
10
* @author Anakeen 2000
11
* @version $Id: freedom_editstate.php,v 1.5 2005/06/28 08:37:46 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage GED
15
*/
16
/**
17
*/
18
19
include_once (
"FDL/Class.Doc.php"
);
20
21
function
freedom_editstate
(&
$action
)
22
{
23
$dbaccess
=
$action
->GetParam(
"FREEDOM_DB"
);
24
$docid
=
GetHttpVars
(
"id"
, 0);
25
26
$doc
=
new_Doc
(
$dbaccess
,
$docid
);
27
$action
->lay->Set(
"docid"
,
$docid
);
28
$action
->lay->Set(
"title"
,
$doc
->title);
29
30
$action
->lay->set(
"tablehead"
,
"tableborder"
);
31
32
if
(
$action
->Read(
"navigator"
,
""
) ==
"NETSCAPE"
) {
33
if
(preg_match(
"/rv:([0-9.]+).*/"
,
$_SERVER
[
'HTTP_USER_AGENT'
], $reg)) {
34
if
(floatval($reg[1] >= 1.6)) {
35
$action
->lay->set(
"tablehead"
,
"tablehead"
);
36
}
37
}
38
}
39
}
40
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase