echo '</div>'; // Print "conversation" for a given note $answers = $db->object_iterator("SELECT" . Post::SQL . ", conversations WHERE conversation_type='post' and conversation_to = {$post_id} and post_id = conversation_from ORDER BY conversation_from asc LIMIT 100", 'Post'); if ($answers) { echo '<div style="padding-left: 40px; padding-top: 10px">'; echo '<ol class="comments-list">'; foreach ($answers as $answer) { echo '<li>'; $answer->print_summary(); echo '</li>'; $ids[] = $answer->id; } echo "</ol>"; echo '</div>' . "\n"; } } Haanga::Load('get_total_answers_by_ids.html', array('type' => 'post', 'ids' => implode(',', $ids))); // Update conversation time if ($view == 3 && $time_read > 0 && $user->id == $current_user->user_id) { Post::update_read_conversation($time_read); } } echo '</div>'; do_pages($rows, $page_size); } echo '</div>'; if ($rows > 15) { do_footer_menu(); } do_footer(); exit(0);
function do_error($mess = false, $error = false, $send_status = true) { global $globals; $globals['ads'] = false; if (!$mess) { $mess = _('algĂșn error nos ha petado'); } if ($error && $send_status) { header("HTTP/1.0 {$error} {$mess}"); header("Status: {$error} {$mess}"); } do_header(_('error')); echo '<STYLE TYPE="text/css" MEDIA=screen>' . "\n"; echo '<!--' . "\n"; echo '.errt { text-align:center; padding-top:20px; font-size:150%; color:#FF6400;}' . "\n"; echo '.errl { text-align:center; margin-top:20px; margin-bottom:20px; }' . "\n"; echo '-->' . "\n"; echo '</STYLE>' . "\n"; echo '<div class="errt">' . $mess . '<br />' . "\n"; if ($error) { echo '(' . _('error') . ' ' . $error . ')</div>' . "\n"; } do_footer_menu(); do_footer(); die; }
function do_error($mess = false, $error = false, $send_status = true) { global $globals; $globals['ads'] = false; if (!$mess) { $mess = _('algĂșn error nos ha petado'); } if ($error && $send_status) { header("HTTP/1.0 {$error} {$mess}"); header("Status: {$error} {$mess}"); } do_header(_('error')); echo '<STYLE TYPE="text/css" MEDIA=screen>' . "\n"; echo '<!--' . "\n"; echo '.errt { text-align:center; padding-top:50px; font-size:300%; color:#FF6400;}' . "\n"; echo '.errl { text-align:center; margin-top:50px; margin-bottom:100px; }' . "\n"; echo '-->' . "\n"; echo '</STYLE>' . "\n"; echo '<p class="errt">' . $mess . '<br />' . "\n"; if ($error) { echo '(' . _('error') . ' ' . $error . ')</p>' . "\n"; } echo '<div class="errl"><img src="' . $globals['base_url'] . 'img/mnm/lame_excuse_01.png" width="362" height="100" alt="ooops logo" /></div>' . "\n"; do_footer_menu(); do_footer(); die; }
$answer->read(); echo '<li>'; $answer->print_summary(); echo '</li>'; } echo "</ol>\n"; echo '</div>'."\n"; } } } echo '</div>'; do_pages($rows, $page_size); } echo '</div>'; if ($rows > 15) do_footer_menu(); do_footer(); function do_posts_tabs($tab_selected, $username) { global $globals, $current_user; $reload_text = _('recargar'); $active = ' class="tabmain-this"'; echo '<ul class="tabmain">' . "\n"; // All if ($tab_selected == 1) { echo '<li'.$active.'><a href="'.post_get_base_url().'" title="'.$reload_text.'"><em>'._('todos').'</em></a></li>' . "\n"; } else { echo '<li><a href="'.post_get_base_url().'">'._('todos').'</a></li>' . "\n";