|< 1 2 3 4 5 >| | 45 Einträge, 5 Seiten |
1
2
3
4
chmod 755 env.cgi
chmod 755 env.pl
perl -i -pe "s/\r//g" env.cgi
perl -i -pe "s/\r//g" env.pl
Quotevorschlag: einfach mal eine analyse des aktuellen datenmodelles machen:
was passt an der tabellenaufteilung gut und was nicht?
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
Tabelle forum
forum_id
sort_order
forum_title
forum_password
forum_desc
forum_topics
forum_posts
forum_lastthreadid
forum_lastpost
forum_lastposterid
forum_lastposter
allow_bbcode
allow_images
allow_html
allow_smilies
allow_icons
allow_polls
allow_attach
moderate
forum_closed
is_forum #Forum oder Kategorie
parent_id
parent_list
child_list
1
2
3
threads_per_page #wieviele Themen pro Seite
posts_per_page #wieviele Beiträge pro Seite
post_order # Beiträge aufsteigend oder absteigend anzeigen lassen
Quoteesskar
die statische Seiten generierung könnte auch ein toller anreiz sein, und dieses mod_rewrite könnte man doch über .htaccess simulieren, oder hab ich da was falsch verstanden?
[E|B,24.08.2003, 16:32]Wie wäre es denn mit einer Boardstatistik? (Counter, Traffic,...)
[E|B,24.08.2003, 17:43]Mit Counter meine ich die Boardzugriffszahl. Wie viele Zugriffe heute, gestern und insgesamt. Die Trafficzahlen könnte man doch veröffentlichen. Wär doch mal was anders. Hab noch nie eine Seite gesehen, auf der der Traffic steht. ;o)
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
#! /usr/bin/perl use warnings; use strict; my %Actions = ( boardconf => { subs => [ \&handler_boardconf, ], }, otherconf => { subs => [ \&handler_otherconf, ], }, ); sub handler_boardconf { my ($r) = @_; my $action = lc($r->param('action')); handler_handler($r, $action, \%BoardConf::Actions, 'start'); } sub handler_otherconf { my ($r) = @_; my $action = lc($r->param('other')); handler_handler($r, $action, \%OtherConf::Actions, 'begin'); } sub handler_handler { my ($r, $action, $ref, $def) = @_; unless(exists $ref->{$action}->{subs}) { $action = $def; } foreach my $sub (@{$ref->{$action}->{subs}}) { unless ($sub->($cgi)) { # error in sub last; # errorhandling } else { # ok } } } sub handler { my $r = Apache::Request->new(shift); $r->send_http_header('text/html'); my $section = lc($r->param('section')); handler_handler($r, $section, \%Actions, 'boardconf'); }
QuoteThe Apache::Registry handler is much faster than Apache::PerlRun. However, Apache::PerlRun is much faster than CGI as the fork is still avoided and scripts can use modules which have been pre-loaded at server startup time. This module is meant for "Dirty" CGI Perl scripts which relied on the single request lifetime of CGI and cannot run under Apache::Registry without cleanup.
|< 1 2 3 4 5 >| | 45 Einträge, 5 Seiten |