1) { $templateclass=$getuser3['templatepath']; } else { $templateclass="default"; } print ""; //chooses which template to display if($checking3[userID]==$getuser3[userID]||$getuser3[status]>$checking3[status]) { if(isset($_POST['edit'])) { if(!$_POST['post']) { print ""; print ""; print "
Edit
"; print "One of the required fields was not filled in, please go back and try again"; print "
"; } else { $title=$_POST['title']; $post=$_POST['post']; if($_POST['nosmiley']) { $nosmiley=1; } else { $nosmiley=0; } $title=htmlspecialchars($title); $post=strip_tags($post,'

[url][img][URL][IMG][FONT][font]

  • [list][o][size][s][mail]'); $update1="Update b_posts SET title='$title', post='$post',nosmilies='$nosmiley' where ID='$ID'"; mysql_query($update1); print ""; print ""; print "
    Edit
    "; if($checking3['threadparent']!='0') { print "Thanks for editing... Redirecting to topic "; } else { print "Thanks for editing... Redirecting to topic "; } print "
    "; } } else { print ""; print ""; print "
    Edit
    "; print "
    "; print "
    "; print "
    "; print "Name:$user
    "; print ""; print "Topic:
    "; print "

    "; print "Message:

    "; print "

    "; print '"; print " Disable Smilies

    "; print ""; print "

    "; print "
    Clickable Smilies
    "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print "
    "; print ""; print ""; print ""; print ""; print ""; print "
    "; } } else { print ""; print ""; print "
    Edit
    "; print "You do not have permission to edit this post"; print "
    "; } ?>