0){ $grupisanje = true; } } } session_start(); if ((!isset( $_SESSION['user'])) || (!isset($_SESSION['pass']))) { if ((isset($_POST['FUser'])) || (isset($_POST['FPass']))){ $user = addslashes($_POST['FUser']); $pass = md5($_POST['FPass']); $resKorisnik = mysql_query("SELECT ime, nivo FROM users WHERE userName='$user' AND userPass='$pass'") or die("Couldn't query the users table."); while ($rowKorisnik = mysql_fetch_array($resKorisnik)) { $lkorisnik = $rowKorisnik['ime']; $lnivo = $rowKorisnik['nivo']; } if ($lnivo <> 0) { $_SESSION['user'] = $user; $_SESSION['pass'] = $pass; } else $lgreska = true; } } else { $user = addslashes($_SESSION['user']); $pass = $_SESSION['pass']; $resKorisnik = mysql_query("SELECT ime, nivo FROM users WHERE userName='$user' AND userPass='$pass'") or die("Couldn't query the users table."); while ($rowKorisnik = mysql_fetch_array($resKorisnik)) { $lkorisnik = $rowKorisnik['ime']; $lnivo = $rowKorisnik['nivo']; } if ($lnivo == 0) { session_unset(); session_destroy(); $lgreska = true; } } dBase_close(); if ($nepoznat) { $NoCorPage = "index.php"; if ($bezupita) header("Location: $NoCorPage"); } ?> Berza strelicarske opreme
 

 
postavi oglas"; echo ""; echo ""; } else { ?>
  home prodajem kupujem prodato izmene logout registrujte se  
 
user:  
pass:  
   
"; echo "

$lkorisnik, logout"; if($lnivo>0) { echo ", izmene

"; } else { echo "

"; } echo "
"; } ?>
 
 
  "; } else { echo ""; } echo "
$stavka
"; } if ($idstavke==$grupa) { $queryPM = "SELECT * FROM menu WHERE ref=$grupa ORDER BY sortor"; $resultPM = mysql_query($queryPM) or die("Query pf_submenu failed"); while ($myRowPM = mysql_fetch_array($resultPM)) { $stavkaPM = $myRowPM['naziv']; $idstavkePM = $myRowPM['id']; //$linkPM = "index.php" . "?mID=$idstavkePM"; $linkPM = $AktivLink . "&mID=$idstavkePM"; if ($idstavkePM==$mID) { echo ""; } else { echo "
"; } echo "
  $stavkaPM
"; } } } dBase_close(); } ?>
 
 
 
2 AND prodato=1 AND " . $DopunskiUslov . " AND vazi=0 AND odobren=1 ORDER BY datum DESC, id DESC"; } else { if($strana==2) { $sql = "SELECT * FROM oglasi WHERE tip=$strana AND vazi=1 AND odobren=1 ORDER BY datum DESC, id DESC"; } else { $sql = "SELECT * FROM oglasi WHERE tip=$strana AND " . $DopunskiUslov . " AND vazi=1 AND odobren=1 ORDER BY datum DESC, id DESC"; } } $result = mysql_query($sql) or die("Query 32nsdfi89832 failed"); while ($myRow = mysql_fetch_array($result)) { $idOglasa=$myRow['id']; $idOKorisnik=$myRow['idKorisnika']; $naziv=$myRow['naziv']; $opis=$myRow['opis']; $tekst=$myRow['tekst']; $datum=$myRow['datum']; $cena1=$myRow['cena_v']; $cena2=$myRow['cena_k']; $cena3=$myRow['cena']; $cena3="$cena3" . " €"; if($cena1==1) $cena="PO DOGOVORU"; if($cena1==0) { if($cena2==0) { $cena=$cena3; } else { $cena="$cena3" . "/KOM"; } } $rezervacija=$myRow['rezervisano']; $tel=$myRow['tel']; $slikaM=$myRow['slika']; $slika = $idOglasa; //$slika="images/temp/".$slika."_t.jpg"; $sql2 = "SELECT * FROM users WHERE userID=$idOKorisnik"; $result2 = mysql_query($sql2) or die("Query sdaf89ewrwed32 failed"); while ($myRow2 = mysql_fetch_array($result2)) { $ImeK=$myRow2['ime']; $DrzavaK=$myRow2['drzava']; $mailK=$myRow2['email']; } $sql2 = "SELECT * FROM drzave WHERE id=$DrzavaK"; $result2 = mysql_query($sql2) or die("Query sasd324aa11ed32 failed"); while ($myRow2 = mysql_fetch_array($result2)) { $DrzavaKTmp=$myRow2['skr']; } $DrzavaK="(". $DrzavaKTmp .")"; ?>
 
 
 
 
 
,   E-mail: $mailK"; ?>
 
- "; ?>
 

CENA:

 
"; } else { echo " "; } ?>
 
 
 
 "; } else { ?>
,   E-mail: $mailK"; ?>