• 19-01-2009, 00:46:48
    #1
    selam arkadaslar
    ben ücretsiz script aramiyorum ama benim scripte bir kac sey eklemek istiorum ama ben yapamadim cünku daha ajax la fazla bilyim yok
    <?php
    if (!defined("UYE_SEVIYE") || !defined("UYE_NO"))
    exit;
    function resimKayit($uyeno,$uzanti='')
    {
    //YENİ KAYITTA RESİM YÜKLEME İŞLEMLERİ
    global $fonk,$dil;
    $resim_dizin  = UYE_RESIM_DIZIN.'/r_'.$uyeno.'.'.$uzanti;
    if (is_uploaded_file($_FILES['resim']['tmp_name']))
    {
      if (!move_uploaded_file($_FILES['resim']['tmp_name'], $resim_dizin))
      {
        return '<br />'.$dil['ResimYuklemeBasarisiz'];
      } else {
        // Yeniden Boyutlandırılmış Resim Çekiliyor ve Üzerine Yazılıyor 
        $icerik = $fonk->boyutlandir($resim_dizin,UYE_RESIM_EN,UYE_RESIM_BOY,false); 
        if ($dosya  = fopen ($resim_dizin,"w+"))
        {
          if (fwrite($dosya,$icerik))
          {
            fclose($dosya);
          }
        }
      }
    } else {
      return '<br />'.$dil['ResimYuklemeBasarisiz'];
    }
    //Eski Resmin Adi Aliniyor
    $rvt = new Baglanti();
    $rvt->query("SELECT resim FROM ".TABLO_ONEKI."uyeler WHERE uyeno=$uyeno");
    $eski = $rvt->fetchObject();
    $eski_resim = $eski->resim;
    $yeni_resim = 'r_'.$uyeno.'.'.$uzanti;
    if ($rvt->query2("UPDATE ".TABLO_ONEKI."uyeler SET resim='$yeni_resim' WHERE uyeno=$uyeno"))
    {
      if ($eski_resim !== $yeni_resim)
      {
        $sil = UYE_RESIM_DIZIN.'/'.$eski_resim;
        @ unlink($sil);
      }
    } else {
      return '<br />'.$dil['ResimYuklemeBasarisiz'];
    }
    unset($rvt);
    return '<br />'.$dil['ResimYuklendi'];
    //RESİM YÜKLEME İŞLEMLERİ BİTTİ
    }//Resim Yükleme Fonksiyon Sonu
    //=============================
    try { // try Baslangici
    //=============================
    if (UYE_SEVIYE == 0)
    { 
      $_SESSION['sayfaadi'] = serialize($sayfa);
      header('Location: ?sayfa=giris&hata=15');
    	exit;
    }
    //=========================================
    if (empty($islem) || $islem==1)
    {  // 1. ADIM BASLANGICI
    //=========================================
    //Uye Bilgileri Aliniyor
    $vt->query("SELECT uyeno,resim,uyeadi,adi,soyadi,eposta,dogumtarihi,seviye,onay,kayittarihi,girissayisi,songiristarihi,guncellemetarihi,geschlecht,wohnort,hobbies,interesse,motto,familienstand,homepage,links,icq,skype,msn,a_resim,a_resim1,a_resim2,a_resim3,a_resim4,a_resim5,a_resim6,a_marke,a_typ,a_baujahr,a_leistung,a_farbe,a_extras,a_tuningko,a_geswert,sonstiges FROM ".TABLO_ONEKI."uyeler WHERE uyeno=".UYE_NO."");
    $uye_bilgi              = $vt->fetchObject();
    $resim                  = $uye_bilgi->resim;
    $kuladi                 = $uye_bilgi->uyeadi;
    $adi                    = $uye_bilgi->adi;
    $soyadi                 = $uye_bilgi->soyadi;
    $eposta                 = $uye_bilgi->eposta;
    $dogumtarihi            = $uye_bilgi->dogumtarihi;
    $kayittarihi            = $uye_bilgi->kayittarihi;
    $songiristarihi         = $uye_bilgi->songiristarihi;
    $girissayisi            = $uye_bilgi->girissayisi;
    $guncellemetarihi       = $uye_bilgi->guncellemetarihi;
    $geschlecht				= $uye_bilgi->geschlecht;
    $wohnort				= $uye_bilgi->wohnort;
    $hobbies				= $uye_bilgi->hobbies;
    $interesse				= $uye_bilgi->interesse;
    $motto					= $uye_bilgi->motto;
    $familienstand			= $uye_bilgi->familienstand;
    $homepage				= $uye_bilgi->homepage;
    $links					= $uye_bilgi->links;
    $icq					= $uye_bilgi->icq;
    $skype					= $uye_bilgi->skype;
    $msn					= $uye_bilgi->msn;
    $a_resim				= $uye_bilgi->a_resim;
    $a_resim1				= $uye_bilgi->a_resim1;
    $a_resim2				= $uye_bilgi->a_resim2;
    $a_resim3				= $uye_bilgi->a_resim3;
    $a_resim4				= $uye_bilgi->a_resim4;
    $a_resim5				= $uye_bilgi->a_resim5;
    $a_resim6				= $uye_bilgi->a_resim6;
    $a_marke				= $uye_bilgi->a_marke;
    $a_typ					= $uye_bilgi->a_typ;
    $a_baujahr				= $uye_bilgi->a_baujahr;
    $a_leistung				= $uye_bilgi->a_leistung;
    $a_farbe				= $uye_bilgi->a_farbe;
    $a_extras				= $uye_bilgi->a_extras;
    $a_tuningko				= $uye_bilgi->a_tuningko;
    $a_geswert				= $uye_bilgi->a_geswert;
    $sonstiges				= $uye_bilgi->sonstiges;
    list($yil,$ay,$gun) = explode('-',$dogumtarihi);
    $vt->freeResult();
    if (@is_array($_SESSION['profilduzenleme']))
    {
      foreach($_SESSION['profilduzenleme'] as $anahtar=>$deger)
      {
        ${$anahtar} = unserialize($deger);
        if (empty(${$anahtar}))
        ${$anahtar} = '';
      }
    } 
    $uye_resim = UYE_RESIM_DIZIN.'/'.$resim;
    if (!file_exists($uye_resim) || empty($resim))
    {
      $uye_resim = UYE_RESIM_DIZIN.'/bos.gif';
    }
    $a_resim = UYE_RESIM_DIZIN.'/'.$a_resim;
    if (!file_exists($a_resim) || empty($a_resim))
    {
      $a_resim = UYE_RESIM_DIZIN.'/bos.gif';
    }
    $a_resim1 = UYE_RESIM_DIZIN.'/'.$a_resim1;
    if (!file_exists($a_resim1) || empty($a_resim1))
    {
      $a_resim1 = UYE_RESIM_DIZIN.'/bos.gif';
    }
    $a_resim2 = UYE_RESIM_DIZIN.'/'.$a_resim2;
    if (!file_exists($a_resim2) || empty($a_resim2))
    {
      $a_resim2 = UYE_RESIM_DIZIN.'/bos.gif';
    }
    $a_resim3 = UYE_RESIM_DIZIN.'/'.$a_resim3;
    if (!file_exists($a_resim3) || empty($a_resim3))
    {
      $a_resim3 = UYE_RESIM_DIZIN.'/bos.gif';
    }
    $a_resim4 = UYE_RESIM_DIZIN.'/'.$a_resim4;
    if (!file_exists($a_resim4) || empty($a_resim4))
    {
      $a_resim4 = UYE_RESIM_DIZIN.'/bos.gif';
    }
    $a_resim5 = UYE_RESIM_DIZIN.'/'.$a_resim5;
    if (!file_exists($a_resim5) || empty($a_resim5))
    {
      $a_resim = UYE_RESIM_DIZIN.'/bos.gif';
    }
    ?>
    <p>&nbsp;</p>
    <table width="500" align="center">
    <form name="kayit" id="kayit"  action="?sayfa=profil&islem=2" method="post" enctype="multipart/form-data" autocomplete="off">
      <input type="hidden" name="uyeno" id="uyeno" value="<?php echo UYE_NO; ?>"  />
      <tr>
        <td height="20" colspan="2" align="center"><h1><?php $dil['PROFEDIT'] ?></h1></td>
      </tr>
    	<tr>
    	  <td colspan="2"><table width="130" align="center">
            <tr>
              <td width="130" height="80" align="center" valign="middle" style="border:solid 1px #3366ff">Profil Foto<br />
                  <img src="<?php echo $uye_resim; ?>" alt="" name="uyeresim" width="<?php echo UYE_RESIM_EN; ?>" height="<?php echo UYE_RESIM_BOY; ?>"  border="0" align="center" id="uyeresim" /></td>
              <td align="left" width="65%" style="padding-left:5px; font-size:9px"><div name="resimmesaj" id="resimmesaj2" style="color:#ff0000"><?php echo $dil['ResimYukleneneKadarBekleyiniz']; ?></div>
                  <br />
                Max: <?php echo (BOYUT_IZIN/512).' KB'; ?><br />
                <input type="file" id="resim" name="resim" onblur="if (this.value == '') { resim_degistir('<?php echo $uye_resim; ?>','uyeresim'); } else { resim_degistir(this.value,'uyeresim'); }; return true;" onfocus="if (this.value == '') { resim_degistir('<?php echo $uye_resim; ?>','uyeresim'); } else { resim_degistir(this.value,'uyeresim'); }; return true;" />          </td>
            </tr>
          </table></td>
    	</tr
      >
      <tr>
        <td height="12" colspan="2" align="right" valign="center"><div align="left">Allgemeines</div></td>
        </tr>
      <tr>
        <td align="right" height="-1" valign="center">Name :</td>
        <td width="69%" height="-2" align="left"><input type="text" name="adi" id="adi" value="<?php echo $adi; ?>" maxlength="50" tabindex="5" />       Max: 50</td>
      </tr>
      <tr>
        <td align="right" height="1" valign="center">Familienname :</td>
        <td width="69%" height="1" align="left"><input type="text" name="soyadi" id="soyadi" value="<?php echo $soyadi; ?>" maxlength="50" tabindex="6" />      &nbsp;&nbsp;Max: 50</td>
      </tr>
      <tr>
        <td align="right" height="5" valign="center">E-Mail :</td>
        <td width="69%" height="5" align="left"><input type="text" name="eposta" id="eposta" value="<?php echo $eposta; ?>" maxlength="100" tabindex="4" />       Max: 100 </td>
      </tr>
      <tr>
        <td align="right" height="12" valign="center">Geschlecht :</td>
        <td width="69%" height="12" align="left"><select name="geschlecht">
          <option value="0">wählen</option>
          <option value="1">Männlich</option>
          <option value="2">Weiblich</option>
                            </select></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Geburtsdatum :</td>
        <td width="69%" height="25" align="left"><input type="text" name="gun" id="gun" value="<?php echo $gun; ?>" maxlength="2" size="2" style="text-align: center" onkeyup="isNumberic(this)" tabindex="7" />
    .
      <input type="text" name="ay" id="ay" value="<?php echo $ay; ?>" maxlength="2" size="2" style="text-align: center" onkeyup="isNumberic(this)" tabindex="8" />
    .
    <input type="text" name="yil" id="yil" value="<?php echo $yil; ?>" maxlength="4" size="4" style="text-align: center" onkeyup="isNumberic(this)" tabindex="9" />
    &nbsp;&nbsp;(Bsp.: 01.12.1990) </td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Wohnort :</td>
        <td width="69%" height="25" align="left"><input type="text" name="wohnort" id="wohnort" value="<?php echo $wohnort; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Hobbies :</td>
        <td width="69%" height="25" rowspan="3" align="left"><textarea name="hobbies" id="hobbies"  style="background: transparent url() repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy:-moz-initial; height:100px; width:200px;" tabindex="2" onkeyup="karakter_sayi_kontrol('aciklama',150);storeCaret(this);" onselect="storeCaret(this);" onclick="storeCaret(this);"><?php echo $hobbies; ?></textarea></td>
      </tr>
      <tr>
        <td align="right" height="12" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Interessen :</td>
        <td width="69%" height="25" rowspan="3" align="left"><textarea name="interesse" id="intersse"  style="background: transparent url() repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy:-moz-initial; height:100px; width:200px;" tabindex="2" onkeyup="karakter_sayi_kontrol('aciklama',150);storeCaret(this);" onselect="storeCaret(this);" onclick="storeCaret(this);"><?php echo $interesse; ?></textarea></td>
      </tr>
      <tr>
        <td align="right" height="12" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="right" height="5" valign="center">Motto :</td>
        <td width="69%" height="5" align="left"><input type="motto" name="motto" id="eposta3" value="<?php echo $motto; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="1" valign="center">Familienstand :</td>
        <td width="69%" height="1" align="left"><select name="familienstand">
          <option value="0" selected="selected">wählen</option>
          <option value="1">offen für Beziehung</option>
          <option value="2">für jeden Spass zu haben</option>
          <option value="3">Vollblut Single</option>
          <option value="4">solo</option>
          <option value="5">vergeben</option>
          <option value="6">verlobt</option>
          <option value="7">verheiratet</option>
          <option value="8">keine Angabe</option>
                    </select></td>
      </tr>
      <tr>
        <td align="right" height="0" valign="center">Homepage :</td>
        <td width="69%" height="-4" align="left"><input type="text" name="homepage" id="homepage" value="<?php echo $homepage; ?>" maxlength="100" tabindex="4" /> 
          (ohne http:// )</td>
      </tr>
      <tr>
        <td align="right" height="-1" valign="center">Links :</td>
        <td width="69%" height="-2" rowspan="2" align="left"><textarea name="links" id="links"  style="background: transparent url() repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy:-moz-initial; height:50px; width:200px;" tabindex="2" onkeyup="karakter_sayi_kontrol('aciklama',150);storeCaret(this);" onselect="storeCaret(this);" onclick="storeCaret(this);"><?php echo $links; ?></textarea></td>
      </tr>
      <tr>
        <td align="right" valign="center">( ohne http:// )</td>
      </tr>
      <tr>
        <td align="right" height="2" valign="center">Icq :</td>
        <td width="69%" height="2" align="left"><input type="text" name="icq" id="icq" value="<?php echo $icq; ?>" maxlength="100" tabindex="4" />      <img src="img/icq.png" align="middle" border="0" /></td>
      </tr>
      <tr>
        <td align="right" height="2" valign="center"><a href="index.php"></a> Skype :</td>
        <td width="69%" height="2" align="left"><input type="text" name="skype" id="skype" value="<?php echo $skype; ?>" maxlength="100" tabindex="4" />      <img src="img/skype.png" align="middle" border="0" /></td>
      </tr>
      <tr>
        <td align="right" height="2" valign="center"><a href="index.php"></a> Msn :</td>
        <td width="69%" height="2" align="left"><input type="text" name="msn" id="msn" value="<?php echo $msn; ?>" maxlength="100" tabindex="4" />       <img src="img/msn.png" align="middle" border="0" /></td>
      </tr>
      <tr>
        <td height="25" colspan="2" align="right" valign="center"><div align="left">Über mein Auto</div></td>
        </tr>
      <tr>
        <td colspan="2" align="right" valign="center">
        <table width="130" align="center">
          <tr>
            <td width="130" height="80" align="center" valign="middle" style="border:solid 1px #3366ff">Auto<br />
                <img src="<?php echo $a_resim; ?>" alt="" name="a_resim" width="<?php echo UYE_RESIM_EN; ?>" height="<?php echo UYE_RESIM_BOY; ?>"  border="0" align="center" id="a_resim" /></td>
            <td align="left" width="65%" style="padding-left:5px; font-size:9px"><div name="resimmesaj" id="resimmesaj" style="color:#ff0000"><?php echo $dil['ResimYukleneneKadarBekleyiniz']; ?></div>
                <br />
              Max: <?php echo (BOYUT_IZIN/512).' KB'; ?><br />
              <input type="file" id="a_resim" name="a_resim" onblur="if (this.value == '') { resim_degistir('<?php echo $a_resim; ?>','a_resim'); } else { resim_degistir(this.value,'a_resim'); }; return true;" onfocus="if (this.value == '') { resim_degistir('<?php echo $a_resim; ?>','a_resim'); } else { resim_degistir(this.value,'a_resim'); }; return true;" />        </td>
          </tr>
        </table>
        </td>
        </tr>
      <tr>
        <td align="right" height="25" valign="center">Marke :</td>
        <td width="69%" height="25" align="left"><input type="text" name="a_marke" id="a_marke" value="<?php echo $a_marke; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Typ :</td>
        <td width="69%" height="25" align="left"><input type="text" name="a_typ" id="a_typ" value="<?php echo $a_typ; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Baujahr :</td>
        <td width="69%" height="25" align="left"><input type="text" name="a_baujahr" id="a_baujahr" value="<?php echo $a_baujahr; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Leistung :</td>
        <td width="69%" height="25" align="left"><input type="text" name="a_leistung" id="a_leistung" value="<?php echo $a_leistung; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Farbe :</td>
        <td width="69%" height="25" align="left"><input type="text" name="a_farbe" id="a_farbe" value="<?php echo $a_farbe; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Extras :</td>
        <td width="69%" height="25" rowspan="3" align="left"><textarea name="a_extras" id="a_extras"  style="background: transparent url() repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy:-moz-initial; height:100px; width:200px;" tabindex="2" onkeyup="karakter_sayi_kontrol('aciklama',150);storeCaret(this);" onselect="storeCaret(this);" onclick="storeCaret(this);"><?php echo $a_extras; ?></textarea></td>
      </tr>
      <tr>
        <td align="right" height="12" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Tunings Kosten :</td>
        <td width="69%" height="25" align="left"><input type="text" name="a_tuningko" id="a_tuningko" value="<?php echo $a_tuningko; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td align="right" height="25" valign="center">Gesamt Wert :</td>
        <td width="69%" height="25" align="left"><input type="text" name="a_geswert" id="a_geswert" value="<?php echo $a_geswert; ?>" maxlength="100" tabindex="4" /></td>
      </tr>
      <tr>
        <td height="11" align="right" valign="center">Sonstiges :</td>
        <td width="69%" height="11" rowspan="4" align="left"><textarea name="sonstiges" id="sonstiges"  style="background: transparent url() repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy:-moz-initial; height:100px; width:200px;" tabindex="2" onkeyup="karakter_sayi_kontrol('aciklama',150);storeCaret(this);" onselect="storeCaret(this);" onclick="storeCaret(this);"><?php echo $sonstiges; ?></textarea></td>
      </tr>
      <tr>
        <td height="-3" align="right" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td height="-3" align="right" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td height="-3" align="right" valign="center">&nbsp;</td>
      </tr>
      <tr>
        <td height="25" align="right" valign="center">&nbsp;</td>
        <td height="25" align="left">&nbsp;</td>
      </tr>
      <tr>
        <td height="25" colspan="2" align="right" valign="center"><div align="left">Passwort Ändern (nur anwenden wenn Sie ihr passwort Ändern wollen)</div></td>
        </tr>
      <tr>
        <td align="right" height="11" valign="center"><b><?php echo $dil['Sifreniz']; ?> : </b></td>
        <td height="11" align="left"><input type="password" name="parola" id="parola" maxlength="25" tabindex="2" />
          &nbsp;Max: 25</td>
      </tr>
      <tr>
        <td width="31%" height="11" align="right"><b><?php echo $dil['SifrenizTekrar']; ?> : </b></td>
        <td width="69%" align="left" height="11"><input type="password" name="parolatekrar" id="parolatekrar" maxlength="25" tabindex="3" />&nbsp;&nbsp;Max: 25</td>
      </tr>
      <tr>
        <td width="31%" height="12" align="right">&nbsp;</td>
        <td align="left" height="12">&nbsp;</td>
      </tr>
    	 <tr>
    	   <td colspan="2" align="right" valign="center"><div align="left">Fotoalbum (dennächst)</div></td>
        </tr>
    	 <tr>
    	   <td height="4" colspan="2" align="right" valign="center">
           <table width="130" align="center">
             <tr>
               <td width="130" height="80" align="center" valign="middle" style="border:solid 1px #3366ff">Foto 1<br />
                   <img src="<?php echo $a_resim1; ?>" alt="" name="a_resim1" width="<?php echo UYE_RESIM_EN; ?>" height="<?php echo UYE_RESIM_BOY; ?>"  border="0" align="center" id="1_resim1" /></td>
               <td align="left" width="65%" style="padding-left:5px; font-size:9px"><div name="resimmesaj" id="resimmesaj3" style="color:#ff0000"><?php echo $dil['ResimYukleneneKadarBekleyiniz']; ?></div>
                   <br />
                 Max: <?php echo (BOYUT_IZIN/512).' KB'; ?><br />
                 <input type="file" id="1_resim1" name="a_resim1" onblur="if (this.value == '') { resim_degistir('<?php echo $a_resim1; ?>','a_resim1'); } else { resim_degistir(this.value,'a_resim1'); }; return true;" onfocus="if (this.value == '') { resim_degistir('<?php echo $a_resim1; ?>','a_resim1'); } else { resim_degistir(this.value,'a_resim1'); }; return true;" />           </td>
             </tr>
           </table>
           </td>
        </tr>
    	 <tr>
    	   <td height="5" colspan="2" align="right" valign="center"><table width="130" align="center">
             <tr>
               <td width="130" height="80" align="center" valign="middle" style="border:solid 1px #3366ff">Foto 2<br />
                   <img src="<?php echo $a_resim2; ?>" alt="" name="a_resim1" width="<?php echo UYE_RESIM_EN; ?>" height="<?php echo UYE_RESIM_BOY; ?>"  border="0" align="center" id="a_resim2" /></td>
               <td align="left" width="65%" style="padding-left:5px; font-size:9px"><div name="resimmesaj" id="resimmesaj4" style="color:#ff0000"><?php echo $dil['ResimYukleneneKadarBekleyiniz']; ?></div>
                   <br />
                 Max: <?php echo (BOYUT_IZIN/512).' KB'; ?><br />
                 <input type="file" id="a_resim2" name="a_resim2" onblur="if (this.value == '') { resim_degistir('<?php echo $a_resim2; ?>','a_resim2'); } else { resim_degistir(this.value,'a_resim2'); }; return true;" onfocus="if (this.value == '') { resim_degistir('<?php echo $a_resim2; ?>','a_resim2'); } else { resim_degistir(this.value,'a_resim2'); }; return true;" />           </td>
             </tr>
           </table>
           </td>
        </tr>
    	 <tr>
    	   <td height="11" colspan="2" align="right" valign="center"><table width="130" align="center">
             <tr>
               <td width="130" height="80" align="center" valign="middle" style="border:solid 1px #3366ff">Foto 3<br />
                   <img src="<?php echo $a_resim3; ?>" alt="" name="a_resim3" width="<?php echo UYE_RESIM_EN; ?>" height="<?php echo UYE_RESIM_BOY; ?>"  border="0" align="center" id="a_resim3" /></td>
               <td align="left" width="65%" style="padding-left:5px; font-size:9px"><div name="resimmesaj" id="resimmesaj5" style="color:#ff0000"><?php echo $dil['ResimYukleneneKadarBekleyiniz']; ?></div>
                   <br />
                 Max: <?php echo (BOYUT_IZIN/512).' KB'; ?><br />
                 <input type="file" id="a_resim3" name="a_resim3" onblur="if (this.value == '') { resim_degistir('<?php echo $a_resim3; ?>','a_resim3'); } else { resim_degistir(this.value,'a_resim3'); }; return true;" onfocus="if (this.value == '') { resim_degistir('<?php echo $a_resim3; ?>','a_resim3'); } else { resim_degistir(this.value,'a_resim3'); }; return true;" />           </td>
             </tr>
           </table></td>
        </tr>
    	 <tr>
    	   <td height="4" colspan="2" align="right" valign="center"><table width="130" align="center">
             <tr>
               <td width="130" height="80" align="center" valign="middle" style="border:solid 1px #3366ff">Foto 4<br />
                   <img src="<?php echo $a_resim4; ?>" alt="" name="a_resim4" width="<?php echo UYE_RESIM_EN; ?>" height="<?php echo UYE_RESIM_BOY; ?>"  border="0" align="center" id="a_resim4" /></td>
               <td align="left" width="65%" style="padding-left:5px; font-size:9px"><div name="resimmesaj" id="resimmesaj6" style="color:#ff0000"><?php echo $dil['ResimYukleneneKadarBekleyiniz']; ?></div>
  • 19-01-2009, 00:47:40
    #2
    scriptin devami
    <br />
                 Max: <?php echo (BOYUT_IZIN/512).' KB'; ?><br />
                 <input type="file" id="a_resim4" name="a_resim4" onblur="if (this.value == '') { resim_degistir('<?php echo $a_resim4; ?>','a_resim4'); } else { resim_degistir(this.value,'a_resim4'); }; return true;" onfocus="if (this.value == '') { resim_degistir('<?php echo $a_resim4; ?>','a_resim4'); } else { resim_degistir(this.value,'a_resim4'); }; return true;" />
               </td>
             </tr>
           </table></td>
        </tr>
    	 <tr>
    	   <td height="5" colspan="2" align="right" valign="center"><table width="130" align="center">
             <tr>
               <td width="130" height="80" align="center" valign="middle" style="border:solid 1px #3366ff">Foto 5<br />
                   <img src="<?php echo $a_resim5; ?>" alt="" name="a_resim" width="<?php echo UYE_RESIM_EN; ?>" height="<?php echo UYE_RESIM_BOY; ?>"  border="0" align="center" id="a_resim5" /></td>
               <td align="left" width="65%" style="padding-left:5px; font-size:9px"><div name="resimmesaj" id="resimmesaj7" style="color:#ff0000"><?php echo $dil['ResimYukleneneKadarBekleyiniz']; ?></div>
                   <br />
                 Max: <?php echo (BOYUT_IZIN/512).' KB'; ?><br />
                 <input type="file" id="a_resim5" name="a_resim5" onblur="if (this.value == '') { resim_degistir('<?php echo $a_resim5; ?>','a_resim5'); } else { resim_degistir(this.value,'a_resim5'); }; return true;" onfocus="if (this.value == '') { resim_degistir('<?php echo $a_resim5; ?>','a_resim5'); } else { resim_degistir(this.value,'a_resim5'); }; return true;" />
               </td>
             </tr>
           </table></td>
        </tr>
    	 <tr>
    	   <td height="11" align="right" valign="center">&nbsp;</td>
           <td width="69%" height="11" align="left" valign="center"><?php 
    		if (EPOSTA_DEGISTI == 1) echo $dil['GuncellemeMesaj1'];
    		if (EPOSTA_DEGISTI == 2) echo $dil['GuncellemeMesaj2']; ?></td>
        </tr>
    	 <tr>
    	   <td height="12" colspan="2" align="right" valign="center"><div align="left">
      <input type="checkbox" name="yorummesaj2" id="yorummesaj2" maxlength="50" value="1" checked="checked" tabindex="10" />
      &nbsp;<?php echo $dil['YorumMesajGonder']; ?></div></td>
        </tr>
      <tr>
        <td align="center" colspan="2" height="25"><input style="font-size: 10px" type="submit" name="kayitButon" id="kayitButon" value="<?php echo $dil['GUNCELLE']; ?>" tabindex="11" /></td>
      </tr>
    	<tr>
        <td height="20" colspan="2" align="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="center" colspan="2" height="28"><a href="index.php"><?php echo $dil['AnaSayfa']; ?></a></td>
      </tr>
    </form>
    </table>
    <?php
    //Hafiza Bosaltiliyor
    if (@is_array($_SESSION['profilduzenleme']))
    {
      foreach($_SESSION['profilduzenleme'] as $anahtar=>$deger)
      {
        unset(${$anahtar});
    		unset($_SESSION['profilduzenleme']);
      }
    } 
    unset($uye_bilgi,$kuladi,$adi,$soyadi,$eposta,$dogumtarihi,$kayittarihi,$yil,$ay,$gun,$songiristarihi,$guncellemetarihi,$girissayisi,$geschlecht,$wohnort,$hobbies,$interesse,$motto,$familienstand,$homepage,$links,$icq,$skype,$msn,$a_resim,$a_marke,$a_typ,$baujahr,$leistung,$a_farbe,$a_extras,$a_tuningko,$a_geswert,$sonstiges);
    //============================================
    // 1. ADIM SONU
    //============================================
    } else { //2. ADIM BASLANGICI
    //============================================
      $vt = new Baglanti();
    	@ $parola       = $fonk->post_duzen($_POST['parola']);
    	@ $parolatekrar = $fonk->post_duzen($_POST['parolatekrar']);    
      @ $eposta       = $fonk->post_duzen($_POST['eposta']);
      @ $adi          = $fonk->post_duzen($_POST['adi']);
      @ $soyadi       = $fonk->post_duzen($_POST['soyadi']);
    	@ $gun          = intval($_POST['gun']);
    	@ $ay           = intval($_POST['ay']);
    	@ $yil          = intval($_POST['yil']);
      @ $dogumtarihi  = $gun.'.'.$ay.'.'.$yil;
    	@ $yorummesaj   = intval($_POST['yorummesaj']);
    	@ $resim        = trim(strip_tags(htmlspecialchars($_FILES['resim']['name'])));
    		@ $geschlecht          = $fonk->post_duzen($_POST['geschlect']);
    		@ $wohnort             = $fonk->post_duzen($_POST['wohnort']);
    		@ $hobbies             = $fonk->post_duzen($_POST['hobbies']);
    		@ $interesse           = $fonk->post_duzen($_POST['interesse']);
    		@ $motto               = $fonk->post_duzen($_POST['motto']);
    		@ $familienstand       = $fonk->post_duzen($_POST['familienstand']);
    		@ $homepage            = $fonk->post_duzen($_POST['homepage']);
    		@ $links               = $fonk->post_duzen($_POST['links']);
    		@ $icq                 = $fonk->post_duzen($_POST['icq']);
    		@ $skype               = $fonk->post_duzen($_POST['skype']);
    		@ $msn                 = $fonk->post_duzen($_POST['msn']);
    		@ $sonstiges           = $fonk->post_duzen($_POST['sonstiges']);
    					@ $a_resim               = trim(strip_tags(htmlspecialchars($_FILES['a_resim']['name'])));
    					@ $a_resim1              = trim(strip_tags(htmlspecialchars($_FILES['a_resim']['name'])));
    					@ $a_resim2              = trim(strip_tags(htmlspecialchars($_FILES['a_resim']['name'])));
    					@ $a_resim3              = trim(strip_tags(htmlspecialchars($_FILES['a_resim']['name'])));
    					@ $a_resim4              = trim(strip_tags(htmlspecialchars($_FILES['a_resim']['name'])));
    					@ $a_resim5              = trim(strip_tags(htmlspecialchars($_FILES['a_resim']['name'])));
    					@ $a_resim6              = trim(strip_tags(htmlspecialchars($_FILES['a_resim']['name'])));
    					@ $a_marke               = $fonk->post_duzen($_POST['a_marke']);
    					@ $a_typ                 = $fonk->post_duzen($_POST['a_typ']);
    					@ $a_baujahr             = $fonk->post_duzen($_POST['a_baujahr']);
    					@ $a_leistung            = $fonk->post_duzen($_POST['a_leistung']);
    					@ $a_farbe               = $fonk->post_duzen($_POST['a_farbe']);
    					@ $a_extras              = $fonk->post_duzen($_POST['a_extras']);
    					@ $a_tuningko            = $fonk->post_duzen($_POST['a_tuningko']);
    					@ $a_geswert             = $fonk->post_duzen($_POST['a_geswert']);
    								@ $bgvon        = $fonk->post_duzen($_POST['gbvon']);
    								@ $gbdat        = $fonk->post_duzen($_POST['gbdat']);
    								@ $gbtext       = $fonk->post_duzen($_POST['gbtext']);
    	foreach($_POST as $anahtar=>$deger)
      {
        $_SESSION['profilduzenleme'][$anahtar] = serialize($deger);
      }
      if (UYE_SEVIYE == 0)
      { 
        $_SESSION['sayfaadi'] = serialize($sayfa);
        header('Location: ?sayfa=giris&hata=15');
        exit;
      }
      if (empty($eposta) || empty($adi) || empty($soyadi) || empty($gun) || empty($ay) || empty($yil))
      {
        throw new Exception($dil['IsaretliAlanlariBosBirakmayiniz'],1);
        exit;
      }
    	if ($resim != '') 
    	{
        if (!$fonk->resim_adi_kontrol($resim))
        {
          throw new Exception($dil['ResimAdiGecersiz'],1);
          exit;
        }
      }
      if (!$fonk->kuladi_kontrol($kullaniciadi)) 
      {
        //Kullanici Adinda A-Z Harf, 0-9 Rakam ve Alt Cizgi Kullanilabilir
        throw new Exception($dil["KullaniciAdiGecersiz"],1);
        exit;
      } elseif (!$fonk->eposta_kontrol($eposta)) {
        //E-Posta Adresi Gecersiz
        throw new Exception($dil["EpostaGecersiz"],1);
        exit;
      } elseif ($parola) {
        if (!$fonk->parola_kontrol($parola))
        {
          //Sifrede A-Z Harf, 0-9 Rakam ve Alt Cizgi Kullanilabilir
          throw new Exception($dil["SifreGecersiz"],1);
          exit;
        }
        if (strlen($parola) > 25 || strlen($parola) < 6)
        {
          //Şifre En Fazla 25 Karakter Olabilir
          throw new Exception($dil["ParolaKarakterIzin"],1);
          exit;
        }
        //Sifreler Uyusmuyor
        if ($parola != $parolatekrar)
        {
          throw new Exception($dil["SifrelerUyusmuyor"],1);
          exit;
        } 
      } elseif (!$fonk->turkceharf_kontrol($adi) || !$fonk->turkceharf_kontrol($soyadi)) {
        //Isim ve Soyisimde a-zAZ Harf Kullanilabilir
        throw new Exception($dil["IsimSoyisimGecersiz"],1);
        exit;
      }
      if (strlen($eposta) > 100 || strlen($eposta) < 7)
      {
        //Eposta En Fazla 100 En Az 5 Karakter Olabilir
        throw new Exception($dil["EpostaKarakterIzin"],1);
        exit;
      }
      if (strlen($adi) > 50 || strlen($adi) < 2)
      {
        //Isim En Fazla 50 En Az 2 Karakter Olabilir
        throw new Exception($dil["IsimKarakterIzin"],1);
        exit;
      }
      if (strlen($soyadi) > 50 || strlen($soyadi) < 2)
      {
        //Soyisim En Fazla 50 En Az 2 Karakter Olabilir
        throw new Exception($dil["SoyisimKarakterIzin"],1);
        exit;
      }
      //E-Posta Adresi Kontrolu
      $eposta_var = $vt->kayitSay("SELECT COUNT(uyeno) FROM ".TABLO_ONEKI."uyeler WHERE uyeno<>".UYE_NO." AND eposta='$eposta'");  
      if ($eposta_var > 0)
      {
        throw new Exception($dil['EpostaSistemdeKayitli'],1);
        exit;
      }
      //Dogum Tarihi Kontrolu
      $yil_izin = intval(date('Y'))-100;
      if ($yil > date('Y',time()-378432000) || $yil<$yil_izin)
      {
        throw new Exception($dil['YilIcinGecerliSayiGiriniz'],1);
        exit;
      }
      if (!$dogumtarihi = $fonk->mysql_tarih_kontrol($dogumtarihi))
      {
        throw new Exception($dil['DogumTarihiGecersiz'],1);
        exit;
      }
      //Onay Ayarları
      if (EPOSTA_DEGISTI == 0)
      {
        $onay = 'E';
        $yoneticionayi = 5;
      } elseif (EPOSTA_DEGISTI == 1) {
        $onay = 'E';
        $yoneticionayi = 1;
      } elseif (EPOSTA_DEGISTI == 2 && UYELIK_ONAYI == 4) {
        $onay = 'H';
        $yoneticionayi = 0;
      } else {
        $onay = 'H';
        $yoneticionayi = 5;
      }
      $eposta_degistirildi = $vt->kayitSay("SELECT COUNT(uyeno) FROM ".TABLO_ONEKI."uyeler WHERE eposta='$eposta' and uyeno=".UYE_NO.""); 
      $onay_kodu  = sha1($fonk->kod(10));
      //============================================
      if ($resim != '') {  // RESIM EKLEME BASLANGICI
      //============================================
        if ($_FILES['resim']['size'] > BOYUT_IZIN)
        {
          throw new Exception($dil['ResimBoyutuBuyuk'],1);
          exit;
        } 
        if (!array_key_exists($_FILES['resim']['type'],$yazi_resim_uzanti))
        {
          throw new Exception($dil['ResimUzantisiGecersiz'],1);
          exit;
        }
        //Resim Ekleme Hatalari
        if ($_FILES['resim']['error'] > 0)
        {
          switch ($_FILES['resim']['error'])
          {
            case 1: throw new Exception($dil['ResimYuklemeBasarisiz'],1);  break;
            case 2: throw new Exception($dil['ResimYuklemeBasarisiz'],1); break;
            case 3: throw new Exception($dil['ResimYuklemeBasarisiz'],1); break;
            case 4: throw new Exception($dil['ResimYuklemeBasarisiz'],1); break;
          }
        }
        $uzanti       = '';
        $resim_mesaji = '';
        //RESİM YUKLENIYOR
        $uzanti = strtr($_FILES['resim']['type'],$yazi_resim_uzanti);
        if(!is_dir(UYE_RESIM_DIZIN))
        {
          throw new Exception($dil['KlasorBulunamadi'],1);
          exit;
        }
    		if ($resim != '')
    		$resim_mesaji = resimKayit(UYE_NO,$uzanti);
        unset($uzanti);
      //============================================
    	} //RESIM EKLEME SONU
      //============================================
        //============================================
      if ($resim != '') {  // RESIM EKLEME BASLANGICI ARABA
      //============================================
        if ($_FILES['resim']['size'] > BOYUT_IZIN)
        {
          throw new Exception($dil['ResimBoyutuBuyuk'],1);
          exit;
        } 
        if (!array_key_exists($_FILES['resim']['type'],$yazi_resim_uzanti))
        {
          throw new Exception($dil['ResimUzantisiGecersiz'],1);
          exit;
        }
        //Resim Ekleme Hatalari
        if ($_FILES['resim']['error'] > 0)
        {
          switch ($_FILES['resim']['error'])
          {
            case 1: throw new Exception($dil['ResimYuklemeBasarisiz'],1);  break;
            case 2: throw new Exception($dil['ResimYuklemeBasarisiz'],1); break;
            case 3: throw new Exception($dil['ResimYuklemeBasarisiz'],1); break;
            case 4: throw new Exception($dil['ResimYuklemeBasarisiz'],1); break;
          }
        }
        $uzanti       = '';
        $resim_mesaji = '';
        //RESİM YUKLENIYOR
        $uzanti = strtr($_FILES['resim']['type'],$yazi_resim_uzanti);
        if(!is_dir(UYE_RESIM_DIZIN))
        {
          throw new Exception($dil['KlasorBulunamadi'],1);
          exit;
        }
    		if ($resim != '')
    		$resim_mesaji = resimKayit(UYE_NO,$uzanti);
        unset($uzanti);
      //============================================
    	} //RESIM EKLEME SONU ARABA
      //============================================
      if ($vt->query("UPDATE ".TABLO_ONEKI."uyeler SET adi='".$vt->escapeString($adi)."',soyadi='".$vt->escapeString($soyadi)."',eposta='".$vt->escapeString($eposta)."',dogumtarihi='$dogumtarihi',onay='$onay',yonay='$yoneticionayi',guncellemetarihi=NOW(),ip='".UYE_IP."',onaykodu='$onay_kodu',bilgi='$yorummesaj',geschlecht='$geschlecht',wohnort='$wohnort',hobbies='$hobbies',interesse='$interesse',motto='$motto',familienstand='$familienstand',homepage='$homepage',links='$links',icq='$icq',skype='$skype',msn='$msn',a_resim='$a_resim',a_resim1='$a_resim1',a_resim2='$a_resim2',a_resim3='$a_resim3',a_resim4='$a_resim4',a_resim5='$a_resim5',a_resim6='$a_resim6',a_marke='$a_marke',a_typ='$a_typ',a_baujahr='$a_baujahr',a_leistung='$a_leistung',a_farbe='$a_farbe',a_extras='$a_extras',a_tuningko='$a_tuningko',a_geswert='$a_geswert',sonstiges='$sonstiges' WHERE uyeno=".UYE_NO.""))
      {
        if (EPOSTA_DEGISTI == 2)
        {
          //Üyelik Bilgilerinin E-Posta İle Üyeye Gönderilmesi
          $eposta_konu      = $dil['UyelikBilgileriniz'];
          $eposta_mesaj     = SITE_ADI.' '.$dil['UyelikBilgilerinizAsagida']."\r\n";
          $eposta_mesaj    .= $dil['KullaniciAdiniz'].' : '.$kullaniciadi."\r\n";
          $eposta_mesaj    .= $dil['Sifreniz'].' : '.$parola."\r\n";
          $eposta_mesaj    .= $fonk->yerine_koy($dil['EpostaMesaj3'],array(SITE_ADRESI,$kullaniciadi,$onay_kodu))."\r\n";
          $eposta_mesaj    .= $dil['SitemiziSectiginizIcinTesekkur']."\r\n";
    			$eposta_mesaj    .= SITE_ADI."\r\n";
          $eposta_mesaj    .= SITE_ADRESI;
          //==================================================================================
    			// E-Posta Gonderiliyor
          $fonk->eposta_gonder(trim($eposta), $eposta_konu, $eposta_mesaj,true,'text');
    			//==================================================================================
          $kayit_mesaji  = '<br/>'.$dil['KayitEpostaOnayi'];
          unset($eposta_ustbilgi,$eposta_konu,$eposta_mesaj);
        }
        if ($parola)
        {
          $yeni_sifre = sha1($parola); 
          if ($vt->query("UPDATE ".TABLO_ONEKI."uyeler SET sifre='$yeni_sifre' WHERE uyeno=".UYE_NO.""))
          {
            $_SESSION['pehepe_kullanici_sifre'] = $yeni_sifre;
          }
        }
        throw new Exception($dil['GuncellemeIslemiTamamlandi'].$kayit_mesaj.$resim_mesaji,2);
      } else {
        throw new Exception($dil['IslemBasarisiz']);
      }
      unset($vt,$kullaniciadi,$parola,$parolatekrar,$eposta,$adi,$soyadi,$gun,$ay,$yil,$dogumtarihi);
    ////////////////////////////////
    ///PROFIL KAYIT BOLUMU SONU ///////
    ////////////////////////////////
    //=====================================
    } // 2. ADIM SONU
    //=====================================
    } //try Sonu  
    catch (Exception $e)
    {
    $hatakod = $e->getCode();
    if ($hatakod == 1)
    {
      $adres = '<a href="index.php?sayfa=profil">'.$dil['Tamam'].'</a>';
    	$hata  = false;
    } elseif ($hatakod == 2) {
      unset($_SESSION['profilduzenleme']);
      $adres = '<a href="index.php">'.$dil['Tamam'].'</a>';
    	$hata = true;
    } else {
      unset($_SESSION['profilduzenleme']);
      $adres = '<a href="index.php">'.$dil['Tamam'].'</a>';
    	$hata = false;
    }
    ?>
    <table align="center" cellpadding="0" cellspacing="0" width="85%">
      <tr>
    	  <td align="center">
        <?php echo $fonk->hata_mesaj($e->getMessage(),$hata,$adres); ?>
    		</td>
    	</tr>
    </table>
    <?php
    } //catch Sonu
    ?>
    simdi benim yapmak istedigim üye profiline üye daha kenisi 6 tane daha fotoraf hükleyebilsin aber yapamadim malesef
    bide sql e sunlari ekledim
    `resim` char(16) collate utf8_unicode_ci default NULL,
    `a_resim` char(16) collate utf8_unicode_ci default NULL,
    `a_resim1` char(16) collate utf8_unicode_ci default NULL,
    `a_resim2` char(16) collate utf8_unicode_ci default NULL,
    `a_resim3` char(16) collate utf8_unicode_ci default NULL,
    `a_resim4` char(16) collate utf8_unicode_ci default NULL,
    `a_resim5` char(16) collate utf8_unicode_ci default NULL,
    yardimci olabilirseniz cok cok sevinirim
    selamlar
    Özgür
  • 25-01-2009, 03:19:57
    #3
    Üyeliği durduruldu
    ne bu..
    nereden buldun..ona göre bişeyler söyleyeceğim.
  • 13-02-2009, 21:09:32
    #4
    ceylansoft adlı üyeden alıntı: mesajı görüntüle
    ne bu..
    nereden buldun..ona göre bişeyler söyleyeceğim.

    niye soruyorsun nerden buldugumu?

    söyliyecegini söyle