if (!email_valid($address1) && !empty($address1)) { echo "<font id='hata'>Özür dileriz, kullanýcýnýn eposta adresi bilgisinde sorun var!</font>"; $hata = true; } if (isset($_POST["konu"])) { if ($_POST["ccode"] != $_SESSION["ccode"]) { echo "<font id='hata'> Kod boþ veya hatalý girildi!</font>"; $hata = true; $_SESSION["ccode"] = ""; } else { $_SESSION["ccode"] = ""; $subject = temizle($_POST["konu"]); $address = temizle($_POST["address"]); $address = getMailAddress($address); $bodisi = temizle($_POST["icerik"]); $gonderenMail = getMailAddress(getUserID2($_SESSION["usern"])); if ($gonderenMail == "") { $gonderenMail = ayarGetir("ayar4char"); } $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-9' . "\r\n"; $headers .= "From:" . $gonderenMail . "\r\nReply-To:" . $gonderenMail . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if (email_valid($address)) { if (@mail("{$address}", "eOgr - {$subject}", "{$bodisi}", $headers)) { echo "<font id='tamam'>Epostanýz Gönderildi!</font>"; $hata = true; } else { echo "<font id='hata'>Özür dileriz, þu anda mesajýnýz gönderilemiyor!</font>"; $hata = true; } } else {
nicupload_error('Server error, failed to move file'); } $status = array(); if ($rfc1867) { $status = apc_fetch('upload_' . $id); } if (!$status) { $status = array(); } $status['done'] = 1; $status['width'] = $size[0]; $status['url'] = $filename; if ($rfc1867) { apc_store('upload_' . $id, $status); } dosyaKaydet(strtolower($filename), getUserID2($_SESSION["usern"])); trackUser($currentFile, "success,FileUp", $_SESSION["usern"]); $status['id'] = getDosyaID($filename); nicupload_output($status, $rfc1867); exit; } else { if (isset($_GET['check'])) { // Upload progress check $check = $_GET['check']; if (!is_numeric($check)) { nicupload_error('Invalid upload progress id'); } if ($rfc1867) { $status = apc_fetch('upload_' . $check); if ($status['total'] > 500000 && $status['current'] / $status['total'] < 0.9) { // Large file and we are < 90% complete
$row_color = "#ddd"; } ?> <tr > <td align="right" <?php echo "style=\"background-color: {$row_color};\""; ?> ><?php echo $row_eoUsers['id']; ?> </td> <td <?php echo "style=\"background-color: {$row_color};\""; ?> ><a href="profil.php?kim=<?php echo getUserID2($row_eoUsers['userName']); ?> " rel="facebox"><?php echo araKalin($row_eoUsers['userName']); ?> </a></td> <td <?php echo "style=\"background-color: {$row_color};\""; ?> ><a href='<?php echo $row_eoUsers['processName']; ?> '><?php echo araKalin($row_eoUsers['processName']); ?> </a></td>
echo "</p>"; } } if ($_SESSION["tur"] == '1' || $_SESSION["tur"] == '2') { $pasifYorumlar = getpasifYorumlar(); if ($pasifYorumlar > 0) { echo "<p>" . $metin[294] . " : <a href=dataCommentList2.php>" . $pasifYorumlar . " <img src='img/uyari.gif' border='0' style=\"vertical-align: middle;\" alt=\"imp\" /></a>"; echo "</p>"; } } //index.php'den $uyeListesi = getUsersOnline(); if (!empty($uyeListesi)) { echo "<p>" . "{$metin['446']}<strong>"; foreach ($uyeListesi as $eleman) { echo "<a href='profil.php?kim=" . getUserID2($eleman) . "' rel='facebox'>" . $eleman . "</a> "; } echo "</strong></p>"; } if (isset($_GET["ekle"])) { if (!empty($_GET["ekle"])) { if (arkadasTeklifEt(RemoveXSS($_GET["ekle"]))) { echo "<font id='tamam'>{$metin['625']}</font>"; } else { echo "<font id='hata'>{$metin['626']}</font>"; } } } if (isset($_GET["reddet"])) { if (!empty($_GET["reddet"])) { if (arkadasReddet(RemoveXSS($_GET["reddet"]))) {
$row_color = "#ddd"; } ?> <tr > <td align="right" <?php echo "style=\"background-color: {$row_color};\""; ?> ><?php echo $row_eoUsers['messageid']; ?> </td> <td <?php echo "style=\"background-color: {$row_color};\""; ?> ><a href="profil.php?kim=<?php echo getUserID2($row_eoUsers['name']); ?> " rel="facebox"><?php echo araKalin($row_eoUsers['name']); ?> </a></td> <td <?php echo "style=\"background-color: {$row_color};\""; ?> title="<?php echo $row_eoUsers['message']; ?> "><?php echo araKalin(smileAdd(smartShort($row_eoUsers['message'], 45))); ?> </td>
httpObject3 = getHTTPObject(); if (httpObject3 != null) { httpObject3.open("POST", "oyCevap.php", true); httpObject3.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=iso-8859-9'); httpObject3.send('deger='+encodeURIComponent(deger) + '&gonderen=' + encodeURIComponent(gonderen) + '&cevapID=' + encodeURIComponent(cevapID) ); httpObject3.onreadystatechange = setOutputOda3; } } </script> </head> <body> <?php $adi = temizle(substr(isset($_SESSION["usern"]) ? $_SESSION["usern"] : "", 0, 15)); $par = temizle(isset($_SESSION["userp"]) ? $_SESSION["userp"] : ""); $tur = checkRealUser($adi, $par); $gecerliKullID = getUserID2($adi); if ($tur == "2" or $tur == "1" or $tur == "0") { //öðrenci, öðretmen ve yönetici girebilir $gelenID = (int) RemoveXSS($_GET["oku"]); if (!($gelenID > 0)) { die("?"); } $srg = "select * from eo_askquestion where id={$gelenID} limit 0,1"; $sorgu = mysql_query($srg); $soru_bilgileri = mysql_fetch_array($sorgu); if ($soru_bilgileri["question"] != "") { ?> <div id="kapsayici"> <div id="soruMetni"> <pre><?php echo $soru_bilgileri["question"];
$result = -7; trackUser($currentFile, "fail,FileUp", $_SESSION["usern"]); } else { if (strlen($_FILES['myfile']['name'] > 50)) { $result = -6; trackUser($currentFile, "fail,FileUp", $_SESSION["usern"]); } else { try { $target_path = $destination_path . basename(strtolower($_FILES['myfile']['name'])); if (file_exists($target_path)) { $result = -2; trackUser($currentFile, "fail,FileUp", $_SESSION["usern"]); } else { if (@move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) { $result = 1; dosyaKaydet(strtolower($_FILES['myfile']['name']), getUserID2($_SESSION["usern"])); trackUser($currentFile, "success,FileUp", $_SESSION["usern"]); } else { $result = 0; } } } catch (Exception $e) { echo "<script>alert('Hata : {$e}');</script>"; trackUser($currentFile, "fail,FileUp", $_SESSION["usern"]); $result = 0; } } } } } }
function dersIslemSayisi($tarih, $my) { global $yol1; if ($my == "&my=0") { $sql1 = "select count(id) as say from eo_userworks where DATE_FORMAT(calismaTarihi, '%Y-%m-%d') = '{$tarih}'"; } else { $sql1 = "select count(id) as say from eo_userworks where DATE_FORMAT(calismaTarihi, '%Y-%m-%d') = '{$tarih}' and userID='" . getUserID2($_SESSION["usern"]) . "'"; } $result1 = @mysql_query($sql1, $yol1); if ($result1) { return @mysql_result($result1, 0, "say"); } return 0; }
?> )</a></th> </tr> <?php if ($_SESSION["konuKimGel"] == 1) { $kimKonu = "left outer join eo_users on eo_5sayfa.ekleyenID=eo_users.id\r\n\t\t\twhere (eo_users.id='" . getUserID2($adi) . "' or eo_5sayfa.konuID is NULL) and {$filtr} "; } else { $kimKonu = " where {$filtr} "; } $limitleme = sprintf("LIMIT %d, %d", $startRow1, $blokBuyuklugu); $sql = "SELECT eo_4konu.id, eo_4konu.konuAdi, eo_4konu.konuyuKilitle,\r\n\t\t\t\t\t eo_4konu.sadeceKayitlilarGorebilir, eo_4konu.calismaSuresiDakika, \r\n\t\t\t\t\t count(eo_5sayfa.id) as sayfasi, eo_3ders.dersAdi as dersAdi, \r\n\t\t\t\t\t eo_2sinif.sinifAdi as sinifAdi, eo_1okul.okulAdi as okulAdi \r\n\t\t\tFROM eo_4konu \r\n\t \t\tleft outer join eo_5sayfa on eo_4konu.id=eo_5sayfa.konuID \r\n\t \t\tleft outer join eo_3ders on eo_4konu.dersID=eo_3ders.id \r\n\t\t\tleft outer join eo_2sinif on eo_2sinif.id=eo_3ders.sinifID \r\n\t\t\tleft outer join eo_1okul on eo_1okul.id=eo_2sinif.okulID \r\n\t\t\t{$kimKonu} {$limitleme}"; //echo $sql; $result = mysql_query($sql, $yol); if ($result) { if ($_SESSION["konuKimGel"] == 1) { $kayitSayisi = mysql_num_rows(mysql_query("select DISTINCT eo_4konu.konuAdi from eo_4konu \r\n\t \t\t\t\t\tleft outer join eo_5sayfa on eo_4konu.id=eo_5sayfa.konuID \r\n\t\t\t\t\t\tleft outer join eo_users on eo_5sayfa.ekleyenID=eo_users.id\t\t\t\t\t\t\r\n\t\t\t\t\t\twhere {$araFilter} and (eo_users.id='" . getUserID2($adi) . "' or eo_users.id is NULL)", $yol)); } else { $kayitSayisi = mysql_num_rows(mysql_query("select * from eo_4konu where {$araFilter} ", $yol)); } $sayfaSayisi = ceil($kayitSayisi / $blokBuyuklugu) - 1; } if (@mysql_numrows($result) == 0) { echo "<tr><td colspan='3'><font id='hata'>Kayıt yok veya arama sonuçsuz kaldı!</font></td></tr>"; } else { $i = 0; $satirRenk = 0; while ($i < @mysql_numrows($result)) { $sqlSayfa = "select count(*) as toplam from eo_5sayfa where konuID = '" . @mysql_result($result, $i, "id") . "'"; $sayfaSayisi2 = mysql_query($sqlSayfa, $yol); $s_sayisi = mysql_result($sayfaSayisi2, 0, "toplam"); $satirRenk++;
{ }, { "sClass": "right" }, { } ] } ); /* Init the table */ oTable = $('#example').dataTable( ); } ); </script> </head> <body> <?php if (isset($_GET['id']) && $_GET['id'] != "" && $_GET['delCon'] == "1" && (getUserID2($_SESSION['usern']) == dosyaKimID($_GET['id']) or getUserType($_SESSION['usern']) == '2')) { if (preg_match("/777/", decoct(@fileperms($_uploadFolder))) or preg_match("/766/", decoct(@fileperms($_uploadFolder)))) { dosyaSil(RemoveXSS($_GET['id'])); $deleteSQL = sprintf("DELETE FROM eo_files WHERE id=%s", GetSQLValueString($_GET['id'], "int")); mysql_select_db($_db, $yol); $Result1 = mysql_query($deleteSQL, $yol) or die(mysql_error()); if ($Result1) { echo "<font id='uyari'> {$metin['501']}</font>"; } } } ?> <table cellpadding="0" cellspacing="0" border="0" class="display" id="example" align="center"> <thead> <tr> <th width="10%"><?php