本文整理汇总了PHP中temizle函数的典型用法代码示例。如果您正苦于以下问题:PHP temizle函数的具体用法?PHP temizle怎么用?PHP temizle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了temizle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: cevapSahibi
function cevapSahibi($cevapID)
{
global $yol1;
$usernam = substr(temizle($usernam), 0, 15);
$sql1 = "SELECT userID FROM eo_askanswer \r\n\t\t\twhere id='" . temizle($cevapID) . "' limit 0,1";
$result1 = mysql_query($sql1, $yol1);
if ($result1 && mysql_numrows($result1) == 1) {
return mysql_result($result1, 0, "userID");
} else {
return "";
}
}
开发者ID:ergun805,项目名称:eOgr,代码行数:12,代码来源:delCevap.php
示例2: getKonuKayitliKullanici
function getKonuKayitliKullanici($gelenID)
{
global $yol1;
$sql1 = "select sadeceKayitlilarGorebilir from eo_4konu where id ='" . temizle($gelenID) . "'";
$result1 = mysql_query($sql1, $yol1);
if ($result1 and mysql_num_rows($result1) == 1) {
mysql_fetch_row($result1);
return mysql_result($result1, 0, "sadeceKayitlilarGorebilir");
} else {
return "1";
}
}
开发者ID:ergun805,项目名称:eOgr,代码行数:12,代码来源:getDurum.php
示例3: getUserIDcomment
function getUserIDcomment($usernam, $passwor)
{
global $yol1;
$usernam = substr(temizle($usernam), 0, 15);
$sql1 = "SELECT id, userName, userPassword FROM eo_users where userName='" . temizle($usernam) . "' AND userPassword='" . temizle($passwor) . "' limit 0,1";
$result1 = mysql_query($sql1, $yol1);
if ($result1 && mysql_numrows($result1) == 1) {
return mysql_result($result1, 0, "id");
} else {
return "";
}
}
开发者ID:ergun805,项目名称:eOgr,代码行数:12,代码来源:askForFriendship2.php
示例4: trim
// For security and spam protection reasons check if $_POST['token'] has the same value as $_SESSION['token']
if (isset($_POST['name']) && trim($_POST['name'] !== "") && trim($_POST['name'] !== "name") && strlen($_POST['name']) < 26 && (isset($_POST['url']) && strlen($_POST['url']) < 100) && (isset($_POST['message']) && trim($_POST['message']) !== "" && trim($_POST['message']) !== "message" && strlen($_POST['message']) < 400) && (isset($_SESSION['token']) && $_POST['token'] == $_SESSION['token'])) {
$name = $_POST['name'];
$url = trim($_POST['url']);
if (strstr($url, 'http://') && strlen($url) == 7 || $url == "") {
unset($url);
}
$msg = $_POST['message'];
// Get a sender IP (it will be in use in the next wTag version)
$remote = $_SERVER["REMOTE_ADDR"];
// Store it converted
$converted_address = ip2long($remote);
$oda = $_SESSION["oda"];
$name = iconv("UTF-8", "ISO-8859-9", temizle($name));
$url = iconv("UTF-8", "ISO-8859-9", temizle($url));
$msg = iconv("UTF-8", "ISO-8859-9", temizle($msg));
// Insert a new message into database
if ($msg != "") {
$sql->query("INSERT INTO eo_shoutbox SET name= '{$name}', url='{$url}', message= '{$msg}', ip='{$oda}', date=now()");
}
// Get the id for the last inserted message
$lastid = $sql->get_id();
// Delete oldest messages
if ($lastid > 300) {
$sql->query("DELETE FROM eo_shoutbox WHERE messageid <({$lastid}-20)");
}
// Retrieve last 20 messages
$sql->query("SELECT date, name, url, message FROM eo_shoutbox WHERE messageid <= {$lastid} and ip='{$oda}' ORDER BY messageid DESC LIMIT 20");
} else {
// Just retrieve last 20 messages
$sql->query("SELECT date, name, url, message FROM eo_shoutbox where ip='{$oda}' ORDER BY messageid DESC LIMIT 20");
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:sendchat.php
示例5: header
eOgr - elearning project
Developer Site: http://yunus.sourceforge.net
Demo Site: http://yunus.sourceforge.net/eogr
Source Track: http://eogr.googlecode.com
Support: http://www.ohloh.net/p/eogr
This project is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or any later version. See the GNU
Lesser General Public License for more details.
*/
header("Content-Type: text/html; charset=iso-8859-9");
ob_start();
// Buffer output
session_start();
$_SESSION['ready'] = TRUE;
require "conf.php";
if (!check_source()) {
die("<font id='hata'>{$metin['295']}</font>");
}
if (md5($_SERVER['HTTP_USER_AGENT']) == $_SESSION['aThing']) {
$adi = temizle(substr(isset($_SESSION["usern"]) ? $_SESSION["usern"] : "", 0, 15));
$par = temizle(isset($_SESSION["userp"]) ? $_SESSION["userp"] : "");
if (temizle($_GET["sonSayfa"]) > 0) {
echo trackUserLesson(getUserID($adi, $par), temizle($_GET["konuID"]), temizle($_GET["sure"]), temizle($_GET["sonSayfa"]));
}
} else {
sessionDestroy();
}
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:setUserWork.php
示例6: RemoveXSS
<input type="text" maxlength="50" size="50" name="ara" value="<?php
echo RemoveXSS(isset($_GET["ara"]) ? $_GET["ara"] : "");
?>
" />
<input name="arama" type="image" id="ara" src="img/view.png" alt="Ara" style="vertical-align: middle;"/>
</form>
</p>
<?php
$currentPage = $_SERVER["PHP_SELF"];
$devam = RemoveXSS(isset($_GET["devam"]) ? $_GET["devam"] : "");
if (empty($_SESSION['soruLimit'])) {
$_SESSION['soruLimit'] = 5;
}
$limit = RemoveXSS($_SESSION['soruLimit']);
$arama = str_replace("'", "`", isset($_GET["ara"]) ? $_GET["ara"] : "");
$arama = substr(temizle($arama), 0, 300);
$tumKaySay = soruSayisiGetir($arama);
if ($devam == "1" and $tumKaySay > $_SESSION['soruLimit']) {
$_SESSION['soruLimit'] += 3;
$limit = RemoveXSS($_SESSION['soruLimit']);
}
if ($arama != "") {
$veriSQL = "SELECT * FROM eo_askquestion WHERE question \r\n\t\t\t\t\t\t\tLIKE '%{$arama}%'\r\n\t\t\t\t\t\t \tORDER BY eklenmeTarihi DESC LIMIT 0,{$limit}";
} else {
$veriSQL = "SELECT * FROM eo_askquestion ORDER BY eklenmeTarihi DESC LIMIT 0,{$limit}";
}
$veriSonuc = mysql_query($veriSQL, $yol1);
$kaySay = @mysql_num_rows($veriSonuc);
if ($kaySay > 0) {
?>
<p>
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:askQuestion.php
示例7: dilCevir
}
dilCevir($taraDili);
$aUsers = array();
$aID = array();
$aInfo = array();
$result = mysql_query("select realName from eo_users order by id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
$aUsers[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["realName"])));
}
$result = mysql_query("select id from eo_users order by id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
$aID[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["id"])));
}
$result = mysql_query("select userName from eo_users order by id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
$aInfo[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["userName"])));
}
if (!empty($_GET['input'])) {
$input = strtolower($_GET['input']);
} else {
$input = "";
}
$len = strlen($input);
$limit = 5;
$aResults = array();
$count = 0;
if ($len) {
for ($i = 0; $i < count($aUsers); $i++) {
// had to use utf_decode, here
// not necessary if the results are coming from mysql
//
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:test2.php
示例8: trackUser
echo "<font id='tamam'> Site bakýma alýndý.</font>";
trackUser($currentFile, "success,SiteLock", $adi);
}
if ($_POST['ayar5char17'] == "1") {
if (@chmod($_uploadFolder, 0777)) {
echo "<font id='tamam'> Paylaþým klasörü yazýlabilir.</font>";
trackUser($currentFile, "success,SharedWrite", $adi);
}
} else {
if (@chmod($_uploadFolder, 0755)) {
echo "<font id='tamam'> Paylaþým klasörü salt okunur.</font>";
trackUser($currentFile, "success,SharedReadOnly", $adi);
}
}
$ayar5char = temizle($_POST['ayar5char1'] . "-" . $_POST['ayar5char2'] . "-" . $_POST['ayar5char3'] . "-" . $_POST['ayar5char4'] . "-" . $_POST['ayar5char5'] . "-" . $_POST['ayar5char6'] . "-" . $_POST['ayar5char7'] . "-" . $_POST['ayar5char8'] . "-" . $_POST['ayar5char9'] . "-" . $_POST['ayar5char10'] . "-" . $_POST['ayar5char11'] . "-" . $_POST['ayar5char12'] . "-" . $_POST['ayar5char13'] . "-" . $_POST['ayar5char14'] . "-" . $_POST['ayar5char15'] . "-" . $_POST['ayar5char16'] . "-" . $_POST['ayar5char17']);
$updateSQL = sprintf("\r\n\t\t\tUPDATE eo_sitesettings \r\n\t\t\tSET okulGenelAdi=%s, versiyon=%s, sayfaBlokSayisi=%s, \r\n\t\t\tsayfaKullaniciSayisi=%s, veriHareketleriSayisi=%s, \r\n\t\t\tayar4char=%s, ayar1int=%s, ayar2int=%s, ayar3int=%s, \r\n\t\t\tayar5char='%s',\r\n\t\t\tuploadFolder = %s,\r\n\t\t\tsiteUnlockPwd = %s,\r\n\t\t\tdefaultTheme = %s,\r\n\t\t\tdefaultLang = %s,\r\n\t\t\tfilesToPlay = %s,\r\n\t\t\tfileMaxUploadSize = %s,\r\n\t\t\tvideoChatSession = %s,\r\n\t\t\twhiteBoardSession = %s\r\n\t\t\t\r\n\t\t\tWHERE id='1'", temizle(GetSQLValueString($_POST['okulGenelAdi'], "text")), temizle(GetSQLValueString($_POST['versiyon'], "text")), temizle(GetSQLValueString($_POST['sayfaBlokSayisi'], "int")), temizle(GetSQLValueString($_POST['sayfaKullaniciSayisi'], "int")), temizle(GetSQLValueString($_POST['veriHareketleriSayisi'], "int")), temizle(GetSQLValueString($_POST['ayar4char'], "text")), temizle(GetSQLValueString($_POST['ayar1int'], "int")), temizle(GetSQLValueString($_POST['ayar2int'], "int")), temizle(GetSQLValueString($_POST['ayar3int'], "int")), $ayar5char, temizle(GetSQLValueString($_POST['uploadFolder'], "text")), temizle(GetSQLValueString($_POST['siteUnlockPwd'], "text")), temizle(GetSQLValueString($_POST['defaultTheme'], "text")), temizle(GetSQLValueString($_POST['defaultLang'], "text")), temizle(GetSQLValueString($_POST['filesToPlay'], "text")), temizle(GetSQLValueString($_POST['fileMaxUploadSize'], "int")), temizle(GetSQLValueString($_POST['videoChatSession'], "text")), temizle(GetSQLValueString($_POST['whiteBoardSession'], "text")));
mysql_select_db($_db, $yol);
$Result1 = mysql_query($updateSQL, $yol);
if ($Result1) {
trackUser($currentFile, "success,SiteInfo", $adi);
echo "<font id='uyari'> {$metin['536']}</font>";
} else {
trackUser($currentFile, "fail,SiteInfo", $adi);
echo "<font id='hata'> Site bilgilerinde hata olduðunda güncelleme iþleminiz tamamlanamadý!</font>";
}
}
}
?>
<br />
<br />
<?php
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:siteSettings3.php
示例9: array
@session_start();
include "conf.php";
$aUsers = array();
$aID = array();
$aInfo = array();
$result = mysql_query("select konuAdi from eo_4konu order by id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
$aUsers[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["konuAdi"])));
}
$result = mysql_query("select id from eo_4konu order by id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
$aID[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["id"])));
}
$result = mysql_query("select eo_3ders.dersAdi as dersAdi from eo_3ders,eo_4konu where eo_4konu.dersID=eo_3ders.id order by eo_4konu.id");
for ($i = 0; $sonuc = mysql_fetch_assoc($result); $i++) {
$aInfo[$i] = iconv("ISO-8859-9", "UTF-8", temizle(htmlentities($sonuc["dersAdi"])));
}
if (!empty($_GET['input'])) {
$input = strtolower($_GET['input']);
} else {
$input = "";
}
$len = strlen($input);
$limit = 5;
$aResults = array();
$count = 0;
if ($len) {
for ($i = 0; $i < count($aUsers); $i++) {
// had to use utf_decode, here
// not necessary if the results are coming from mysql
//
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:getLesson.php
示例10: getUserID2
break;
default:
$ktut = $metin[89];
}
$geceliKullID = getUserID2($adi);
if (isset($_GET["kisi"])) {
if (!empty($_GET["kisi"])) {
$_SESSION["seciliArkadas"] = RemoveXSS($_GET["kisi"]);
}
}
?>
<p> <?php
echo $metin[7];
?>
, <?php
echo temizle($_SESSION["userr"]) . " <a href='profil.php?kim=" . $geceliKullID . "&set=1' rel=\"facebox\">{$metin['311']}</a> " . $ktut;
?>
</p>
<?php
if ($_SESSION["tur"] == '0') {
$siniflar = getOgrenciSiniflari();
if ($siniflar != "") {
echo "<p>" . $metin[210] . " : " . $siniflar;
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>";
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:friends.php
示例11: boardnewslide
//.........这里部分代码省略.........
$last_open = strrpos($row['body'], '<');
$last_close = strrpos($row['body'], '>');
if (empty($last_space) || $last_space == $last_open + 3 && (empty($last_close) || !empty($last_close) && $last_close < $last_open) || $last_space < $last_open || $last_open == $length - 6) {
$cutoff = $last_open;
} elseif (empty($last_close) || $last_close < $last_open) {
$cutoff = $last_space;
}
if ($cutoff !== false) {
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
}
$row['body'] .= '...';
}
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
if (!empty($recycle_board) && $row['id_board'] == $recycle_board) {
$row['icon'] = 'recycled';
}
// Check that this message icon is there...
if (!empty($modSettings['messageIconChecks_enable']) && !isset($icon_sources[$row['icon']])) {
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.png') ? 'images_url' : 'default_images_url';
}
// Censor everything.
censorText($row['body']);
censorText($row['subject']);
// BBC-atize the message.
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
$secimyap = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $row['body'], $sonuc);
// src="" içindekini al.
if (!empty($sonuc[0]) && !empty($sonuc[1])) {
$ilkresim = $sonuc[1][0];
} else {
// Resim bulunmazsa default resim ekle
$ilkresim = $settings['theme_url'] . '/images/konusaldefault.png';
}
// And build the array.
$context['posts'][$row['id_msg']] = array('id' => $row['id_msg'], 'counter' => $counter++, 'alternate' => $counter % 2, 'category' => array('id' => $row['id_cat'], 'name' => $row['cname'], 'href' => $scripturl . '#c' . $row['id_cat'], 'link' => '<a href="' . $scripturl . '#c' . $row['id_cat'] . '">' . $row['cname'] . '</a>'), 'board' => array('id' => $row['id_board'], 'name' => $row['bname'], 'href' => $scripturl . '?board=' . $row['id_board'] . '.0', 'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['bname'] . '</a>'), 'topic' => $row['id_topic'], 'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#msg' . $row['id_msg'], 'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#msg' . $row['id_msg'] . '" rel="nofollow">' . $row['subject'] . '</a>', 'start' => $row['num_replies'], 'subject' => $row['subject'], 'resim' => $ilkresim, 'time' => timeformat($row['poster_time']), 'timestamp' => forum_time(true, $row['poster_time']), 'first_poster' => array('id' => $row['id_first_member'], 'name' => $row['first_poster_name'], 'href' => empty($row['id_first_member']) ? '' : $scripturl . '?action=profile;u=' . $row['id_first_member'], 'link' => empty($row['id_first_member']) ? $row['first_poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_first_member'] . '">' . $row['first_poster_name'] . '</a>'), 'poster' => array('id' => $row['id_member'], 'name' => $row['poster_name'], 'href' => empty($row['id_member']) ? '' : $scripturl . '?action=profile;u=' . $row['id_member'], 'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'), 'message' => $row['body'], 'can_reply' => false, 'can_mark_notify' => false, 'can_delete' => false, 'delete_possible' => ($row['id_first_msg'] != $row['id_msg'] || $row['id_last_msg'] == $row['id_msg']) && (empty($modSettings['edit_disable_time']) || $row['poster_time'] + $modSettings['edit_disable_time'] * 60 >= time()));
if ($user_info['id'] == $row['id_first_member']) {
$board_ids['own'][$row['id_board']][] = $row['id_msg'];
}
$board_ids['any'][$row['id_board']][] = $row['id_msg'];
}
$smcFunc['db_free_result']($request);
// There might be - and are - different permissions between any and own.
$permissions = array('own' => array('post_reply_own' => 'can_reply', 'delete_own' => 'can_delete'), 'any' => array('post_reply_any' => 'can_reply', 'mark_any_notify' => 'can_mark_notify', 'delete_any' => 'can_delete'));
// Now go through all the permissions, looking for boards they can do it on.
foreach ($permissions as $type => $list) {
foreach ($list as $permission => $allowed) {
// They can do it on these boards...
$boards = boardsAllowedTo($permission);
// If 0 is the only thing in the array, they can do it everywhere!
if (!empty($boards) && $boards[0] == 0) {
$boards = array_keys($board_ids[$type]);
}
// Go through the boards, and look for posts they can do this on.
foreach ($boards as $board_id) {
// Hmm, they have permission, but there are no topics from that board on this page.
if (!isset($board_ids[$type][$board_id])) {
continue;
}
// Okay, looks like they can do it for these posts.
foreach ($board_ids[$type][$board_id] as $counter) {
if ($type == 'any' || $context['posts'][$counter]['poster']['id'] == $user_info['id']) {
$context['posts'][$counter][$allowed] = true;
}
}
}
}
}
$quote_enabled = empty($modSettings['disabledBBC']) || !in_array('quote', explode(',', $modSettings['disabledBBC']));
foreach ($context['posts'] as $counter => $dummy) {
// Some posts - the first posts - can't just be deleted.
$context['posts'][$counter]['can_delete'] &= $context['posts'][$counter]['delete_possible'];
// And some cannot be quoted...
$context['posts'][$counter]['can_quote'] = $context['posts'][$counter]['can_reply'] && $quote_enabled;
}
global $context, $settings, $options, $txt, $scripturl;
echo '<script type="text/javascript" src="', $settings['theme_url'], '/scripts/modernizr.custom.28468.js"></script>
<div id="da-slider" class="da-slider">';
foreach ($context['posts'] as $post) {
echo '
<div class="da-slide">
<h2><a href="', $post['href'], '">', $post['subject'], '</a></h2>
<p>', temizle($post['message']), ' </p>
<a href="', $post['href'], '" class="da-link">', $txt['Read'], '</a>
<div class="da-img"><a href="', $post['href'], '"> <img width="120px" src="', $post['resim'], '" alt="', $post['subject'], '" class="haber_resmi" /></a></div>
</div>';
}
echo '
</div>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/jquery.cslider.js"></script>
<script type="text/javascript">
$(function() {
$(\'#da-slider\').cslider({
autoplay : true,
bgincrement : 450
});
});
</script>';
}
开发者ID:snrj,项目名称:konusal-m-theme,代码行数:101,代码来源:konusal-com.php
示例12: temaBilgisi
function temaBilgisi()
{
$result = numToTheme(0);
//ilk tema
$cerezden = temizle(isset($_COOKIE["theme"]) ? $_COOKIE["theme"] : "");
if ($cerezden != "" and is_dir('theme/' . $cerezden)) {
$result = $cerezden;
}
if (empty($cerezden)) {
setcookie("theme", $result, time() + 60 * 60 * 24 * 30);
}
return $result;
}
开发者ID:ergun805,项目名称:eOgr,代码行数:13,代码来源:install.php
示例13: temizle
</span></span></a></li>
<li><a href="dataFriendActions.php"><span><span> <?php
echo $metin[594] . $bilgi10;
?>
</span></span></a></li>
</ul>
</li>
</ul>
</li>
<?php
}
?>
<li><a href="index.php?logout=1"><span><span><img src="img/logout.png" border="0" style="vertical-align: middle;" alt="logout"/>
<?php
if (!empty($adi)) {
echo temizle($adi) . " ";
}
?>
<?php
echo $metin[59];
?>
</span></span></a>
<?php
if ($remUser) {
?>
<ul>
<li> <a href="index.php?forgetMe=1"><span><span><?php
echo $metin[196];
?>
</span></span></a> </li>
</ul>
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:menu.php
示例14: temizle
break;
case '1':
$ktut = $metin[87];
break;
case '2':
$ktut = $metin[88];
break;
default:
$ktut = $metin[89];
}
?>
<p> <?php
echo $metin[7];
?>
, <?php
echo temizle($_SESSION["userr"]) . " " . $ktut;
?>
</p>
<?php
if ($_SESSION["tur"] == '1' || $_SESSION["tur"] == '2') {
$pasifYorumlar = getpasifYorumlar();
if ($pasifYorumlar > 0) {
echo $metin[294] . " : <a href=dataCommentList2.php>" . $pasifYorumlar . " <img src='img/uyari.gif' border='0' style=\"vertical-align: middle;\" alt=\"imp\" /></a>";
echo "<br/>";
}
}
if (trim(getStats(11)) != "") {
echo "<br/><div class='ikiKolon'>";
echo "<strong>" . $metin[213] . "</strong><br/>" . getStats(11) . "</div>";
if (trim(getStats(12)) != "") {
echo "<div class='ikiKolon'><strong>" . $metin[239] . "</strong><br/>" . getStats(12) . "</div>";
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:stats.php
示例15: istekListesi
function istekListesi()
{
global $yol1;
$lmt = 30;
//son 30 günlük yeter
$user = temizle(substr(isset($_SESSION["usern"]) ? $_SESSION["usern"] : "", 0, 15));
$sql = "SELECT dateTime,DATE_FORMAT(dateTime, '%d-%m-%Y') as dt FROM eo_usertrack WHERE (unix_timestamp(now()) - unix_timestamp(dateTime) )/3600/24 <= {$lmt} and userName='{$user}' and otherInfo like 'request%' order by dateTime DESC";
$result = mysql_query($sql, $yol1);
$data = "";
while ($row = mysql_fetch_assoc($result)) {
$data .= $row['dt'] . ", ";
}
$data = substr($data, 0, strlen($data) - 2);
//son , silindi
return $data;
}
开发者ID:ergun805,项目名称:eOgr,代码行数:16,代码来源:conf.php
示例16: sprintf
}
}
if (isset($_POST["MM_update"]) && $_POST["MM_update"] == "form3") {
if (GetSQLValueString($_POST['realName'], "text") == 'NULL' || GetSQLValueString($_POST['userEmail'], "text") == 'NULL' || GetSQLValueString($_POST['userBirthDate'], "text") == 'NULL') {
echo "<font id='hata'>Üye bilgilerinizde eksik alanlar vardýr.</font>";
} else {
if (!isset($_POST['prldeg'])) {
$_POST['prldeg'] = "";
}
if ($_POST['prldeg'] != "secili" && (GetSQLValueString($_POST['userPassword'], "text") == 'NULL' || GetSQLValueString($_POST['userPassword2'], "text") == 'NULL' || $_POST["userPassword"] != $_POST["userPassword2"] || strlen($_POST["userPassword"]) < 5 || $adi == $_POST["userPassword"] || substr_count($_POST["userPassword"], substr($_POST["userPassword"], 0, 1)) == strlen($_POST["userPassword"]) || $_POST["userPassword"] == "12345678")) {
echo "<font id='hata'>Yeni parolanýzý yazmadýnýz, tekrarý boþ geçtiniz, parola ile kullanýcý adý ayný, tekrarlý deðer girdiniz, 12345678 girdiniz veya çok kýsa bir parola girdiniz!</font>";
} else {
if ($_POST['prldeg'] == "secili") {
$updateSQL = sprintf("UPDATE eo_users SET realName=%s, userEmail=%s, userBirthDate='%s' WHERE id=%s", temizle(RemoveXSS(GetSQLValueString($_POST['realName'], "text"))), temizle(RemoveXSS(GetSQLValueString($_POST['userEmail'], "text"))), tarihYap($_POST['userBirthDate']), temizle(RemoveXSS(GetSQLValueString($_POST['id'], "int"))));
} else {
$updateSQL = sprintf("UPDATE eo_users SET userPassword=sha1(%s), realName=%s, userEmail=%s, userBirthDate='%s' WHERE id=%s", temizle(RemoveXSS(GetSQLValueString($_POST['userPassword'], "text"))), temizle(RemoveXSS(GetSQLValueString($_POST['realName'], "text"))), temizle(RemoveXSS(GetSQLValueString($_POST['userEmail'], "text"))), tarihYap($_POST['userBirthDate']), temizle(RemoveXSS(GetSQLValueString($_POST['id'], "int"))));
}
mysql_select_db($_db, $yol);
$Result1 = mysql_query($updateSQL, $yol);
if ($Result1) {
echo "<font id='tamam'> {$metin['536']}</font>";
trackUser($currentFile, "success,UserInf", $adi);
if ($_POST['prldeg'] != "secili") {
trackUser($currentFile, "success,PasswdC", $adi);
die("<font id='hata'> Parolanýzý deðiþtirdiðiniz için tekrar oturum açmanýz gerekmektedir!</font>");
}
} else {
trackUser($currentFile, "fail,UserInf", $adi);
echo "<font id='hata'> Üye bilgilerinizde hata olduðunda güncelleme iþleminiz tamamlanamadý! Örneðin kullanýlan bir eposta adresi girdiniz.</font>";
}
}
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:userSettings.php
示例17: temizleCubuk
function temizleCubuk($gelen)
{
$gelen = str_replace("|", "¦", temizle($gelen));
return $gelen;
}
开发者ID:ergun805,项目名称:eOgr,代码行数:5,代码来源:lessonsEdit.php
示例18: temizle
</span></span></a> </div>
</div>
</div>
<?php
} else {
?>
<form id="formLogin" method="post" action="login.php">
<label for="userN"> <?php
echo $metin[0];
?>
: </label>
<input type="hidden" name="form" value="login" />
<div>
<input name="userN" type="text" id="userN" size="18" maxlength="15" class="required" style="width:150px"
value="<?php
echo $remUser ? temizle($_COOKIE["remUser"]) : "";
?>
" />
</div>
<label for="userP"> <?php
echo $metin[1];
?>
: </label>
<div>
<input name="userP" type="password" id="userP" size="18" maxlength="15" class="required" style="width:150px" />
</div>
<br />
<input type="submit" name="sumb" id="sumb" value="<?php
echo $metin[2];
?>
" />
开发者ID:ergun805,项目名称:eOgr,代码行数:31,代码来源:login.php
示例19: anaMetniOku
function anaMetniOku($gelen, $sayfaNo)
{
global $yol1;
global $metin;
if (empty($gelen)) {
return "<font id='uyari'>{$metin['176']}</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
if (empty($sayfaNo)) {
return "<font id='uyari'>{$metin['176']}</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
$sql1 = "select \r\n\t eo_5sayfa.id,eo_5sayfa.anaMetin as ana,eo_5sayfa.cevap as cevap,\r\n\t\t\t\teo_5sayfa.eklenmeTarihi as tarih,\t\t\t\t\r\n\t\t\t\teo_5sayfa.slideGecisSuresi as sgSuresi,\r\n\t\t\t\teo_5sayfa.cevapSuresi as cSuresi,\r\n\t\t\t\teo_users.userName as user, \r\n\t\t\t\teo_4konu.konuAdi as konuAdi,eo_4konu.konuyuKilitle as konuyuKilitle,\t\t\r\n\t\t\t\teo_4konu.oncekiKonuID as oncekiKonuID, eo_4konu.calismaHakSayisi as calismaHakSayisi,\t\r\n\t\t\t\teo_4konu.calismaSuresiDakika as calismaSuresiDakika,\r\n\t\t\t\teo_4konu.sinifaDahilKullaniciGorebilir as sinifaDahilKullaniciGorebilir,\r\n\t\t\t\teo_4konu.bitisTarihi as bitisTarihi, eo_4konu.sadeceKayitlilarGorebilir as skg, \r\n\t\t\t\teo_4konu.id as aktifKonuNo\r\n\t\t\t\tfrom eo_5sayfa, eo_users, eo_4konu \r\n\t\t\t\twhere eo_5sayfa.konuID='{$gelen}' and \r\n\t\t\t\t(eo_users.id=eo_5sayfa.ekleyenID) and (eo_4konu.id=eo_5sayfa.konuID) \r\n\t\t\t\torder by eo_5sayfa.sayfaSirasi";
$result1 = mysql_query($sql1, $yol1);
if ($result1) {
mysql_fetch_row($result1);
$kayitSayisi = @mysql_numrows($result1);
if ($sayfaNo < 0) {
$sayfaNo = 0;
} else {
if ($sayfaNo > $kayitSayisi) {
$sayfaNo = $kayitSayisi - 1;
} else {
$sayfaNo = $sayfaNo - 1;
}
}
//0 index kayit baslangicidir
$humanRelativeDate = new HumanRelativeDate();
$insansi = $humanRelativeDate->getTextForSQLDate(@mysql_result($result1, $sayfaNo, "tarih"));
$tarih = $insansi;
$user = @mysql_result($result1, $sayfaNo, "user");
$cevap = @mysql_result($result1, $sayfaNo, "cevap");
$konuAdi = @mysql_result($result1, $sayfaNo, "konuAdi");
$konuyuKilitle = @mysql_result($result1, $sayfaNo, "konuyuKilitle");
$bitisTarihi = @mysql_result($result1, $sayfaNo, "bitisTarihi");
$sKayitlilarG = @mysql_result($result1, $sayfaNo, "skg");
$aktifKonuNo = @mysql_result($result1, $sayfaNo, "aktifKonuNo");
$oncekiKonuID = @mysql_result($result1, $sayfaNo, "oncekiKonuID");
$calismaHakS = @mysql_result($result1, $sayfaNo, "calismaHakSayisi");
$sgSuresi = temizle(@mysql_result($result1, $sayfaNo, "sgSuresi"));
$cSuresi = temizle(@mysql_result($result1, $sayfaNo, "cSuresi"));
$calismaSuresiD = $sKayitlilarG ? @mysql_result($result1, $sayfaNo, "calismaSuresiDakika") : "0";
$sinifOgreK = $sKayitlilarG ? @mysql_result($result1, $sayfaNo, "sinifaDahilKullaniciGorebilir") : "0";
$oncekiKonuAdi = getOncekiKonuAdi($oncekiKonuID);
$sonrakiKonuID = getSonrakiKonu($gelen, "id");
$sonrakiKonuAdi = getSonrakiKonu($gelen, "konuAdi");
if ($bitisTarihi != "0000-00-00") {
$gunFarki = getDayCount(date("Y-n-j"), $bitisTarihi);
} else {
$gunFarki = 1;
}
$adi = temizle(substr(isset($_SESSION["usern"]) ? $_SESSION["usern"] : "", 0, 15));
$par = temizle(isset($_SESSION["userp"]) ? $_SESSION["userp"] : "");
$tur = checkRealUser($adi, $par);
if ($kayitSayisi > 0) {
if ($sKayitlilarG == "1" && !in_array($tur, array("1", "2", "0"))) {
//login olmamýþ
return "<font id='hata'>'{$konuAdi}' " . $metin[181] . "<br/><a href='newUser.php'><img src='img/user_manager.gif' border=\"0\" style=\"vertical-align: middle;\" alt='" . $metin[149] . "' title='" . $metin[149] . "' />{$metin['3']}!</a> <a href='index.php'><img src=\"img/home.png\" border=\"0\" style=\"vertical-align: middle;\" alt=\"main\"/> {$metin['2']}</a></font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
if ($sKayitlilarG == "1" && in_array($tur, array("1", "2", "0"))) {
if (kullaniciHakSayisi($gelen, $adi, $par) >= $calismaHakS && $calismaHakS > 0) {
return "<font id='hata'>'{$konuAdi}', " . $metin[208] . "</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
}
if ($sKayitlilarG == "1" && $tur == "0") {
if (ogrenciSinifaDahil($adi, $par, $gelen) == 0 && $sinifOgreK == 1) {
return "<font id='hata'>'{$konuAdi}', " . $metin[214] . "</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
}
if ($konuyuKilitle == "1") {
return "<font id='hata'><img src='img/lock.png' border=\"0\" style=\"vertical-align: middle;\" alt='" . $metin[179] . "' title='" . $metin[179] . "' /> '{$konuAdi}' " . $metin[179] . "</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
if ($gunFarki <= 0) {
return "<font id='hata'>'{$konuAdi}' " . $metin[180] . "</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
$cevaplanmisMi = @array_key_exists(mysql_result($result1, $sayfaNo, "id"), $_SESSION["cevaplar"]);
if (($cevap != "" || is_numeric($cevap)) && !$cevaplanmisMi) {
$cevap = mysql_result($result1, $sayfaNo, "id");
} else {
$cevap = "-";
}
return html_entity_decode(@mysql_result($result1, $sayfaNo, "ana")) . "|" . $tarih . "|" . $user . "|" . $kayitSayisi . "|" . $sayfaNo . "|" . $konuAdi . "|" . $oncekiKonuID . "|" . $oncekiKonuAdi . "|" . $sonrakiKonuID . "|" . $sonrakiKonuAdi . "|" . $calismaSuresiD . "|" . $cevap . "|" . $aktifKonuNo . "|" . $cSuresi . "|" . $sgSuresi;
} else {
return "<font id='hata'><img src='img/empty.png' border=\"0\" style=\"vertical-align: middle;\" alt='" . $metin[209] . "' title='" . $metin[209] . "' />" . $metin[182] . "</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
} else {
return "<font id='hata'>" . $metin[183] . "</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
return "<font id='hata'>" . $metin[184] . "</font>|-|-|-|-|-|-|-|-|-|-|-|-|-|-";
}
开发者ID:ergun805,项目名称:eOgr,代码行数:88,代码来源:getContent.php
|
请发表评论