function custom_page_display() { if (isset($_GET['p'])) { if (!strcmp($_GET['p'], "about")) { page_display_about(); return TRUE; } else { if (!strcmp($_GET['p'], "mytasks")) { task_display_user_tasks($_SESSION['user_id']); return TRUE; } else { if (!strcmp($_GET['p'], "task")) { if (isset($_GET['s'])) { if (!strcmp($_GET['s'], "add")) { task_display_add(); return TRUE; } else { if (!strcmp($_GET['s'], "edit")) { task_display_edit_single(); return TRUE; } } } } else { if (!strcmp($_GET['p'], "category")) { if (isset($_GET['s'])) { if (!strcmp($_GET['s'], "edit")) { category_display_edit(); return TRUE; } } } else { if (!strcmp($_GET['p'], "stuff")) { if (isset($_GET['s'])) { if (!strcmp($_GET['s'], "users")) { echo "<h1>" . _("Active users") . "</h1>"; user_display_active_users(FALSE); return TRUE; } } } } } } } } return FALSE; }
function custom_page_display() { if (isset($_GET['p'])) { if (!strcmp($_GET['p'], "about")) { page_display_about(); return TRUE; } else { if (!strcmp($_GET['p'], "stuff")) { if (isset($_GET['s'])) { if (!strcmp($_GET['s'], "users")) { echo "<h1>" . _("Active users") . "</h1>"; user_display_active_users(FALSE); return TRUE; } } } } } return FALSE; }