Created
March 8, 2011 08:27
-
-
Save hail2u/860026 to your computer and use it in GitHub Desktop.
Blosxom Plugin: prevent_view_by_year
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Blosxom Plugin: prevent_view_by_year | |
# Author(s): Kyo Nagashima <kyo@hail2u.net> | |
# Version: 2011-02-15 | |
# Blosxom Home/Docs/Licensing: http://www.blosxom.com/ | |
package prevent_view_by_year; | |
use strict; | |
# --- Configurable variables ----------- | |
# --- Plug-in package variables -------- | |
# -------------------------------------- | |
sub start { | |
if ($blosxom::path_info_yr && !$blosxom::path_info_mo) { | |
return 1; | |
} | |
return 0; | |
} | |
sub skip { | |
$blosxom::header->{-status} = '403 Forbidden'; | |
$blosxom::output = '403 Forbidden'; | |
return 1; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment