Вход Регистрация
Файл: public_html/page.php
Строк: 60
<?php
    
    
require('classes/config.php');
    include 
"inc/rain.tpl.class.php";
    include 
"inc/db.php";
    include 
"inc/kategorie.php";
    include 
"inc/extra.php";
    include 
"inc/produkt.php";
    
$db = new db();
    
    if( 
$_SESSION['mobile'] == 'on' and module_mobile == ){
        
    
raintpl::configure("base_url"null );
    
raintpl::configure("tpl_dir""tpl/m/" );
    
raintpl::configure("cache_dir""tmp/m/" );
        
    }else{
    
    
raintpl::configure("base_url"null );
    
raintpl::configure("tpl_dir""tpl/" );
    
raintpl::configure("cache_dir""tmp/" );

    }

    
$tpl = new RainTPL;
    
    include 
"load.php";
        
    
$page $db->query('SELECT name, html FROM pages WHERE id = "'.$_GET['id'].'"');
    
$pageinfo $db->fetch_assoc($page);
    
    
    
$info = array( 'titel'        => $pageinfo["name"],
                   
'title'        => $pageinfo["name"],
                   
'beschreib'    => substr(str_replace(array("rn""r""n"), ''strip_tagshtmlspecialchars_decode$pageinfo["html"] ) )), 0157),
                   
'copyright'     => 'Kogao',
                   
'page'        => 'pageData',
                   
'pageData'    => utf8_encode(htmlspecialchars_decode($pageinfo["html"])),
                   
'isLogin'    =>  $_SESSION['login'] ? true false
                    
);

    
$tpl->assign$info );
    
    
#->Kategorien
    
$cat = new controller_cate();
    
$tpl->assign("cats"$cat->getCategory());
    
    
$ext = new extras();
    
$tpl->assign("letzte"$ext->getList());
    
    
    
$html $tpl->draw'page'$return_string true );
    echo 
$html;

        
        class 
str{
            function 
cut($t){
                return 
substr($t1);
            }
        }
        
?>
Онлайн: 1
Реклама