Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -23,23 +23,23 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>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..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -49,33 +49,33 @@ class version_upgrade
|
||||
//-----------------------------------------
|
||||
// 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» îáíîâëåí";
|
||||
$this->install->message = "Parachat component updated";
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user