equal
deleted
inserted
replaced
79 { |
79 { |
80 $messages = array(); |
80 $messages = array(); |
81 while ( $row = $db->fetchrow() ) |
81 while ( $row = $db->fetchrow() ) |
82 { |
82 { |
83 $row['rank_info'] = $session->get_user_rank($row['user_id']); |
83 $row['rank_info'] = $session->get_user_rank($row['user_id']); |
|
84 $row['rank_info']['rank_title'] = $lang->get($row['rank_info']['rank_title']); |
84 $row['message_html'] = RenderMan::render($row['message']); |
85 $row['message_html'] = RenderMan::render($row['message']); |
85 $row['human_time'] = enano_date('n/j, g:ia', $row['message_time']); |
86 $row['human_time'] = enano_date('n/j, g:ia', $row['message_time']); |
86 $messages[] = $row; |
87 $messages[] = $row; |
87 } |
88 } |
88 $response = array( |
89 $response = array( |
116 return print enano_json_encode(array( |
117 return print enano_json_encode(array( |
117 'mode' => 'error', |
118 'mode' => 'error', |
118 'error' => $lang->get('ajim_err_no_post') |
119 'error' => $lang->get('ajim_err_no_post') |
119 )); |
120 )); |
120 } |
121 } |
|
122 |
|
123 $content = RenderMan::preprocess_text($content, true, false); |
121 |
124 |
122 $now = time(); |
125 $now = time(); |
123 $content_db = $db->escape($content); |
126 $content_db = $db->escape($content); |
124 $name_db = $db->escape($name); |
127 $name_db = $db->escape($name); |
125 |
128 |