1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8require_once('tiki-setup.php');
9
10//check if feature is on
11$access->check_feature('feature_mailin');
12$access->check_permission(['tiki_p_admin_mailin']);
13
14$structlib = TikiLib::lib('struct');
15$usermailinlib = TikiLib::lib('usermailin');
16
17// Route display
18$userStructs = $usermailinlib->list_all_user_mailin_struct(false);
19$smarty->assign('userStructs', $userStructs['data']);
20
21
22// disallow robots to index page:
23$smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW');
24$smarty->assign('mid', 'tiki-admin_mailin_routes.tpl');
25$smarty->display('tiki.tpl');
26