Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created March 8, 2011 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hail2u/860026 to your computer and use it in GitHub Desktop.
Save hail2u/860026 to your computer and use it in GitHub Desktop.
Blosxom Plugin: prevent_view_by_year
# 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