Tarih: 2008-08-17, 22:57:56 Mesaj konusu: Bu sorun nedir.
Arkadaşlar sitede şu sorunla karşılaşıyorum. Nedir bu sorun acaba.
Fatal error: Cannot redeclare displaykids() (previously declared in /home/xxxxxtr/domains/siteminadi.com.tr/public_html/includes/nsnne_func.php:253) in /home/xxxxxtr/domains/siteminadi.com.tr/public_html/modules/Surveys/comments.php on line 406
public_html/includes/nsnne_func.php:253 bu uzantidaki nsnne_php in 253 uncu satırı = function DisplayKids ($tid, $mode, $order=0, $thold=0, $level=0, $dummy=0, $tblwidth=100) {
public_html/modules/Surveys/comments.php on line 406 ncı satırda ise } işareti var. bir fonksiyon kapatılmış. Kapatılan foksiyon ise aşagıya paste ediyorum
Kod:
function DisplayKids ($tid, $mode, $order=0, $thold=0, $level=0, $dummy=0, $tblwidth=99) {
global $datetime, $user, $c o o k i e, $bgcolor1, $reasons, $anonymous, $anonpost, $commentlimit, $prefix, $module_name, $db, $userinfo, $user_prefix;
$comments = 0;
c o o k i edecode($user);
getusrinfo($user);
if (!isset($mode) OR empty($mode)) {
if(isset($userinfo['umode'])) {
$mode = $userinfo['umode'];
} else {
$mode = "thread";
}
}
if (!isset($order) OR empty($order)) {
if(isset($userinfo['uorder'])) {
$order = $userinfo['uorder'];
} else {
$order = 0;
}
}
if (!isset($thold) OR empty($thold)) {
if(isset($userinfo['thold'])) {
$thold = $userinfo['thold'];
} else {
$thold = 0;
}
}
$tid = intval($tid);
$result = $db->sql_query("SELECT tid, pid, pollID, date, name, email, host_name, subject, comment, score, reason from ".$prefix."_pollcomments where pid = '$tid' order by date, tid");
if ($mode == 'nested') {
/* without the tblwidth variable, the tables run off the screen with netscape
in nested mode in long threads so the text can't be read. */
while($row = $db->sql_fetchrow($result)) {
$r_tid = intval($row['tid']);
$r_pid = intval($row['pid']);
$r_pollID = intval($row['pollID']);
$r_date = $row['date'];
$r_name = filter($row['name'], "nohtml");
$r_email = filter($row['email'], "nohtml");
$r_host_name = filter($row['host_name'], "nohtml");
$r_subject = filter($row['subject'], "nohtml");
$r_comment = filter($row['comment']);
$r_score = intval($row['score']);
$r_reason = intval($row['reason']);
if($r_score >= $thold) {
if (!isset($level)) {
} else {
if (!$comments) {
echo "<ul>";
$tblwidth -= 5;
}
}
$comments++;
if (!eregi("[a-z0-9]",$r_name)) $r_name = $anonymous;
if (!eregi("[a-z0-9]",$r_subject)) $r_subject = "["._NOSUBJECT."]";
// enter hex color between first two appostrophe for second alt bgcolor
$r_bgcolor = ($dummy%2)?"":"#E6E6D2";
echo "<a name="$r_tid\">";
echo "<table><tr><td>";
formatTimestamp($r_date);
if ($r_email) {
echo "<p><b>$r_subject</b> <font>";
if($userinfo['noscore'] == 0) {
echo "("._SCORE." $r_score";
if($r_reason>0) echo ", $reasons[$r_reason]";
echo ")";
}
echo "<br>"._BY." <a href="mailto:$r_email\">$r_name</a> <font><b>($r_email)</b></font> "._ON." $datetime";
} else {
echo "<p><b>$r_subject</b> <font>";
if($userinfo['noscore'] == 0) {
echo "("._SCORE." $r_score";
if($r_reason>0) echo ", $reasons[$r_reason]";
echo ")";
}
echo "<br>"._BY." $r_name "._ON." $datetime";
}
if ($r_name != $anonymous) {
$row2 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE username='$r_name'"));
$r_uid = intval($row2['user_id']);
echo "<br>(<a href="modules.php?name=Your_Account&op=userinfo&username=$r_name\">"._USERINFO."</a> ";
if(is_active("Private_Messages")) {
echo "| <a href="modules.php?name=Private_Messages&mode=post&u=$r_uid\">"._SENDAMSG."</a> ";
}
echo ")";
}
$row_url = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM ".$prefix."_users WHERE username='$r_name'"));
$url = filter($row_url['user_website'], "nohtml");
if ($url != "http://" AND !empty($url) AND stripos_clone($url, "http://")) { echo "<a href="$url\" target="new\">$url</a> "; }
echo "</font></td></tr><tr><td>";
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız