Файл: public_html/index.php
Строк: 86
<?php
//************************************************
//*помогите проекту хотя-бы 5р QIWI +380982206451*
//************************************************
if( file_exists('install.php') ){
?><script>location.href='install.php'</script><?php
die;
}
require('classes/config.php');
require('inc/rain.tpl.class.php');
$_GET['get'] = 'home';
/*old->include*/
include "inc/db.php";
include "inc/kategorie.php";
include "inc/produkte.php";
include "inc/extra.php";
require('classes/session.php');
require('classes/init.php');
require('classes/controller.php');
Controller::dbconnect( $config_controller );
/* @beta function.htaccess */
Controller::go();
Controller::isVerifyEmailAdress();
Session::start();
/* @info check.desktop.mobile */
Controller::isMobile();
/* @info function.add.remove.watchlist */
Controller::setWatchList();
Controller::delWatchList();
/* @info cronjobs.auto */
Controller::pushAdProducts();
Controller::pushLocationInfo();
Controller::pushUTF8();
/* @info templates */
if( $_SESSION['mobile'] == 'on' ){
raintpl::configure("base_url", null );
raintpl::configure("tpl_dir", "tpl/m/" );
raintpl::configure("cache_dir", "tmp/m/" );
}else{
raintpl::configure("base_url",
$config_controller['base_url'] .
$config_controller['base_url_dir'] );
raintpl::configure("tpl_dir", "tpl/" );
raintpl::configure("cache_dir", "tmp/" );
}
$db = new db();
$tpl = new RainTPL;
/* @include system.loader */
include "load.php";
/* @info template.loader */
$templateLoader = array(
'title' => $title,
'copyright' => 'Kogao',
'page' => 'home',
'isLogin' => $_SESSION['login'] ? true : false,
'pageurl' => $config_controller['base_url'] . $config_controller['base_url_dir'],
'isLast' => true,
'showNew' => true,
'isBigAd' => false
);
$tpl->assign( $templateLoader );
/* @info kogao.listViews */
$tpl->assign("cats", Controller::getCategorys());
$tpl->assign("hometopprodukte", Controller::getProductByAd());
$tpl->assign("letzte", Controller::getLastViewedProducts());
$tpl->assign("homelastprodukte", $e->getHomeProducts( 12 , '' ));
$html = $tpl->draw( 'page', $return_string = true );
Controller::dbclose();
echo $html;
//ну блеать рубчик плез кинь +380982206451
?>