IPB UPGRADE MODULE:: IPB 2.0.2 -> IPB 2.0.3
| > Script written by Matt Mecham
| > Date started: 23rd April 2004
| > "So what, pop is dead - it's no great loss.
So many facelifts, it's face flew off"
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_IPB' ) )
{
print "
Incorrect access
You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class version_upgrade
{
var $install;
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade( & $install )
{
$this->install = & $install;
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//-----------------------------------------
// Update this parachat component
//-----------------------------------------
if ( $this->install->ipsclass->vars['chat04_account_no'] )
{
require_once( ROOT_PATH . 'sources/api/api_core.php' );
require_once( ROOT_PATH . 'sources/api/api_components.php' );
$api = new api_components();
$api->ipsclass =& $this->install->ipsclass;
$fields = array( 'com_enabled' => 1,
'com_menu_data' => array( 0 => array( 'menu_text' => 'Chat Settings',
'menu_url' => 'code=chatsettings',
'menu_permbit' => 'edit' ) ) );
$api->acp_component_update( 'chatpara', $fields );
}
if( $this->install->ipsclass->vars['chat04_account_no'] )
{
$this->install->message = "Parachat component updated";
}
return true;
}
}
?>