} $main_smarty->assign('navbar_where', $navwhere); // a hook $vars = ''; check_actions('user_post_views', $vars); // determine which user page to display global $db, $main_smarty, $view, $user, $rows, $page_size, $offset; $the_page = 'profile'; switch ($view) { case 'history': // Submitted do_history(); $main_smarty->assign('user_pagination', do_pages($rows, $page_size, $the_page, true)); break; case 'published': do_published(); $main_smarty->assign('user_pagination', do_pages($rows, $page_size, $the_page, true)); break; case 'shaken': do_shaken(); $main_smarty->assign('user_pagination', do_pages($rows, $page_size, $the_page, true)); break; case 'commented': do_commented(); $main_smarty->assign('user_pagination', do_pages($rows, $page_size, $the_page, true)); break; case 'voted': // Voted do_voted(); $main_smarty->assign('user_pagination', do_pages($rows, $page_size, $the_page, true)); break;
// http://www.affero.org/oagpl.html // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING". include 'config.php'; $index_size = 1000; header('Content-Type: text/xml'); echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; if (empty($_SERVER['QUERY_STRING'])) { do_master($index_size); } else { if (isset($_REQUEST['statics'])) { do_statics(); } elseif (isset($_REQUEST['last'])) { do_last_published(); } else { $page = (int) $_REQUEST['page']; do_published($page); } } function do_master($size) { global $globals, $db; echo '<sitemapindex xmlns="' . $globals['scheme'] . '//www.sitemaps.org/schemas/sitemap/0.9">' . "\n"; echo '<sitemap>' . "\n"; echo '<loc>' . $globals['scheme'] . '//' . get_server_name() . $globals['base_url'] . 'sitemap?statics</loc>' . "\n"; echo '</sitemap>' . "\n"; echo '<sitemap>' . "\n"; echo '<loc>' . $globals['scheme'] . '//' . get_server_name() . $globals['base_url'] . 'sitemap?last</loc>' . "\n"; echo '</sitemap>' . "\n"; echo '</sitemapindex>' . "\n"; } function do_statics()