Files
phpbb_board3-portal_tlw/root/install/umil.php
Marc Alexander ed1e01e7ec Updated install file;
Added the first language vars; 
Added UMIL;
2010-08-27 21:07:35 +00:00

66 lines
1.7 KiB
PHP

<?php
/**
* @package Portal
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
define('UMIL_AUTO', true);
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);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if (!file_exists($phpbb_root_path . 'umil/umil_auto.' . $phpEx))
{
trigger_error('Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/">phpBB.com/mods/umil</a>', E_USER_ERROR);
}
$mod_name = 'PORTAL_MOD';
$version_config_name = 'portal_board3_version';
$language_file = 'mods/info_acp_portal';
$versions = array(
// Version 1.1.0 => 1.2.x-dev
'1.1.1' => array(
'permission_add' => array(
array('a_portal'),
),
),
'1.1.4' => array(
'table_add' => array(
array(PORTAL_MODULES_TABLE, array(
'COLUMNS' => array(
'module_id' => array('UINT', NULL, 'auto_increment'),
'module_classname' => array('VCHAR:64', ''),
'module_column' => array('TINT:3', 0),
'module_order' => array('TINT:3', 0),
'module_name' => array('VCHAR', ''),
'module_image_src' => array('VCHAR', ''),
'module_group_ids' => array('VCHAR', ''),
),
'PRIMARY_KEY' => 'module_id',
)),
),
'config_add' => array(array(
array('board3_enable', true),
//array('test_mod_bool', true),
//array('test_mod_bool', true),
)),
),
);
// Include the UMIL Auto file and everything else will be handled automatically.
include($phpbb_root_path . 'umil/umil_auto.' . $phpEx);
?>