#!/usr/bin/perl -w # -*- perl -*- use P4CGI ; use strict ; # ################################################################# # CONFIGURATION INFORMATION # All config info should be in P4CGI.pm # ################################################################# # # P4 list all users # List p4 users # ################################################################# # Get users my @users ; &P4CGI::p4call(\@users, "users" ); my $emailall ; my $usertable ; $usertable = &P4CGI::start_table("cellpadding=1") ; $usertable .= &P4CGI::table_row("-type","th", "-align","left", "User","Name","e-mail address","Last access"); my $userinfo ; foreach $userinfo (sort { uc($a) cmp uc($b) } @users) { $userinfo =~ /(\w+)\s+\<(.*)\>\s+\((.*)\) accessed (\S+)/ and do { my ($user,$email,$name,$lastaccess) = ($1,$2,$3,$4) ; $user = &P4CGI::ahref(-url => &P4CGI::LU_URL(), "USER=$user", $user) ; $email =~ /\w+\@\w+/ and do { if(defined $emailall) { $emailall .= ";$email" ; } else { $emailall .= "mailto:$email" ; } ; $email = &P4CGI::ahref(-url => "mailto:$email", $email) ; } ; $usertable .= &P4CGI::table_row($user, $name, $email, $lastaccess) ; } } $usertable .= &P4CGI::end_table() ; print "", &P4CGI::start_page("P4 users", &P4CGI::ul_list("<b>user</b> -- see more info", "<b>e-mail address</b> -- e-mail user", &P4CGI::ahref(-url => $emailall, "<b>Mail all users</b>"))), "<B>", scalar(@users), " users:<br></B>", $usertable, &P4CGI::end_page() ; # # That's it folks #
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 387 | heather_van_steenburgh |
By default, Microsoft Outlook expects email addresses to be separated by semi-colons. (I've heard this is configurable but haven't found the option that allows comma separation of addresses yet.) |
||
#1 | 381 | heather_van_steenburgh |
The version of P4DB in the public depot isn't 0.99f. Branch for 0.99f |
||
//guest/heather_van_steenburgh/perforce/utils/p4db/lau.cgi | |||||
#1 | 380 | heather_van_steenburgh | P4DB baseline | ||
//guest/perforce_software/utils/p4db/lau.cgi | |||||
#1 | 11 | Perforce maintenance | Add Fredric Fredricson's depot browser, P4DB. |