1<?php
2/*
3 * e107 Bootstrap CMS
4 *
5 * Copyright (C) 2008-2015 e107 Inc (e107.org)
6 * Released under the terms and conditions of the
7 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
8 *
9 * IMPORTANT: Make sure the redirect script uses the following code to load class2.php:
10 *
11 * 	if (!defined('e107_INIT'))
12 * 	{
13 * 		require_once("../../class2.php");
14 * 	}
15 *
16 */
17
18if (!defined('e107_INIT')) { exit; }
19
20// v2.x Standard  - Simple mod-rewrite module.
21
22class gallery_url // plugin-folder + '_url'
23{
24	function config()
25	{
26		$config = array();
27
28		$config['index'] = array(
29		//	'regex'			=> '^gallery/?$', 						// matched against url, and if true, redirected to 'redirect' below.
30			'alias'         => 'gallery',
31			'sef'			=> '{alias}', 							// used by e107::url(); to create a url from the db table.
32			'redirect'		=> '{e_PLUGIN}gallery/gallery.php', 		// file-path of what to load when the regex returns true.
33			'legacy'        => '{e_PLUGIN}gallery/gallery.php',
34		);
35
36
37		return $config;
38	}
39
40
41
42}