session_set_cookie_params(3600);
session_start();
if ( isset($_GET['m']) ) //ustalanie miesiaca w kalendarzu
{
$_SESSION['miesiac'] = $_GET['m'];
}
else
{
if (!isset($_SESSION['miesiac']))
{
session_regenerate_id();
$akt_mies=date('n');
if ($akt_mies == 1) $_SESSION['miesiac'] = 'sty'; // wartosc poczatkowa zmiennej
if ($akt_mies == 2) $_SESSION['miesiac'] = 'lut';
if ($akt_mies == 3) $_SESSION['miesiac'] = 'mar';
if ($akt_mies == 4) $_SESSION['miesiac'] = 'kwi';
if ($akt_mies == 5) $_SESSION['miesiac'] = 'maj';
if ($akt_mies == 6) $_SESSION['miesiac'] = 'cze';
if ($akt_mies == 7) $_SESSION['miesiac'] = 'lip';
if ($akt_mies == 8) $_SESSION['miesiac'] = 'sie';
if ($akt_mies == 9) $_SESSION['miesiac'] = 'wrz';
if ($akt_mies == 10) $_SESSION['miesiac'] = 'paz';
if ($akt_mies == 11) $_SESSION['miesiac'] = 'lis';
if ($akt_mies == 12) $_SESSION['miesiac'] = 'gru';
}
}
if ( isset($_GET['s']) ) //ustalanie podstrony
{
$_SESSION['strona'] = $_GET['s'];
}
else
{
if (!isset($_SESSION['strona']))
{
session_regenerate_id();
$_SESSION['strona'] = 'sg'; // wartosc poczatkowa zmienne
}
}
?>
if ($_SESSION['strona'] == "sg") include("strona_glowna.inc");
if ($_SESSION['strona'] == "film_pobr") include("film_pobranie.inc");
if ($_SESSION['strona'] == "wyd") include("wydarzenia_spis.inc");
if ($_SESSION['strona'] == "wyd_oauam") include("wydarzenia/wydarzenia_oauam.inc");
if ($_SESSION['strona'] == "wyd_100h") include("wydarzenia/wydarzenia_100h.inc");
if ($_SESSION['strona'] == "wyd_Bowell") include("wydarzenia/wydarzenia_Bowell.inc");
if ($_SESSION['strona'] == "wyd_potarz") include("wydarzenia/wydarzenia_potarz.inc");
if ($_SESSION['strona'] == "wyd_skoki") include("wydarzenia/wydarzenia_skoki.inc");
if ($_SESSION['strona'] == "wyd_astrolab") include("wydarzenia/wydarzenia_astrolab.inc");
if ($_SESSION['strona'] == "wyd_muz_arch") include("wydarzenia/wydarzenia_muz_arch.inc");
if ($_SESSION['strona'] == "wyd_noc") include("wydarzenia/wydarzenia_noc.inc");
if ($_SESSION['strona'] == "wyd_leszno") include("wydarzenia/wydarzenia_leszno.inc");
if ($_SESSION['strona'] == "test") include("wydarzenia_oauam_test.inc");
if ($_SESSION['strona'] == "omra") include("omra.inc");
if ($_SESSION['strona'] == "nie") include("niebo.inc");
if ($_SESSION['strona'] == "oa") include("oauam.inc");
if ($_SESSION['strona'] == "art") include("artykuly.inc");
if ($_SESSION['strona'] == "fot") include("fotki.inc");
if ($_SESSION['strona'] == "roz") include("rozrywka.inc");
if ($_SESSION['strona'] == "form") include("formularz.inc");
if ($_SESSION['strona'] == "wys") include("wyslij.inc");
if ($_SESSION['strona'] == "fot_us_mer") include("astro_fotki/us_merkury.inc");
if ($_SESSION['strona'] == "fot_us_wen") include("astro_fotki/us_wenus.inc");
if ($_SESSION['strona'] == "fot_us_mar") include("astro_fotki/us_mars.inc");
if ($_SESSION['strona'] == "fot_us_jow") include("astro_fotki/us_jowisz.inc");
if ($_SESSION['strona'] == "fot_us_sat") include("astro_fotki/us_saturn.inc");
if ($_SESSION['strona'] == "fot_gm_eta") include("astro_fotki/gm_eta_carinae.inc");
if ($_SESSION['strona'] == "fot_gm_kra") include("astro_fotki/gm_krab.inc");
if ($_SESSION['strona'] == "fot_gm_m42") include("astro_fotki/gm_m42.inc");
if ($_SESSION['strona'] == "fot_gm_m57") include("astro_fotki/gm_m57.inc");
if ($_SESSION['strona'] == "fot_gw_dro") include("astro_fotki/gw_droga_mleczna.inc");
if ($_SESSION['strona'] == "fot_gw_lmc") include("astro_fotki/gw_lmc.inc");
if ($_SESSION['strona'] == "fot_gw") include("astro_fotki/gw.inc");
if ($_SESSION['strona'] == "nie_slo") include("efemerydy/wsch_zach_slonc_2009.inc");
if ($_SESSION['strona'] == "nie_dl") include("efemerydy/dl_dnia_nocy_2009.inc");
if ($_SESSION['strona'] == "nie_ksi") include("efemerydy/wsch_zach_ksiez_2009.inc");
if ($_SESSION['strona'] == "nie_fazy") include("efemerydy/fazy_ksiez_2009.inc");
if ($_SESSION['strona'] == "nie_mapk") include("efemerydy/mapa_ksiezyc.inc");
if ($_SESSION['strona'] == "nie_pl") include("efemerydy/planety_2009.inc");
if ($_SESSION['strona'] == "nie_met") include("efemerydy/meteory_2009.inc");
if ($_SESSION['strona'] == "nie_dzis") include("efemerydy/dzis.inc");
if ($_SESSION['strona'] == "art_mer") include("artykuly/merkury.inc");
if ($_SESSION['strona'] == "quiz") include("quiz/quiz.inc");
if ($_SESSION['strona'] == "map_obr") include("mapka-obr/start.inc");
?>
$temp=$_SESSION['strona'];
$_SESSION['strona']="index";
include('statystyka.php');
$_SESSION['strona']=$temp
?>