| 1 |
#?SuikaWikiConfig/2.0 |
| 2 |
|
| 3 |
Plugin: |
| 4 |
@Name: RandomJump |
| 5 |
@Description: |
| 6 |
This plugin module provides "random jump" functions |
| 7 |
to select wiki pages randomly. |
| 8 |
@License: %%GPL%% |
| 9 |
@Author[list]: |
| 10 |
Wakaba <[email protected]> |
| 11 |
@Date.RCS: $Date:$ |
| 12 |
|
| 13 |
ViewDefinition: |
| 14 |
@Mode: RandomJump |
| 15 |
@Condition: |
| 16 |
@@output: http-cgi |
| 17 |
@Description:Redirection to a wiki page selected randomly |
| 18 |
@method: |
| 19 |
@@@: |
| 20 |
$self->{view}->init_db; |
| 21 |
my @list = $self->{view}->{wiki}->{db}->keys ('content'); |
| 22 |
&main::_http_see_other (page => $list[rand @list]); |
| 23 |
@@Name: main |