ralist

来自「Perl写的CA认证程序」· 代码 · 共 47 行

TXT
47
字号
## OpenCA - RA Server Command## (c) 1998-2001 by Massimiliano Pala and OpenCA Group####   File Name: raList##       Brief: List available RAs## Description: Filter Requests Lists on RA Basis##  Parameters: dataTypeif ( $cmd !~ /raList/i ) {        configError( "Wrong Command Usage ($cmd/raList)!" );        exit 1;}## Get Parametersmy $dataType = $query->param('dataType');## Get List of RAs Available (adding the ALL value)my @raList = @{ ($config->getParam('RA'))->{VALUES} };push ( @raList, "All" );## Get Configuration needed parameters ...my $doc	= getRequired('RAChoiceBaseSheet');my $cmd	= 'listReqs';## Get the parametersmy $choice	= $query->newInput( -regx=>'*', 				    -intype=>'popup_menu',				    -name=>'ra',				    -values=>[ @raList ]);## Get the sheet pageif ( not $page = $tools->getFile( $doc )) {;	configError( "Can not load $doc file." );	exit 1;}## Substitute variables$page = $query->subVar( $page, '@RA@', $choice );$page = $query->subVar( $page, '@DATATYPE@', $dataType );$page = $query->subVar( $page, '@CMD@', $cmd );print "$page";1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?