<?php
$_SESSION['S_Start']=1;

require_once ('inc/core.php');

include_once( 'password_protect.php' );

# istawienie jezyka
if( ! isset( $_SESSION['S_LangId']  ) ){
	$_SESSION['S_LangId'] = 1; // pol
}
$_SESSION['S_LangId'] = ( isset($_POST['lang']) ? $_POST['lang'] : $_SESSION['S_LangId'] );




$subsmarty -> assign("pageTracker", 0 );
// ############## tresc php ##############################
if( isset(  $error_msg ) ) $subsmarty -> assign("error_msg", $error_msg );
// ###############  display *.tpl ########################
$Strona = new cwebpage ();
$Strona -> setTitle ( '' );
$Strona -> setJSScripts ( 'admin.js,advajax.js,overlib_mini.js' );
$Strona -> setCsses ( 'style.css,admin.css' );
$Strona -> setContent ( $subsmarty->fetch(TEMPLATES_DIR.'/admin.tpl.html'));
$smarty->assign('Content', $Strona -> Content );
$smarty->assign('Title', $Strona -> Title );
$smarty->assign('JSScripts', $Strona -> JSScripts );
$smarty->assign('Csses', $Strona -> Csses );
//$smarty->debugging = true;
$smarty->display(TEMPLATES_DIR.'/index.tpl.html');

?>

