/[informatika.old]/html/ko_lozinka.php
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/ko_lozinka.php

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

revision 1.1.1.1 by dpavlin, Wed Apr 12 06:33:01 2000 UTC revision 1.2 by dpavlin, Thu Oct 26 14:31:45 2000 UTC
# Line 9  if ($what=="send" || $what=="change") { Line 9  if ($what=="send" || $what=="change") {
9    
10          echo '<table border=0><form method="post" action="'.$PHP_SELF.'" name="forma">';          echo '<table border=0><form method="post" action="'.$PHP_SELF.'" name="forma">';
11    
12          if (! isset($kontakt_osoba_id)) {          if (! isset($kontakt_osoba_id) || $kontakt_osoba_id==0) {
13                  echo '<tr><td>Odaberite Vaše ime i prezime:</td><td><select name="kontakt_osoba_id">';                  echo '<tr><td>Odaberite Vaše ime i prezime:</td><td><select name="kontakt_osoba_id">';
14                    echo '<option value=0>-</option>';
15                  $result = pg_Exec ($conn, "select id,ime,prezime from kontakt_osobe where aktivna=true order by ime");                  $result = pg_Exec ($conn, "select id,ime,prezime from kontakt_osobe where aktivna=true order by ime");
16                  for ($k = 0; $k < pg_numrows($result); $k++) {                  for ($k = 0; $k < pg_numrows($result); $k++) {
17                          $row=pg_fetch_array($result,$k);                          $row=pg_fetch_array($result,$k);
# Line 35  if ($what=="send" || $what=="change") { Line 36  if ($what=="send" || $what=="change") {
36    
37          $result = pg_Exec ($conn, "select ime,prezime,e_mail,passwd from kontakt_osobe          $result = pg_Exec ($conn, "select ime,prezime,e_mail,passwd from kontakt_osobe
38                  where aktivna=true and id=$kontakt_osoba_id");                  where aktivna=true and id=$kontakt_osoba_id");
39            if (pg_numrows($result) > 0) {
40    
41          $row=pg_fetch_array($result,0);          $row=pg_fetch_array($result,0);
42    
43          mail($row[e_mail],"Loznika za pristup support.pliva.hr","          mail($row[e_mail],"Loznika za pristup support.pliva.hr","
# Line 57  PlivaNet Core Support Team Line 60  PlivaNet Core Support Team
60          <p>Možete zatvoriti ovaj prozor i provjeriti vaš e-mail u kojem          <p>Možete zatvoriti ovaj prozor i provjeriti vaš e-mail u kojem
61          se nalazi loznika za pristup.';          se nalazi loznika za pristup.';
62    
63            } else {
64    
65                    session_unregister($kontakt_osoba_id);
66                    echo "Morate odabrati svoje ime iz popisa osoba!
67                    <a href=\"$PHP_SELF?what=$oldwhat&kontakt_osoba_id=0\">Dalje...</a>";
68    
69            }
70    
71  } elseif (isset($kontakt_osoba_id) && $what=="change-now") {  } elseif (isset($kontakt_osoba_id) && $what=="change-now") {
72    
73          $result = pg_Exec ($conn, "select ime,prezime,e_mail,passwd from kontakt_osobe          $result = pg_Exec ($conn, "select ime,prezime,e_mail,passwd from kontakt_osobe
# Line 79  PlivaNet Core Support Team Line 90  PlivaNet Core Support Team
90  }  }
91    
92  if ($what=="send" || $what=="change") {  if ($what=="send" || $what=="change") {
93          echo '</table><input type="hidden" name="what" value="'.$what.'-now"></form>';          echo '</table>
94                    <input type="hidden" name="oldwhat" value="'.$what.'">
95                    <input type="hidden" name="what" value="'.$what.'-now">
96            </form>';
97  }  }
98    
99  include("inc/footer.inc");  include("inc/footer.inc");

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

  ViewVC Help
Powered by ViewVC 1.1.26