-
Notifications
You must be signed in to change notification settings - Fork 0
/
css.php
62 lines (50 loc) · 1.35 KB
/
css.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*******************************************************************************
*
* @author : Dominik Bonsch <[email protected]>
* @date :
* @copyright : Webfrap Developer Network <[email protected]>
* @project : Webfrap Web Frame Application
* @projectUrl : http://webfrap.net
*
* @licence : BSD License see: LICENCE/BSD Licence.txt
*
* @version: @package_version@ Revision: @package_revision@
*
* Changes:
*
*******************************************************************************/
define('WGT_ERROR_LOG','log.css.html');
include './conf/bootstrap.plain.php';
Webfrap::$indexCache = 'cache/autoload_css/';
if (isset($_GET['l']))
{
$tmp = explode('.',$_GET['l']);
$type = $tmp[0];
$id = $tmp[1];
if ( !ctype_alnum($type) )
$type = 'list';
if ( !ctype_alnum(str_replace('-', '', $id)) )
$id = 'default';
}
else
{
$type = 'list';
$id = 'default';
}
Webfrap::loadClassIndex( $type.'/'.$id );
$webfrap = Webfrap::init();
Webfrap::$autoloadPath[] = View::$themePath.'src/';
$cache = new LibCacheRequestCss();
if ( isset($_GET['clean']) )
$cache->clean();
if ( 'file' == $type )
{
if ( !$cache->loadFileFromCache( $id ) )
$cache->publishFile( $id );
}
else // default ist eine liste
{
if ( !$cache->loadListFromCache( $id ) )
echo $cache->publishList( $id );
}