} $hata = true; } } $address = isset($_GET["to"]) ? $_GET["to"] : ""; if (empty($address) && isset($_POST["address"])) { $address = $_POST["address"]; } $hata = false; if (empty($address) || !is_numeric($address)) { echo "<font id='hata'>Eposta bilgisi boþ olamaz!</font>"; $hata = true; $_SESSION["ccode"] = ""; } if ($hata == false) { $ccode = newPassw(); $_SESSION["ccode"] = $ccode; ?> <script type="text/javascript" src="lib/jquery.validate.min.js"></script> <div id="contact-wrapper"> <form id="form1" method="post" action="mail.php"> <fieldset> <label for="konu"> <?php echo $metin[124]; ?> :</label> <div> <input name="konu" type="text" id="konu" size="50" maxlength="50" class="required" /> </div> <label for="icerik"> <?php echo $metin[125];
function newParola($userName, $email) { global $yol1; $result1 = ""; $userName = trim(substr(temizle($userName), 0, 15)); $email = trim(substr(temizle($email), 0, 50)); if (!email_valid($email)) { return "notValid"; } if ($userName == "" || $email == "") { return "emptyData"; } $yeni = newPassw(); $sql2 = "select * from eo_users where userName='******' and userEmail='{$email}' limit 0,1"; $result2 = @mysql_query($sql2, $yol1); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-9' . "\r\n"; $headers .= "From:" . ayarGetir("ayar4char") . "\r\nReply-To:" . ayarGetir("ayar4char") . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if ($result2 && @mysql_num_rows($result2) == 1) { if (@mail($email, "eOgr Parola", "Merhaba, eOgr projesindeki:\nKullanici Adiniz = {$userName} \nYeni Parolaniz= {$yeni} \n Iyi gunler dileriz.", $headers)) { $sql1 = "Update eo_users SET userPassword='******' where userName='******' and userEmail='{$email}'"; $result1 = @mysql_query($sql1, $yol1); if ($result1) { $result1 = "allOK"; } else { $result1 = "noChange"; } } else { $result1 = "mailErr"; } } else { $result1 = "noUser"; } @mysql_free_result($result2); return $result1; }
}, email: "<?php echo $metin[613]; ?> ", onay: "<?php echo $metin[615]; ?> " } }); }); </script> <div id="contact-wrapper"> <?php $ccode2 = newPassw(); $_SESSION["ccode2"] = $ccode2; ?> <form action="newUser.php" method="post" id="form1" > <input name="form" type="hidden" value="uyelik" /> <fieldset> <legend><?php echo $metin[78]; ?> </legend> <dl> <dt> <label for="realN"> <?php echo $metin[38]; ?> :</label>
} } if (isset($_POST["gonder"])) { if ($_POST["ccode3"] == $_SESSION["ccode3"]) { if (!empty($_POST["soru"]) and !empty($_POST["dersID"])) { if (soruEkle($_POST)) { trackUser($currentFile, "success,AddQue", $adi); echo "<font id='tamam'>Sorunuz eklendi.</font>"; } else { trackUser($currentFile, "fail,AddQue", $adi); echo "<font id='hata'>Sorunuz eklenemedi!</font>"; } } } } $ccode3 = newPassw(); $_SESSION["ccode3"] = $ccode3; ?> <fieldset> <legend><?php echo $metin[645]; ?> </legend> <form action="askQuestion.php" method="post" name="soruGonder"> <textarea cols="50" rows="5" name="soru" style="height:93px;border:1px solid #000;"></textarea> <select name="dersID" size="7" style="height:100px;"> <option value="" selected="selected">-<?php echo $metin[106]; ?> -</option> <?php