if ($filename == 'page.php' AND $_REQUEST['do'] == 'edit'){ $userinfo['activity'] = 'Editing Page';} elseif ($filename == 'page.php'){ $userinfo['activity'] = 'Viewing Page';}