Changed install instructions;
Changed version check tag to board3_portal_v2_dev; Added more language variables; Added version check to ACP and limited it to only showing in the general settings area; Changed all config variables from portal_ to board3_; Added new install file; Fixed jumpbox bug that caused a useless error message; Added block images for team block and user menu;
This commit is contained in:
117
root/install/index.php
Normal file
117
root/install/index.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @author marc1706 (Marc Alexander) admin@m-a-styles.de
|
||||
* @version $Id$
|
||||
* @copyright (c) 2010 Board3
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
define('UMIL_AUTO', true);
|
||||
define('IN_INSTALL', true);
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
// The name of the mod to be displayed during installation.
|
||||
$mod_name = 'Board3 Portal';
|
||||
|
||||
global $user;
|
||||
|
||||
/*
|
||||
* The name of the config variable which will hold the currently installed version
|
||||
* UMIL will handle checking, setting, and updating the version itself.
|
||||
*/
|
||||
$version_config_name = 'board3_portal_version';
|
||||
|
||||
|
||||
// The language file which will be included when installing
|
||||
$language_file = 'mods/info_acp_portal';
|
||||
|
||||
|
||||
/*
|
||||
* Optionally we may specify our own logo image to show in the upper corner instead of the default logo.
|
||||
* $phpbb_root_path will get prepended to the path specified
|
||||
* Image height should be 50px to prevent cut-off or stretching.
|
||||
*/
|
||||
//$logo_img = 'styles/prosilver/imageset/site_logo.gif';
|
||||
|
||||
/*
|
||||
* The array of versions and actions within each.
|
||||
* You do not need to order it a specific way (it will be sorted automatically), however, you must enter every version, even if no actions are done for it.
|
||||
*
|
||||
* You must use correct version numbering. Unless you know exactly what you can use, only use X.X.X (replacing X with an integer).
|
||||
* The version numbering must otherwise be compatible with the version_compare function - http://php.net/manual/en/function.version-compare.php
|
||||
*/
|
||||
$versions = array(
|
||||
'2.0.0-dev1' => array(
|
||||
|
||||
'permission_add' => array(
|
||||
array('a_portal'),
|
||||
),
|
||||
|
||||
'permission_set' => array(
|
||||
array('ADMINISTRATORS', 'a_portal', 'group'),
|
||||
),
|
||||
|
||||
'table_add' => array(
|
||||
array(phpbb_portal_modules, array(
|
||||
'COLUMNS' => array(
|
||||
'module_id' => array('UINT:3', 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('board3_enable', '1', 0),
|
||||
array('board3_left_column', '1', 0),
|
||||
array('board3_right_column', '1', 0),
|
||||
array('board3_version_check', '1', 0),
|
||||
array('board3_forum_index', '1', 0),
|
||||
array('board3_left_column_width', '180', 0),
|
||||
array('board3_right_column_width', '180', 0),
|
||||
),
|
||||
|
||||
'module_add' => array(
|
||||
array('acp', 'ACP_CAT_DOT_MODS', 'ACP_PORTAL'),
|
||||
|
||||
array('acp', 'ACP_PORTAL', array(
|
||||
'module_basename' => 'portal',
|
||||
'module_langname' => 'ACP_PORTAL_MODULES',
|
||||
'module_mode' => 'modules',
|
||||
'module_auth' => 'acl_a_portal',
|
||||
),
|
||||
),
|
||||
|
||||
array('acp', 'ACP_PORTAL', array(
|
||||
|
||||
'module_basename' => 'portal',
|
||||
'module_langname' => 'ACP_PORTAL_GENERAL_INFO',
|
||||
'module_mode' => 'config',
|
||||
'module_auth' => 'acl_a_portal',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
);
|
||||
|
||||
// Include the UMIL Auto file, it handles the rest
|
||||
include($phpbb_root_path . 'umil/umil_auto.' . $phpEx);
|
||||
Reference in New Issue
Block a user