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
core_css.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: core_css.php,v 1.6 2005/09/27 15:01:15 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
// $Id: core_css.php,v 1.6 2005/09/27 15:01:15 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/core/Action/Core/core_css.php,v $
21
// ---------------------------------------------------------------
22
function
core_css
(&
$action
)
23
{
24
25
$layout = getHttpVars(
"layout"
);
26
$type
= getHttpVars(
"type"
);
27
28
if
(preg_match(
"/([A-Z_-]+):([^:]+):{0,1}[A-Z]{0,1}/"
, $layout, $reg)) {
29
$lfile =
getLayoutFile
($reg[1], strtolower($reg[2]));
30
if
($lfile)
$action
->lay =
new
Layout
(
getLayoutFile
($reg[1], strtolower($reg[2])) ,
$action
);
31
}
32
33
if
(
$type
==
''
||
$type
==
'css'
) {
34
$type
=
'text/css'
;
35
} elseif (
$type
==
'js'
) {
36
$type
=
'text/javascript'
;
37
}
38
39
setHeaderCache
(
$type
);
40
}
41
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase