} else { $backurl = $_SESSION['eshow_back']; } if (strpos($backurl,"group_detail.php")) $bname = "Group"; elseif (strpos($backurl,"profile.php")) $bname = "Profile"; else $bname = "Back"; $topbar['leftnav'][0]['name'] = $bname; $topbar['leftnav'][0]['url'] = $_SESSION['back']; $topbar['leftnav'][0]['url'] = $backurl;*/ $back = get_back_page(); $topbar['leftnav'][0]['name'] = $back['name']; $topbar['leftnav'][0]['url'] = $back['url']; print_topbar($topbar); print_body_start(); if ($showexpenses && array_key_exists(5, $permissions)) { if ($message) { print_pagetitle($message); } //$expenselist = get_groupexpenses($groupdetails['group_id'],$uid, "neg"); $expenselist = get_groupexpenses($groupdetails['group_id'], $uid, $xtype, $user->data['user_id']); if (!empty($expenselist)) { print_expenselist_html($expenselist, $user); } else { print_pageitem_text_html("Sorry", "No expenses were found"); } } //if ($ask_add && array_key_exists(0, $permissions) ) { // $a = "Add"; // $b = "more members";
function fatal_error($message) { // print header, message, link to home and footer if (!headers_sent()) { print_header(); print_body_start(); } $link = " <a href=\"http://" . $_SERVER['HTTP_HOST'] . DIR . "index.php\">Home</a>"; print_pageitem_text_html("Something went wrong:", array($message, $link)); print_footer(); exit; }