</tr>
<?php } ?>

<tr>
      <td align=right>
      <font face="arial,helvetica" size=-1><span><b>
			<?php echo $lang['signature'];?>
			<img src="<?php echo $currtmp; ?>/images/icons/info.gif" width="16" height="16"
			 onmouseover="ddrivetip('You may use normal BBcode tags in signature.','#ffffff')";
			 onmouseout="hideddrivetip()">
			<br />
      </b></span></font>
      </td>
      <td align=left><table border=0 cellspacing=0 cellpadding=0><tr><td>
<textarea name="profile[signature]" maxlength="255" rows="3" cols="40"><?php echo my_previewreverse($profile['signature']);?></textarea>
</td><td valign = "top">
	   </td></tr></table>
      </td>

</tr>
<tr>
    <td align=left colspan="2">
        <font color="#FF0000">*</font><input type="checkbox" name="legal" value="yes">&nbsp;
      <font face="arial,helvetica" size=-1 ><span><b>
      <span><small><font color="black"><?php echo $lang['agreeement_detailschange']; ?></font></small></span><br/>
      </b></span></font></td>

       <td valign = "top">

<?php

if (INCLUDED !== true) {
    exit;
}
$content = $DB->selectRow("SELECT * FROM f_posts WHERE post_id=?d", $_REQUEST['postid']);
echo '[blockquote="' . $content['poster'] . ' | ' . date('d-m-Y, H:i:s', $content['posted']) . '"] ' . my_previewreverse($content['message']) . '[/blockquote]';
Exemple #3
0
 } elseif ($_GET['action'] == 'newtopic' && $this_forum['forum_id'] > 0) {
     if ($user['g_post_new_topics'] == 1 && $this_forum['closed'] != 1 || $user['g_forum_moderate'] == 1) {
         $content['text'] = '';
         $content['subject'] = '';
     } else {
         output_message('alert', $lang['youhavenorights']);
         $req_tpl = false;
     }
 } elseif ($_GET['action'] == 'newpost') {
     $content['text'] = '';
     if ($_GET['quote']) {
         $q_post = get_post_byid($_GET['quote']);
         $content['text'] = '[blockquote="' . $q_post['poster'] . ' | ' . date('d-m-Y, H:i:s', $q_post['posted']) . '"] ' . my_previewreverse($q_post['message']) . ' [/blockquote]';
     }
 } elseif ($_GET['action'] == 'editpost' && $this_post['post_id'] > 0) {
     $content['text'] = my_previewreverse($this_post['message']);
 } elseif ($_GET['action'] == 'movetopic' && $this_forum['forum_id'] > 0 && $this_topic['topic_id'] > 0) {
     if ($user['group'] >= 1) {
     }
 } elseif ($_GET['action'] == 'doeditpost' && $this_forum['forum_id'] > 0 && $this_topic['topic_id'] > 0 && $this_post['post_id'] > 0) {
     $message = my_preview($_POST['text']);
     $DB->query("UPDATE f_posts SET message=?, edited=?d, edited_by=? WHERE post_id=?d", $message, $post_time, $user['username'], $this_post['post_id']);
     redirect($config['site_href'] . "index.php?n=forum&sub=viewtopic&tid=" . $this_topic['topic_id'] . "&to=" . $this_post['post_id'], 1);
 } elseif ($_GET['action'] == 'donewpost' && $this_forum['forum_id'] > 0 && $this_topic['topic_id'] > 0) {
     $message = my_preview($_POST['text']);
     if ($_POST['text']) {
         $new_post_id = $DB->query("INSERT INTO f_posts (poster,poster_id,poster_ip,message,posted,topic_id) VALUES (?,?d,?,?,?d,?d)", $user['username'], $user['id'], $user['ip'], $message, $post_time, $this_topic['topic_id']);
         $DB->query("UPDATE account_extend SET forum_posts=forum_posts+1 WHERE account_id=?d", $user['id']);
         $DB->query("UPDATE f_topics SET last_post=?d, last_post_id=?d, last_poster=?, num_replies=num_replies+1 WHERE topic_id=?d", $post_time, $new_post_id, $user['username'], $this_topic['topic_id']);
         $DB->query("UPDATE f_forums SET num_posts=num_posts+1,last_topic_id=?d WHERE forum_id=?d", $this_topic['topic_id'], $this_forum['forum_id']);
     }