Mercurial > repos > phpBB-MODs > Multi_Race_Rank_Themes
annotate root/install/install_MultiRaceRankThemesPermissions.php @ 20:51084c02e981
* Fix bad logic (<= instead of <)
* Fix setup during install (don't define a path if you don't have a language file - it may not be documented, but the path loads a language file, which fails if it doesn't exist)
* Update to latest version of XSL/XSD files
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 11 Feb 2010 20:44:18 +0000 |
parents | a523f78c467a |
children |
rev | line source |
---|---|
10 | 1 <?php |
2 | |
3 /** | |
4 * | |
5 * install script to set up permission options in the db for the Multi-Race Rank Themes mod | |
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
7 * | |
8 */ | |
9 | |
10 /** | |
11 * @ignore | |
12 */ | |
13 | |
14 // initialize the page | |
15 define('IN_PHPBB', true); | |
16 define('IN_INSTALL', true); | |
17 $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; | |
18 $phpEx = substr(strrchr(__FILE__, '.'), 1); | |
19 include($phpbb_root_path . 'common.' . $phpEx); | |
20 | |
21 | |
22 // Start session management | |
23 $user->session_begin(); | |
24 $auth->acl($user->data); | |
20
51084c02e981
* Fix bad logic (<= instead of <)
IBBoard <dev@ibboard.co.uk>
parents:
10
diff
changeset
|
25 $user->setup(); |
10 | 26 |
27 | |
28 // Setup $auth_admin class so we can add tabulated survey permission options | |
29 include($phpbb_root_path . 'includes/acp/auth.' . $phpEx); | |
30 $auth_admin = new auth_admin(); | |
31 | |
32 // Add foo permissions as local permissions | |
33 // (you could instead make them global permissions by making the obvious changes below) | |
34 $auth_admin->acl_add_option(array( | |
35 'global' => array('u_change_rank_theme') | |
36 )); | |
37 | |
38 | |
39 $message = $user->lang['MULTI_RACE_ADDED_PERMISSIONS'] . '<br /><br />'; | |
40 $message .= $user->lang['REMOVE_INSTALL']; | |
41 trigger_error($message); | |
42 | |
43 ?> |