Dotclear

source: plugins/filesAlias/_prepend.php @ 2169

Revision 2169, 705 bytes checked in by Osku, 14 years ago (diff)

Plugin filesAlias - O.2: ~ enjoy :) ~

  • Add auto-generated URL
  • Add disposable URL option (one click then 404)
  • Revisited admin
  • Many fixes
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3#
4# This file is part of filesAlias, a plugin for Dotclear 2.
5#
6# Copyright (c) 2009-2010 Osku and contributors
7#
8# Licensed under the GPL version 2.0 license.
9# A copy of this license is available in LICENSE file or at
10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11#
12# -- END LICENSE BLOCK ------------------------------------
13if (!defined('DC_RC_PATH')) { return; }
14
15$__autoload['FilesAliases'] = dirname(__FILE__).'/inc/class.files.alias.php';
16
17$core->url->register('filesalias',$core->blog->settings->filesalias_prefix,'^'
18          .$GLOBALS['core']->blog->settings->filesalias_prefix.'/(.+)$',array('urlFilesAlias','alias'));
19
20?>
Note: See TracBrowser for help on using the repository browser.

Sites map