Files
IPB/admin/upgrade/index.php
T
2025-12-19 05:42:01 -08:00

31 lines
791 B
PHP

<?php
/**
* @brief Upgrader bootstrap
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Community Suite
* @since 20 May 2014
* @version SVN_VERSION_NUMBER
*/
define('READ_WRITE_SEPARATION', FALSE);
require_once '../../init.php';
if( \IPS\IN_DEV )
{
die( "You must disable developer mode (IN_DEV) in order to run the upgrader" );
}
if( \IPS\NO_WRITES )
{
die( "You must disable no-writes mode (NO_WRITES) in order to run the upgrader" );
}
if( \IPS\QUERY_LOG )
{
die( "You must disable the query log (QUERY_LOG) in order to run the upgrader" );
}
\IPS\Dispatcher\Setup::i()->setLocation('upgrade')->run();