コード例 #1
0
ファイル: mail.php プロジェクト: ergun805/eOgr
    $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&ouml;nderildi!</font>";
                $hata = true;
            } else {
                echo "<font id='hata'>&Ouml;z&uuml;r dileriz, þu anda mesajýnýz g&ouml;nderilemiyor!</font>";
                $hata = true;
            }
        } else {
            echo "<font id='hata'>&Ouml;z&uuml;r dileriz, kullanýcýnýn eposta adresi bilgisinde sorun var!</font>";
        }
コード例 #2
0
ファイル: dataCommentList.php プロジェクト: ergun805/eOgr
     mysql_select_db($_db, $yol);
     $Result1 = mysql_query($deleteSQL, $yol) or die(mysql_error());
     if ($Result1) {
         echo "<font id='uyari'>{$metin['501']}</font>";
     }
 }
 $pageCnt = temizle(isset($_GET['pageCnt']) ? $_GET['pageCnt'] : "");
 if ($pageCnt == "") {
     $pageCnt = GetSQLValueString(isset($_SESSION['pageCnt3']) ? $_SESSION['pageCnt3'] : "", "int");
 } else {
     $_SESSION['pageCnt3'] = $pageCnt;
 }
 if ($pageCnt >= 1) {
     $maxRows_eoUsers = $pageCnt;
 } else {
     $maxRows_eoUsers = ayarGetir("veriHareketleriSayisi");
 }
 $pageNum_eoUsers = 0;
 if (isset($_GET['pageNum_eoUsers'])) {
     $pageNum_eoUsers = $_GET['pageNum_eoUsers'];
 }
 $startRow_eoUsers = $pageNum_eoUsers * $maxRows_eoUsers;
 mysql_select_db($_db, $yol);
 $arayici = temizle(isset($_GET['arama']) ? $_GET['arama'] : "");
 if ($arayici != "") {
     $filtr2 = " LEFT OUTER JOIN eo_users ON eo_comments.userID = eo_users.id\r\n\t\t\t\t\t\tLEFT OUTER JOIN eo_4konu ON eo_comments.konuID = eo_4konu.id \r\n\t\t\t\t\t\twhere (userName like '%{$arayici}%' or konuAdi like '%{$arayici}%') ";
 } else {
     $filtr2 = " LEFT OUTER JOIN eo_users ON eo_comments.userID = eo_users.id \r\n\t\t\t\t\t\tLEFT OUTER JOIN eo_4konu ON eo_comments.konuID = eo_4konu.id \r\n\t\t\t\t\t\t";
 }
 if (!empty($_POST["sil"]) && !empty($_POST["silIzin"]) && $_POST["silIzin"] == "evet") {
     $silinenler = "''";
コード例 #3
0
ファイル: siteSettings.php プロジェクト: ergun805/eOgr
         echo "<font id='uyari'> {$metin['501']}</font>";
     } else {
         trackUser($currentFile, "fail,DelMember", $adi);
         echo "<font id='hata'>&Uuml;ye silme iþleminiz tamamlanamadý!</font>";
     }
 }
 $pageCnt = GetSQLValueString(isset($_GET['pageCnt']) ? $_GET['pageCnt'] : "", "int");
 if ($pageCnt == "NULL") {
     $pageCnt = GetSQLValueString(isset($_SESSION['pageCnt']) ? $_SESSION['pageCnt'] : "", "int");
 } else {
     $_SESSION['pageCnt'] = $pageCnt;
 }
 if ($pageCnt >= 1) {
     $maxRows_eoUsers = $pageCnt;
 } else {
     $maxRows_eoUsers = ayarGetir("sayfaKullaniciSayisi");
 }
 $pageNum_eoUsers = 0;
 if (isset($_GET['pageNum_eoUsers'])) {
     $pageNum_eoUsers = $_GET['pageNum_eoUsers'];
 }
 $startRow_eoUsers = $pageNum_eoUsers * $maxRows_eoUsers;
 mysql_select_db($_db, $yol);
 if (isset($_GET['ord']) && $_GET['ord'] != "") {
     $filtr1 = " and userType=" . GetSQLValueString($_GET['ord'], "int");
     $filtr2 = " where userType=" . GetSQLValueString($_GET['ord'], "int");
 }
 if (empty($_GET["yonU"])) {
     $_GET["yonU"] = "";
 }
 if (empty($_SESSION["siraYonu"])) {
コード例 #4
0
ファイル: help.php プロジェクト: ergun805/eOgr
      <div>&nbsp;</div>
    </div>
    <div class="Sheet-cl">
      <div>&nbsp;</div>
    </div>
    <div class="Sheet-cr">
      <div>&nbsp;</div>
    </div>
    <div class="Sheet-cc"></div>
    <div class="Sheet-body">
      <div class="Header">
        <div class="Header-png"></div>
        <div class="Header-jpeg"></div>
        <div class="logo">
          <h1 id="name-text" class="logo-name"><?php 
echo ayarGetir("okulGenelAdi");
?>
</h1>
          <div id="slogan-text" class="logo-text"> <?php 
echo $metin[286];
?>
 </div>
        </div>
      </div>
      <div class="contentLayout">
        <div class="content">
          <div class="Post">
            <div class="Post-tl"></div>
            <div class="Post-tr">
              <div>&nbsp;</div>
            </div>
コード例 #5
0
ファイル: siteSettings3.php プロジェクト: ergun805/eOgr
echo "http://flockdraw.com";
?>
</a></td>
                                <td><input type="text" maxlength="50" size="10" name="whiteBoardSession" id="whiteBoardSession" value="<?php 
echo ayarGetir("whiteBoardSession");
?>
"/>
                                  <tt>*</tt></td>
                              </tr>
                              <tr>
                                <td align="right"><?php 
echo $metin[216];
?>
 :</td>
                                <?php 
$secenekler = explode("-", ayarGetir("ayar5char"));
?>
                                <td><label>
                                    <input type="checkbox" name="ayar5char1" 
            id="ayar5char1" value="1" <?php 
if ($secenekler[0] == "1") {
    echo " checked='checked'";
} else {
    echo "";
}
?>
 />
                                    <?php 
echo $metin[535];
?>
</label>
コード例 #6
0
ファイル: footer.php プロジェクト: ergun805/eOgr
    onmouseover="mopen('dilSecimi');" 
    onmouseout="mclosetime();" />
    <div id="dilSecimi"   onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href='index.php?lng=EN&amp;oldPath=<?php 
    echo $currentFile;
    ?>
' ><img src='img/turkish.png' border='0' alt='Dil' style='vertical-align: middle;'/></a>&nbsp; <a href='index.php?lng=TR&amp;oldPath=<?php 
    echo $currentFile;
    ?>
'> <img src='img/english.png' border='0' alt='Language' style='vertical-align: middle;'/></a> </div>
    <?php 
}
if ($seceneklerimiz[3] == "1" and $kullaniciSecen[3] == "1") {
    echo "&nbsp;" . $metin[155] . " " . round(getmicrotime() - $time, 3) . "s";
}
$humanRelativeDate2 = new HumanRelativeDate();
$insansi = $humanRelativeDate2->getTextForSQLDate(date("Y-m-d H:i:s", filemtime($currentFile)));
if ($seceneklerimiz[4] == "1" and $kullaniciSecen[4] == "1") {
    echo "&nbsp;|&nbsp;<font size='-3'>" . $metin[217] . " " . $insansi . "</font>";
}
?>
    <strong> <?php 
echo $metin[68];
?>
 :</strong> <?php 
echo ayarGetir("versiyon");
?>
  </form>
</div>
<?php 
mysql_close($yol);
mysql_close($yol1);
コード例 #7
0
ファイル: newUser.php プロジェクト: ergun805/eOgr
                 exit;
             }
             break;
     }
     $_SESSION["newUser"] = "******";
     $_SESSION["ccode2"] = "";
     if (addnewUser($_POST['realN'], $_POST['userName'], $_POST['userPassword1'], $_POST['email'], $_POST['birth'])) {
         trackUser($currentFile, "success,NewUser", $_POST['userName']);
         echo "<br/>{$metin['7']}, " . temizle($_POST["realN"]) . "<br/><br/>";
         echo $metin[408];
         $_SESSION["tur"] = "0";
         //varsayýlan öðrencidir...
         $_SESSION["usern"] = $_POST['userName'];
         $_SESSION["userp"] = sha1($_POST['userPassword1']);
         trackUser($currentFile, "success,Login", $_SESSION["usern"]);
         if (ayarGetir("ayar4char") != "") {
             if (newUserMail($_POST['userName'], $_POST['email']) == "allOK") {
                 echo "<br/><br/>Yeni &Uuml;yelik Epostasý Baþarýlýdýr.";
             } else {
                 echo "<br/><br/>Yeni &Uuml;yelik Epostasý Baþarýlý olamadý!";
             }
         }
     } else {
         trackUser($currentFile, "fail,NewUser", $_POST['userName']);
         echo $metin[409];
     }
 } else {
     require_once "lib/phplivex.php";
     /*
     validate:
     yeni kullanýcý adý testi
コード例 #8
0
ファイル: lessons.php プロジェクト: ergun805/eOgr
}

window.onbeforeunload = function () {
  if (bitirmeYuzdesi() < 100 && parseInt(document.getElementById("calismaSuresi").innerHTML)> <?php 
echo ayarGetir("ayar3int");
?>
 )	
   return "<?php 
echo $metin[345];
?>
";
}

window.onunload = function () {
  if (parseInt(document.getElementById("calismaSuresi").innerHTML)> <?php 
echo ayarGetir("ayar3int");
?>
)	
   saveUserWork();
}
/*
cevapSureBasla:
cevaplama için süre baþlangýcý
*/
function cevapSureBasla(){

		if(document.getElementById('cevapSuresi').innerHTML==""){		
				$("#cevapSuresi").everyTime(1000,function(i) {
					
					csur = document.getElementById('gercekCevapSuresi').innerHTML;
						
コード例 #9
0
ファイル: conf.php プロジェクト: ergun805/eOgr
function getUsersOnline()
{
    global $yol1;
    $sql = "SELECT userName,(unix_timestamp(now()) - unix_timestamp(dateTime) )/60 as sure FROM eo_usertrack WHERE (unix_timestamp(now()) - unix_timestamp(dateTime) )/60 <= 300 and otherInfo='success,Login' GROUP BY userName order by sure DESC,userName limit 0," . ayarGetir("ayar2int");
    $result = mysql_query($sql, $yol1);
    $data = array();
    while ($row = mysql_fetch_assoc($result)) {
        $data['values'][] = $row['userName'];
    }
    if (isset($data['values'])) {
        return $data['values'];
    }
}
コード例 #10
0
ファイル: passwordRemember.php プロジェクト: ergun805/eOgr
function passwordMailTest()
{
    $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 (@mail(ayarGetir("ayar4char"), "eOgr test", "just eOgr - delete me!", $headers)) {
        return true;
    }
    return false;
}
コード例 #11
0
ファイル: index.php プロジェクト: ergun805/eOgr
              <div>
                <?php 
$seceneklerimiz = explode("-", ayarGetir("ayar5char"));
if (isset($_SESSION["usern"])) {
    $kullaniciSecen = explode("-", ayarGetir3(RemoveXSS($_SESSION["usern"])));
}
?>
                <div class="BlockHeader-text"><?php 
echo $metin[153];
echo " | <a href='rss.php' target='_blank' class='external'>{$metin['480']}</a>";
?>
</div>
                <ul>
                  <?php 
if ($seceneklerimiz[11] == "1" and $kullaniciSecen[11] == "1") {
    $sql1 = "select id from eo_webref_rss_items ORDER BY pubDate DESC LIMIT 0," . ayarGetir("ayar1int");
    $result1 = @mysql_query($sql1, $yol1);
    $i = 0;
    if (@mysql_numrows($result1) > 0) {
        while ($i < @mysql_numrows($result1)) {
            ?>
                  <li>
                    <?php 
            echo "<strong>", haberGetir($i, "title"), "</strong>&nbsp;";
            $humanRelativeDate = new HumanRelativeDate();
            $insansi = $humanRelativeDate->getTextForSQLDate(haberGetir($i, "pubDate"));
            echo "<font size='-2'>{$insansi}</font>";
            ?>
                    <br />
                    <p> <?php 
            echo smileAdd(haberGetir($i, "description"));
コード例 #12
0
ファイル: lessonsEdit.php プロジェクト: ergun805/eOgr
                    <li class="LinkYan<?php 
echo ($seciliSekme == "5" or $seciliSekme == "5") ? "Aktif" : "";
?>
"><a href="lessonsEdit.php?tab=5"  title="<?php 
echo $metin[52];
?>
"><img src="img/bullet.png" border="0" style="vertical-align: text-bottom;" alt="edit"/> <?php 
echo $metin[52];
?>
</a></li>
                  </ol>
                  <div style="clear:both"></div>
                  <?php 
if (!isset($_POST["blokSayi"])) {
    if (!isset($_SESSION["blokSayi"])) {
        $blokBuyuklugu = ayarGetir("sayfaBlokSayisi");
    } else {
        $blokBuyuklugu = temizle($_SESSION["blokSayi"]);
    }
} else {
    $blokBuyuklugu = temizle($_POST["blokSayi"]);
    $_SESSION["blokSayi"] = $blokBuyuklugu;
}
if (!isset($_GET["upd"])) {
    $_GET["upd"] = "";
}
if (!isset($_GET["sirAlan"])) {
    $_GET["sirAlan"] = "";
}
if (!isset($_GET["siraYap"])) {
    $_GET["siraYap"] = "";