Problem je da je to neki custom build, pa ja ne mogu da koristim $_SESSION promenljive... Najcudnije je da $_GET, $_POST rade?
Konkretan primer:
index.php
Code:
function refresh()
{
global $smarty;
$smarty->display('transition.tpl');
}
if (!$_SESSION['main_viewed'])
{
$_SESSION['main_viewed'] = "1";
refresh();
die();
}
function refresh()
{
global $smarty;
$smarty->display('transition.tpl');
}
if (!$_SESSION['main_viewed'])
{
$_SESSION['main_viewed'] = "1";
refresh();
die();
}
transition.tpl
Code:
<html>
<head>
<title>Molim Vas sacekajte...</title>
<meta http-equiv='refresh' content='0; url=index.php'>
<link REL="StyleSheet" HREF="main2.css" TYPE="text/css">
</head>
<body>
</body>
</html>
<html>
<head>
<title>Molim Vas sacekajte...</title>
<meta http-equiv='refresh' content='0; url=index.php'>
<link REL="StyleSheet" HREF="main2.css" TYPE="text/css">
</head>
<body>
</body>
</html>
Pomoc?