#!/usr/bin/perl -w
# -*- perl -*-
use P4CGI ;
use strict ;
#
#################################################################
# CONFIGURATION INFORMATION
# All config info should be in P4CGI.pm
#
#################################################################
#
# Search changes for pattern
#
#################################################################
my $FSPC = &P4CGI::cgi()->param("FSPC") ;
$FSPC = "//..." unless defined $FSPC ;
my $LABEL = &P4CGI::cgi()->param("LABEL") ;
my @labels ;
&P4CGI::p4call(\@labels,"labels") ;
map { s/^Label (\S+) .*/$1/ ; } @labels ;
unshift @labels,"" ;
my %labelLabels ;
foreach (@labels) {
$labelLabels{$_} = $_ ;
}
$labelLabels{""} = " - No label specified - " ;
print
&P4CGI::start_page("",""),
"<br>\n",
&P4CGI::start_framedTable("Find file"),
&P4CGI::start_table(),
&P4CGI::cgi()->startform("-action","fileSearch.cgi",
"-method","GET") ;
print &P4CGI::table_row({-class => "\"Prompt\"",
-text => "File spec:" },
&P4CGI::cgi()->textfield(-name => "FSPC",
-default => $FSPC,
-size => 40,
-maxlength => 256,
-title => "File spec in p4 depot notation")) ;
print &P4CGI::table_row({-class => "\"Prompt\"",
-text => "Label:" },
&P4CGI::cgi()->popup_menu(-name => "LABEL",
-values => \@labels,
-labels => \%labelLabels,
-title => "Search only in label")) ;
print &P4CGI::table_row("",
&P4CGI::cgi()->submit(-name => "0",
-value => "GO!",
-title => "Go")) ;
print
&P4CGI::end_table(),
&P4CGI::end_framedTable(),
&P4CGI::end_page() ;
#
# That's all folks
#
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #4 | 4306 | Fredric Fredricson |
P4DB: Hardened P4DB against malicious parameters (cross site scripting), performed some cleanup and increased version to 3.1.1. |
||
| #3 | 4152 | Fredric Fredricson | P4DB: Some more work on tha way to version 3.1.... | ||
| #2 | 4046 | Fredric Fredricson |
P4DB: First submit for 3.1. * Removed frame-stuff and some related files * Added new page header * Started update of documentation * Changed a lot of CGI:s to conform to new "look and feel" Still a lot to do: - clean up stuff (especially the javascript) - Fix the file list to use new annotate-command - Clean up and document css-file - and more....... |
||
| #1 | 2875 | Fredric Fredricson | P4DB 3.0 first beta... |