} $url = $_SERVER['PHP_SELF'] . '?'; checkLogin(); $project = new SI_Project(); if ($loggedin_user->hasRight('admin') && isset($_REQUEST['id'])) { $user_id = $_REQUEST['id']; $url .= 'id=' . $_REQUEST['id'] . '&'; } else { $user_id = $loggedin_user->id; } $user = new SI_User(); if ($user->get($user_id) === FALSE) { $error_msg .= "Error getting user information!\n"; debug_message($user->getLastError()); } $balance = $user->getBalance(); if ($balance === FALSE) { $error_msg .= "Error getting your outstanding balance!"; debug_message($loggedin_user->getLastError()); } $transactions = $user->getTransactions(NULL, $trans_per_page, $_REQUEST['page'] * $trans_per_page); if ($transactions === FALSE) { $error_msg .= "Error getting your transactions!"; debug_message($user->getLastError()); } $total_transactions = $user->getTransactionCount(); if ($total_transactions === FALSE) { $error_msg .= "Error getting transaction count!"; debug_message($user->getLastError()); } $checks = $user->getChecks(NULL, 5);