Posted in
CMS News
UMIL is a library for MOD authors that enables them to easily create database installation and update scripts for their MODs. It provides unified methods to access phpBB's API for adding modules, adding permissions, modifying the database, and more.
We require MODs containing UMIL that are newly submitted to the MODDB to contain this new version. In order to update the UMIL release included with your MOD just replace the old UMIL folder with the new one. An additional change may be required to your UMIF file, as a backwards incompatible change has been made. The changes are quite simple, and require only moments to check for and complete.
- Open your UMIF File
- Do a search for "define('IN_PHPBB', true);" If it is found, your MOD is unaffected by this, and no further action is required.
- If the IN_PHPBB constant is not defined, FIND
- Code: Select all
define('UMIL_AUTO', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
- Then, ADD AFTER
- Code: Select all
define('IN_PHPBB', true);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
- Save your UMIF file
MODs currently in the queue submitted prior to this release will be repacked and fixed as required to update to this version of UMIL. For a more detailed explanation, please refer to this post
How to get it
You can get UMIL and more information from the UMIL page.
What's new
The following was changed in this release:
- [Feature] Ability to specify an index length for MySQL4 (as supported by phpBB 3.0.8) #62343
- [Security Change] Removed support for including common.php when IN_PHPBB is not defined
Bugs
Please report any bugs you may encounter to the tracker.
phpBB Modifications Team
Read more: http://www.phpbb.com/community/viewtopic.php?f=14&t=2114652
Tags CMS News