Вход Регистрация
Файл: Kagao-v3.0/upload/2create.php
Строк: 45
<?php
/*
 * (c) Kogao Software
 * (u) http://kogaoscript.com/
 */
require('classes/config.php');

    include 
"inc/rain.tpl.class.php";
    include 
"inc/db.php";
    include 
"inc/kategorie.php";
    
    
$_GET['tab'] = 2;
    
    
$db = new db();
    
    if( 
$_SESSION['mobile'] == 'on' and module_mobile == 1 ){
        
    
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;
    
    
//
    
$get = $e->query('SELECT module FROM kategorie_big WHERE id = "'.$_GET['k1'].'"');
    
$row = $e->fetch_assoc($get);
    
    
$e->free_result($get);
    
//
    
    
$info = array( 'title'        => $title3,
                   
'copyright'     => $copyright,
                   
'page'        => 'create2',
                   
'isLogin'    =>  $_SESSION['login'] ? true : false,
                   
'titel'        => 'Anzeige erstellen',
                   
'modul'        => $row['module'] ? $row['module'] : 0,
                   
'isModuleEAN'=> module_productsearch
                   
                   
);

    
$tpl->assign( $info );

    include 
"load.php";
    
    
#->Kategorien
    
$cat = new controller_cate();
    
$tpl->assign("cats", $cat->getCategory());
    
    
$html = $tpl->draw( 'page', $return_string = true );
    echo 
$html;

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