Файл: public_html/create.php
Строк: 55
<?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";
$db = new db();
if(empty($_SESSION['login'])){
$e->location('mainmeineanzeigen');
exit();
}
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;
include "load.php";
$info = array( 'title' => 'Anzeige erstellen',
'copyright' => $_init['copyrightname'],
'page' => 'create',
'isLogin' => $_SESSION['login'] ? true : false,
'titel' => 'Kategorie auswählen - Anzeige erstellen',
'isModuleEAN'=> module_productsearch
);
$tpl->assign( $info );
$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 );
}
}
?>