Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 51 lines (42 sloc) 1.343 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
<?php

session_start();

if(isset($_SESSION['SESS_CHANGEID']) == TRUE)
{
session_unset();
session_regenerate_id();
}

require("konfiguracja.php");

$db = mysql_connect($dbhost, $dbuser, $dbpassword);
      mysql_query("SET NAMES cp1250");
mysql_select_db($dbdatabase, $db);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
<title><?php echo $config_sitename; ?></title>
<link href="arkusz_styli.css" rel="stylesheet">
</head>
<body>
<div id="header">
<h1><?php echo $config_sitename; ?></h1>
</div>
<div id="menu">
<a href="<?php echo $config_basedir; ?>">G³ówna strona</a> -
<a href="<?php echo $config_basedir; ?>wyswietlanie_koszyka.php">Wyœwietlanie koszyka/P³acenie</a>
</div>
<div id="container">
<div id="bar">
<?php

require("pasek.php");
echo "<hr>";

if(isset($_SESSION['SESS_LOGGEDIN']) == TRUE)
{
echo "Zalogowany jako <strong>" . $_SESSION['SESS_USERNAME'] . "</strong> [<a href='" . $config_basedir . "wylogowywanie.php'>wyloguj</a>]";
}
else
{
echo "<a href='" . $config_basedir . "logowanie.php'>Logowanie</a>";
}
?>
</div>

<div id="main">
Something went wrong with that request. Please try again.