Example #1
0
 } else {
     $message = '';
 }
 if ($formulaire != '') {
     include "modules/comments/comments_extender.php";
 } else {
     if ($allow_bbcode) {
         $xJava = 'name="message" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="storeForm(this)"';
     }
     echo '<div class="col-sm-2">
       <label class="control-label">';
     echo '<b>' . translate("Message: ") . '</b><br />';
     echo 'HTML : ';
     if ($allow_html == 1) {
         echo translate("On") . '<br />';
         echo HTML_Add(false);
     } else {
         echo translate("Off") . "<br />";
     }
     if (isset($citation) && !isset($submitP)) {
         $sql = "SELECT p.post_text, p.post_time, u.uname FROM " . $NPDS_Prefix . "posts p, " . $NPDS_Prefix . "users u WHERE post_id='{$post}' AND p.poster_id = u.uid";
         if ($r = sql_query($sql)) {
             $m = sql_fetch_assoc($r);
             $text = $m['post_text'];
             $text = smile($text);
             $text = str_replace("<br />", "\n", $text);
             $text = stripslashes($text);
             if ($m['post_time'] != "" && $m['uname'] != "") {
                 $reply = '<div class="quote">' . translate("Quote") . ' : <b>' . $m['uname'] . '</b>&nbsp;' . $text . '&nbsp;</div>';
             } else {
                 $reply = $text . "\n";
Example #2
0
   </div>';
 }
 echo '
   <div class="form-group row">
      <div class="col-sm-3">
         <label class="form-control-label" for="message">' . translate("Message: ") . '</label>
      </div>';
 if ($allow_bbcode) {
     $xJava = ' onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="storeForm(this)"';
 }
 echo '
      <div class="col-sm-9">
         <div class="card">
            <div class="card-header">';
 if ($allow_html == 1) {
     echo '<span class="text-success pull-right" title="HTML ' . translate("On") . '" data-toggle="tooltip"><i class="fa fa-code fa-lg"></i></span>' . HTML_Add();
 } else {
     echo '<span class="text-danger pull-right" title="HTML ' . translate("Off") . '" data-toggle="tooltip"><i class="fa fa-code fa-lg"></i></span>';
 }
 echo '
            </div>
            <div class="card-block">
               <textarea class="form-control textbox" ' . $xJava . ' name="message" rows="10" cols="60">' . $message . '</textarea>
            </div>
            <div class="card-footer text-muted">';
 if ($allow_bbcode) {
     putitems();
 }
 echo '
            </div>
         </div>
Example #3
0
            settype($image_subject, 'string');
            echo emotion_add($image_subject);
            echo '			   
               </div>
			   </div>
            </div>
		';
        }
        echo ' 
            <div class="form-group">
			            <div class="row">			
               <label class="control-label col-sm-2 col-md-2" for="aid">';
        echo "HTML : ";
        if ($allow_html == 1) {
            echo translate("On") . "<br /></span>";
            echo HTML_Add();
        } else {
            echo translate("Off") . "<br /></span>";
        }
        if ($citation && !$submitP) {
            $sql = "SELECT p.post_text, p.post_time, u.uname FROM " . $NPDS_Prefix . "posts p, " . $NPDS_Prefix . "users u WHERE post_id = '{$post}' AND p.poster_id = u.uid";
            if ($r = sql_query($sql)) {
                $m = sql_fetch_assoc($r);
                $text = $m['post_text'];
                if ($allow_bbcode and $forum_type != 6 and $forum_type != 5) {
                    $text = smile($text);
                    $text = str_replace("<br />", "\n", $text);
                } else {
                    $text = htmlspecialchars($text, ENT_COMPAT | ENT_HTML401, cur_charset);
                }
                $text = stripslashes($text);