Problem jest takiej natury, nie ma żadnej akcji i żadnego błędu, że tej akcji nie ma?
gdzie szukać przyczyny?
//session_start();
include_once 'config.php';
include_once 'src/class.Database.php';
include_once 'src/class.UserSession.php';
$objUser = UserSession::instance();
$objUser->Impress();
if (($_POST['login'] <> "") and ($_POST['pass'] <> "") and ($objUser->IsLoggedIn() == false)) {
$objUser->Login($_POST['login'], $_POST['pass']);
}
if ($_GET['action'] == 'wyloguj') {
$objUser->LogOut();
}
if (!$objUser->IsLoggedIn()) {
include_once 'template/login.php';
} else {
if(file_exists('template/'.$_GET['action'].'.php')){
include_once 'template/'.$_GET['action'].'.php';
}else{
$zmienna['conntent'] = $_GET['action'];
}
}
echo "<h2 style=\"color:#CC0033\">Prace konserwacyjne na stronie!</h2>";
//komunikat na stronie index
include_once 'template/index.php';