Viewing file: index.php (1.84 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /** * * @package automod * @version $Id$ * @copyright (c) 2008 phpBB Group * @license http://opensource.org/licenses/gpl-2.0.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); }
include($phpbb_root_path . 'includes/functions_mods.'.$phpEx);
// The name of the mod to be displayed during installation. $mod_name = 'AUTOMOD';
/* * The name of the config variable which will hold the currently installed version * You do not need to set this yourself, UMIL will handle setting and updating the version itself. */ $version_config_name = 'automod_version';
/* * The language file which will be included when installing * Language entries that should exist in the language file for UMIL (replace $mod_name with the mod's name you set to $mod_name above) * $mod_name * 'INSTALL_' . $mod_name * 'INSTALL_' . $mod_name . '_CONFIRM' * 'UPDATE_' . $mod_name * 'UPDATE_' . $mod_name . '_CONFIRM' * 'UNINSTALL_' . $mod_name * 'UNINSTALL_' . $mod_name . '_CONFIRM' */ $language_file = 'acp/mods';
// Logo Image $logo_image = 'install/automod_logo.png';
// Get version info include($phpbb_root_path . 'install/install_versions.'.$phpEx);
// Include the UMIF Auto file and everything else will be handled automatically. include($phpbb_root_path . 'umil/umil_auto.' . $phpEx);
// clear cache cache_purge('', 0); cache_purge('auth', 0);
?>
|