forked from Moc/mailbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe_url.php
More file actions
51 lines (43 loc) · 1.14 KB
/
Copy pathe_url.php
File metadata and controls
51 lines (43 loc) · 1.14 KB
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
47
48
49
50
51
<?php
/*
* Mailbox - an e107 plugin by Tijn Kuyper
*
* Copyright (C) 2016-2017 Tijn Kuyper (http://www.tijnkuyper.nl)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT')) { exit; }
class mailbox_url
{
function config()
{
$config = array();
$config['mailbox'] = array(
'regex' => '^mailbox/?$',
'sef' => 'mailbox',
'redirect' => '{e_PLUGIN}mailbox/mailbox.php',
);
$config['composeid'] = array(
'regex' => '^mailbox/compose/(.*)$',
'sef' => 'mailbox/compose/{id}',
'redirect' => '{e_PLUGIN}mailbox/compose.php?cid=$1',
);
$config['compose'] = array(
'regex' => '^mailbox/compose/?$',
'sef' => 'mailbox/compose',
'redirect' => '{e_PLUGIN}mailbox/compose.php',
);
$config['read'] = array(
'regex' => '^mailbox/read/(.*)$',
'sef' => 'mailbox/read/{id}',
'redirect' => '{e_PLUGIN}mailbox/read.php?id=$1',
);
$config['box'] = array(
'regex' => '^mailbox/(.*)$',
'sef' => 'mailbox/{boxname}',
'redirect' => '{e_PLUGIN}mailbox/mailbox.php?page=$1',
);
return $config;
}
}