function parse_message($text, $hide_smilies) { // Convert applicable characters to HTML entities $text = htmlspecialchars($text); $text = do_clickable($text); //buat link $text = do_smilies($text); //alwais show smilies // Deal with newlines, tabs and multiple spaces $pattern = array("\n", "\t", ' ', ' '); $replace = array('<br />', ' ', ' ', ' '); $text = str_replace($pattern, $replace, $text); // Add paragraph tag around post, but make sure there are no empty paragraphs $text = str_replace('<p></p>', '', '<p>' . $text . '</p>'); $text = content_parser($text); return $text; }
$query = "\r\n\t\tSELECT note_pangkas, category_id, note_id, note_title, note_description, note_date, user_id, note_images\r\n\t\tFROM note \r\n\t\tORDER BY note_date desc, note_id desc\r\n\t\t"; } require_once "library/paging_script.php"; //die($query); $result = fn_query($conn_id, $query); while ($rows = fn_fetch_array($result)) { $no++; extract($rows, EXTR_OVERWRITE); //$judul =$note_title."<BR>(".$note_date.')'; if ($note_images) { $note_images = "{$note_path}/t-{$note_images}"; } else { $note_images = "library/pixel.gif"; } $note_date = fn_datetimeformat('D, M d Y H:i:s', $note_date); //if($note_pangkas==1) $note_text = proc_pangkas($note_text); if (!$note) { $note = $note_id; } $note_text = content_parser($note_text); $note_url = "./?note={$note_id}&coded={$coded}"; $web->push($template_name, "blok"); } if (empty($active_page_title)) { $active_page_title = "» {$page_title} "; } } $web->parse($template_name); $web_content = $web->return_template($template_name); disconnect($conn_id); require_once "all_pages.php";