To asi ne no,jedine user_admin mozna bude nekde v admin.php vystevetleno jestli pomuze kdyz sem dam.
<?PHP
if($_SESSION['user_admin']>0)
{
$adminPath = "./pages/admin/";
if(isset($_GET['a']) && !empty($_GET['a']))
{
if(file_exists($adminPath.$_GET['a'].".php"))
{
include($adminPath.$_GET['a'].".php");
}
else {
include($adminPath."home.php");
}
} else
{
include($adminPath."home.php");
}
}
else
{
echo'<p class="meldung">Nemate opravneni vstoupit do teto sekce.</p>';
}
?>