Файл: public_html/last.php
Строк: 45
<?php
require('classes/config.php');
if($_GET['sk']){
include "inc/db.php";
$e->query('DELETE FROM list WHERE ip = "'.$_SERVER['REMOTE_ADDR'].'"');
$e->location('last');
die;
}
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();
raintpl::configure("base_url", null );
raintpl::configure("tpl_dir", "tpl/" );
raintpl::configure("cache_dir", "tmp/" );
$tpl = new RainTPL;
include "load.php";
$info = array( 'title' => $title7,
'copyright' => $copyright,
'page' => 'last',
'isLogin' => $_SESSION['login'] ? true : false,
'titel' => 'Zuletzt besuchte Anzeigen'
);
$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($t, 1, 2 );
}
}
?>