![]() |
|< 1 2 3 4 >| | ![]() |
39 Einträge, 4 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package PBoard::UserHandler;
use warnings;
use strict;
# ------------------------------------------------------------
sub ShowUserProfile {
my ($cgi, $action) = @_;
my $userId = $cgi->param('id');
unless ($userId) {
&PrintMainOverviewPage($cgi, 'default');
return; # da kommt dann noch errorhandling
} # unless
# template holen und mit Parametern versehen
my $content = &PBoard::TemplateHandler::ReadTemplate
( $::Actions{$action}->{template}, # name
PAGE_NAME => &::PAGE_NAME,
LOGO_URL => &::LOGO_URL,
VERSION => &::VERSION,
CSS_STYLE => '/styles/pboard.css',
JAVASCRIPTCODE => '',
# ...
);
print $content->output();
} # ShowUserProfile
# ------------------------------------------------------------
sub EditMyUserProfile {
my ($cgi, $action) = @_;
# so wie oben
} # EditMyUserProfile
# ------------------------------------------------------------
sub ShowMyUserProfile {
my ($cgi, $action) = @_;
# so wie oben
} # ShowMyUserProfile
# ------------------------------------------------------------
# ============================================================
1; # modules have to return a true value
open STDOUT, "datei";
![]() |
|< 1 2 3 4 >| | ![]() |
39 Einträge, 4 Seiten |