Siemka, obserwowane tematy z PHP-Fusion v6 to ten sam mod co w Extreme Fusion IV.
Pokazuje mi się błąd przy usuwaniu tematu, był błąd jeszcze z funkcją $do ale sobie poradziłem, teraz aby został z $id.
<?
require_once "../maincore.php";
require_once BASEDIR."subheader.php";
require_once BASEDIR."side_left.php";
include LOCALE.LOCALESET."forum/my_followed_threads.php";
if (!iMEMBER) { redirect("index.php"); }
opentable($locale['rpl200']);
if ($settings['thread_notify']==1) {
if ($do = "delete" && isNum($id)) {
$result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_user='".$userdata['user_id']."' AND thread_id='$id'");
echo "<center>".$locale['rpl201']."<br><br><a href='".FUSION_SELF."'>".$locale['rpl202']."</a></center>";
} else {
$row = dbrows(dbquery("SELECT * FROM ".$db_prefix."thread_notify WHERE notify_user='".$userdata['user_id']."'"));
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($row != '0') {
$result=dbquery("SELECT * FROM ".$db_prefix."thread_notify WHERE notify_user='".$userdata['user_id']."' LIMIT ".$rowstart.",15");
echo "
<table class='tbl-border' cellpadding='0' cellspacing='1' width='100%'>
<tr>
<td class='tbl2' width='1%'><b>".$locale['rpl110']."</b></td>
<td class='tbl2' width='44%'><b>".$locale['rpl204']."</b></td>
<td class='tbl2' width='45%'><b>".$locale['rpl205']."</b></td>
<td class='tbl2' width='10%'><b>".$locale['rpl206']."</b></td>
</tr>
";
$lp=0;
while($abo=dbarray($result)){
$forumthreads=dbquery("SELECT * FROM ".$db_prefix."threads WHERE thread_id='".$abo['thread_id']."' ");
$forumthreads=dbarray($forumthreads);
$forumname=dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_id='".$forumthreads['forum_id']."'");
$forumname=dbarray($forumname);
$lp++;
echo "
<tr>
<td class='tbl2'><center><b>".$lp."</b></center></td>
<td class='tbl1'><a href='viewforum.php?forum_id=".$forumname['forum_id']."'>".$forumname['forum_name']."</a></td>
<td class='tbl1'><a href='viewthread.php?forum_id=".$forumname['forum_id']."&thread_id=".$forumthreads['thread_id']."'>".$forumthreads['thread_subject']."</a></td>";
echo"
<td class='tbl1'><a onClick='return DeleteAbo();' href='".$PHP_SELF."?".$do='delete'."&id=".$abo['thread_id']."'>".$locale['rpl104']."</a></td>
</tr>
";
}
echo"</table>";
if ($row>1) echo " <div align='center' style='margin-top:5px;'>".makePageNav($rowstart,15,$row,3)."\n</div>\n";
} else {
echo "<br><center>".$locale['rpl207']."<br>".$locale['rpl208']."</center><br>";
}
}
//JScripts
echo "<script type='text/javascript' language='JavaScript'>
function DeleteAbo() {
return confirm(\"".$locale['rpl207']."\"');
}
</script>\n";
} else {
echo "<center>".$locale['rpl300']."</center>";
}
closetable();
require_once BASEDIR."side_right.php";
require_once BASEDIR."footer.php";
?>
Notice: Undefined variable: id in /home/nfsmodsh/domains/nfsmods.pl/public_html/forum/my_followed_threads.php on line 12
Edytowane przez Pieka dnia 15.05.2011 11:43:40
|