/[informatika.old]/html/inc/head.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /html/inc/head.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1.2.4 by dpavlin, Mon Jul 31 18:30:14 2000 UTC revision 1.2 by dpavlin, Tue Apr 24 13:57:23 2001 UTC
# Line 1  Line 1 
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    
# Line 16  header("Cache-Control: no-cache, must-re Line 19  header("Cache-Control: no-cache, must-re
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    
# Line 29  if (isset($md5_passwd) && !session_is_re Line 34  if (isset($md5_passwd) && !session_is_re
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  ?>  ?>

Legend:
Removed from v.1.1.1.1.2.4  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26