Перейти к содержимому


Информация статьи

  • Дабавлена: 23 янв 2012 02:59
  • Обновлена: 23 янв 2012 03:01
  • Просмотров: 1583
 


* * * * *
0 Рейтинг

Удаляем сообщение в ACP License Key Missing

Написано ๖ۣۣۜDesperate™ 23 янв 2012 02:59
License Key Missing

1.png

При установке нового форума в ACP появляется сообщение о ключе. Убираем его таким образом:

Открыть /admin/skin_cp/cp_skin_global.php


Найти:
[/left]

if( !$this->settings['ipb_reg_number'] )
{
$this->lang->words['license_missing_info']= sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools&section=licensekey' );
$extra_class = 'force_license';
$license_html = <<<HTML
<div id='license_notice_force'>
<h4>{$this->lang->words['license_missing_header']}</h4>
<p>{$this->lang->words['license_missing_info']}</p>
</div>
HTML;
}
else
{
$licenseData= $this->cache->getCache( 'licenseData' );

if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW ) AND !IPSCookie::get( 'ignore-license-notice' ) )
{
$extra_class = 'expired_license';
$license_html = <<<HTML
<div id='license_notice_expired'>
<div class='right'><a id='license-close' href='#'>Close</a></div>
<h4>{$this->lang->words['license_expired_header']}</h4>
<p>{$this->lang->words['license_expired_info']}</p>
</div>
HTML;
}
}

Удаляем этот код.

Открыть /admin/applications/core/extensions/dashboardNotifications.php

Найти:

if( ! $this->settings['ipb_reg_number'] )
{
$entries[] = array( $this->lang->words['lc_title_nokey'], sprintf( $this->lang->words['lc_msg_nokey'], "{$this->settings['base_url']}module=tools&amp;section=licensekey" ) );
}
else
{
/* Get the file managemnet class */
$classToLoad = IPSLib::loadLibrary( IPS_KERNEL_PATH . 'classFileManagement.php', 'classFileManagement' );
$query	   = new $classToLoad();
$query->use_sockets = 1;
		  
/* Query the api */
$response = $query->getFileContents( "http://licsrv.invisionpower.com/license_check/index.php?api=checkService&service=ipb&key={$this->settings['ipb_reg_number']}&url={$this->settings['board_url']}" );
		  
/* Get License Data */
$response = json_decode( $response, true );[/left]
if( $response['result'] != 'ok' )
{
if( $this->lang->words[ 'lc_title_' . $response['error'] ] && $this->lang->words[ 'lc_msg_' . $response['error'] ] )
{
$entries[] = array( $this->lang->words[ 'lc_title_' . $response['error_ipbc'] ], sprintf( $this->lang->words[ 'lc_msg_' . $response['error'] ], $this->settings['board_url'] ) );
}
else
{
$entries[] = array( $this->lang->words['ipboardlicenseerror'], $response['error'] ? $response['error'] : sprintf( $this->lang->words['licensenocomm'], $this->settings['base_url'] . "app=core&module=diagnostics&section=diagnostics&do=connections" ) );
}
}
}

И удаляем.

После файлы залить обратно и радоваться )))
  • 0

Powered by Tutorials 1.5.0 © 2016, by Michael McCune