diff --git a/app/registrations/registrations.php b/app/registrations/registrations.php index ece59bf31e..97527b380d 100644 --- a/app/registrations/registrations.php +++ b/app/registrations/registrations.php @@ -191,13 +191,28 @@ foreach ($registrations as $row) { $matches = preg_grep('/'.$search.'/i', $row); if ($matches != false) { + + //prepare the user variable $user = explode('@', $row['user']); if ($user[1] == $_SESSION['domains'][$_SESSION['domain_uuid']]['domain_name']) { - $user = ""; + $user = ""; } else { $user = escape($row['user']); } + + //reformat the status + $patterns = array(); + $patterns[] = '/(\d{4})-(\d{2})-(\d{2})/'; + $patterns[] = '/(\d{2}):(\d{2}):(\d{2})/'; + $patterns[] = '/unknown/'; + $patterns[] = '/exp\(/'; + $patterns[] = '/\(/'; + $patterns[] = '/\)/'; + $patterns[] = '/\s+/'; + $status = preg_replace($patterns, ' ', $row['status']); + + //show the content echo "