'.$astring.''; } return $astring; } // print a star on the screen and printout // this is used to denote field values which will be taken up in the CAcert database function Star() { return ' '; } // insert tooltip html ccs code function Popup( $akey = "nul", $dir = NULL ) { static $done = false; if( ! $done ) { InitHelp(); $done = true; } $msg = ""; global $tooltip; if( ! array_key_exists( $akey, $tooltip) ) { return "Bug: this \"$akey\" does not exists as tooltip yet."; } $rts[0] = ' ? '; $rts[] = ''; if( array_key_exists('title', $tooltip[$akey]) ) $rts[] = ''; for( $i = 0; $i < count($tooltip[$akey]['content']); $i++) $rts[] = ''; $rts[] = '
'.$tooltip[$akey]['title'].'
'. $tooltip[$akey]['content'][$i] . '
 '; if ( $akey == 'help' || $akey == 'star' ) $rts[] = $tooltip[$akey]['content'][0] ; $rts[] = '
'."\n"; return implode( $rts, "\n"); } // insert url parameter info function PrintValue( $anarray = NULL, $anindex = NULL, $str = TRUE ) { if( $anarray == NULL || ! array_key_exists( $anindex, $anarray ) || $anarray[$anindex] == "" ) return ""; if( $str ) return " value=\"".$anarray[$anindex].'"'; else return $anarray[$anindex]; } // generate html code for document header in standard layout style function DocumentHdr ($title1, $title2, $aurl ) { echo '
\n"; echo '\n
', Popup('help'), "
', Popup('star'), "
\n"; echo "

\n"; echo '

CAcert logo
', "\n"; echo '
', "\n"; echo '', PolicyRef($title1, $aurl); echo '
', "\n"; echo '', PolicyRef($title2, $aurl); echo '
', "\n"; echo '
'; echo POBOX ; echo ' - '.WEB.'
', "\n", "
\n"; echo '', "\n"; echo "\n\n"; $SHA_sum = array( 'class 1' => CLASS1_SHA1 , 'class 3' => CLASS3_SHA1 , ); echo ' \n"; $cnt = 0; while( list($key, $value) = each($SHA_sum) ) { echo ' '; echo '', $value, ''; $cnt++; } echo "\n\n
', PolicyRef(_("CAcert Root Certificate"), ROOTKEYS), " ', str_replace(" ", ' ', $key), ': '; echo '>', str_replace(" ", ' ', $key), ': '; //echo str_replace(" ", ' ', $value), '
\n

\n"; return true; } ?>