Mercurial > repos > phpBB-MODs > Multi_Race_Rank_Themes
view 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 |
line wrap: on
line source
<?php /** * * install script to set up permission options in the db for the Multi-Race Rank Themes mod * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ // initialize the page define('IN_PHPBB', true); define('IN_INSTALL', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); // Setup $auth_admin class so we can add tabulated survey permission options include($phpbb_root_path . 'includes/acp/auth.' . $phpEx); $auth_admin = new auth_admin(); // Add foo permissions as local permissions // (you could instead make them global permissions by making the obvious changes below) $auth_admin->acl_add_option(array( 'global' => array('u_change_rank_theme') )); $message = $user->lang['MULTI_RACE_ADDED_PERMISSIONS'] . '<br /><br />'; $message .= $user->lang['REMOVE_INSTALL']; trigger_error($message); ?>