[UMIL] 1.0.4 Backwards Incompatibility Warning

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
Sam
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson
Contact:

[UMIL] 1.0.4 Backwards Incompatibility Warning

Post by Sam »

There was a change in UMIL that will affect backwards compatibility for 1.0.4. Prior to this version, you did not need to define IN_PHPBB in the UMIF file, however this security constant needs to be defined by the original script being executed - the UMIF file.

We found this affects only a small number of MODs, and the fix for this is a matter of simply copy and pasting the following code in the UMIF file. To check if your MOD is affected, open up your UMIF file (the script the user will visit to install the MOD), and search for "define('IN_PHPBB', true);" If you have this line, your MOD is unaffected. If the MOD does not have that line, we have the simple fix below.

FIND

Code: Select all

define('UMIL_AUTO', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1); 
ADD AFTER

Code: Select all

define('IN_PHPBB', true);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup(); 
The UMIF Creation Tool has been updated and any files coming out of it after December 6, 2010 shouldn't need any changing.

As a note, MODs using UMIL submitted to the queue prior to time of this posting will be repacked with this fix should it need it, however any MOD using UMIL submitted after this post will be denied if it does not include the code above in the UMIF file.

Thank you for understanding,
phpBB Modifications Team
Last edited by tumba25 on Fri May 04, 2012 4:23 pm, edited 1 time in total.
Reason: Time to unannounce this.
Locked

Return to “[3.0.x] MOD Writers Discussion”