1 |
<? |
<? |
2 |
|
|
3 |
if ($what == "relogin") { |
if ($what == "relogin") { |
4 |
if (session_is_registered("kontakt_osoba_id")) session_destroy(); |
if (session_is_registered("kontakt_osoba_id")) { |
5 |
|
session_destroy(); |
6 |
|
} |
7 |
Header("Location: $PHP_SELF"); |
Header("Location: $PHP_SELF"); |
8 |
} |
} |
9 |
|
|
19 |
header("Pragma: no-cache"); // HTTP/1.0 |
header("Pragma: no-cache"); // HTTP/1.0 |
20 |
header("Content-Type: text/html;charset=$charset"); |
header("Content-Type: text/html;charset=$charset"); |
21 |
|
|
22 |
session_name("pcst"); |
global $kontakt_osoba_id; |
23 |
if (isset($kontakt_osoba_id) && !session_is_registered("kontakt_osoba_id")) { session_register("kontakt_osoba_id"); } |
global $md5_passwd; |
24 |
if (isset($md5_passwd) && !session_is_registered("md5_passwd")) { session_register("md5_passwd"); } |
|
25 |
|
if (isset($kontakt_osoba_id)) { session_register("kontakt_osoba_id"); } |
26 |
|
if (isset($md5_passwd)) { session_register("md5_passwd"); } |
27 |
|
|
28 |
?> |
?> |
29 |
|
|
34 |
|
|
35 |
</head> |
</head> |
36 |
|
|
|
|
|
37 |
<body bgcolor="#FFFFFF"> |
<body bgcolor="#FFFFFF"> |
38 |
|
|
39 |
<? |
<? |
40 |
$conn = pg_connect("dbname=informatika user=dpavlin"); |
$conn = pg_connect("dbname=informatika user=dpavlin"); |
41 |
$result=pg_Exec($conn,"set datestyle = 'german'"); |
$result=pg_Exec($conn,"set datestyle = 'german'"); |
|
|
|
|
require('class.DBI'); |
|
|
if (0) { |
|
|
$dbh = new DBI("dbi:pg:informatika","dpavlin"); |
|
|
$dbh->dbh_do("set datestyle = 'german'"); |
|
|
} else { |
|
|
$dbh = new DBI("dbi:interbase:/tmp/informatika","dpavlin","dpavlin"); |
|
|
} |
|
|
|
|
42 |
?> |
?> |