-
Notifications
You must be signed in to change notification settings - Fork 0
/
e_url.php
46 lines (37 loc) · 877 Bytes
/
e_url.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @file
* Simple mod-rewrite module.
*/
if(!defined('e107_INIT'))
{
exit;
}
/**
* Class batch_url.
*/
class batch_url
{
function config()
{
$config = array();
// With query parameters.
$config['batch?'] = array(
'alias' => 'batch',
// Matched against url, and if true, redirected to 'redirect' below.
'regex' => '^{alias}/?\?(.*)$',
// File-path of what to load when the regex returns true.
'redirect' => '{e_PLUGIN}batch/batch.php?$1',
);
$config['batch'] = array(
'alias' => 'batch',
// Matched against url, and if true, redirected to 'redirect' below.
'regex' => '^{alias}$',
// Used by e107::url(); to create a url from the db table.
'sef' => '{alias}',
// File-path of what to load when the regex returns true.
'redirect' => '{e_PLUGIN}batch/batch.php',
);
return $config;
}
}