Вход Регистрация
Файл: public_html/artikel.php
Строк: 100
<?php
/*
 _
| | _____   __ _  __ _  ___  
| |/ / _  / _` |/ _` |/ _  
|   < (_) | (_| | (_| | (_) |
|_|____/ __, |__,_|___/ 
           |___/             

Developer: Stevie-Ray Zilka
Copyright: Stevie-Ray Zilka
Version:   3.8 BigShort

*/

require('classes/config.php');

    include 
"inc/rain.tpl.class.php";
    include 
"inc/db.php";
    include 
"inc/kategorie.php";
    include 
"inc/produkt.php";
    include 
"inc/extra.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/" );
    
    function 
loadPhotosMobile($photo$photo1 NULL){

        
$photo str_replace($photo1.'|-|'''$photo);
        
$photo str_replace($photo1''$photo);
    
        if(!empty(
$photo)){
        
$photo explode('|-|'$photo);
        
$count count($photo);
    
    
    
        for(
$i=0$i<$count$i++){
            
?><div style="float:left; width:100%;"><img src="tpl/upload/<?php echo $photo[$i]; ?>.jpg" width="100%"></div><?php
    
        
}
    
        }
    
    }
        
    }else{
    
    
raintpl::configure("base_url"null );
    
raintpl::configure("tpl_dir""tpl/" );
    
raintpl::configure("cache_dir""tmp/" );

    }

    
$e->error();
    
$e->setViewCount$e->_GET('id') );
    
$e->setProductLastListView();
    
    function 
setImmobilienInfo($uid){
        global 
$e;
        return 
$e->immobilienInfos($uid);    
    }
    
    function 
andereAnzeigen($id){
        global 
$e;
        return 
$e->productViewCustomer($id);
    }
    
    function 
getIntress($id$art){
        global 
$e;
        return 
$e->productViewSimlear($id$art);
    }
    
    function 
getGeo($db_structure NULL$plz NULL){
        global 
$e;
        return 
$e->geoStation(
            array(
                
"db"    => $db_structure,
                
"plz"    => $plz
            
)
        );
    }
    
    function 
getname(){
        global 
$e;
        return 
$e->seoGetTitle();
    }

    
$tpl = new RainTPL;
    
    include 
"load.php";
    
    
$info = array( 'title'        => getname(),
                   
'copyright'     => $copyright,
                   
'page'        => 'item',
                   
'isLogin'    =>  $_SESSION['login'] ? true false,
                   
'pageurl'    => 'http://' $_SERVER['HTTP_HOST'] . $_SERVER['REDIRECT_URL'],
                   
'pageurl2'    => $_init['baseurl'],
                   
'isWatchList'=> $e->isWatchList(),
                   
'titel'        => getname()
                   );

    
$tpl->assign$info );

    
    function 
getUserInformation($id$bb){
    
        global 
$e;
        
        
$getUserInfo $e->query('SELECT '.htmlspecialchars($bb).' FROM user WHERE id = "'.$id.'"');
        
$getUserRow  $e->fetch_assoc($getUserInfo);
        
        return 
$getUserRow[$bb];

    }
    
    
#->Kategorien
    
$cat = new controller_cate();
    
$tpl->assign("cats"$cat->getCategory());
    
    
#->Produkt
    
$pro = new produkt();
    
$tpl->assign("produkt"$pro->getData());
    
    
#->zuletzt->Kleinanzeigen
    
$klein = new extras();
    
$tpl->assign("letzte"$klein->anzeigen());
    
    
$html $tpl->draw'page'$return_string true );
    echo 
$html;

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