Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IPS4 - Обсуждение

Featured Replies

  • Replies 1,2k
  • Просмотров 112,6k
  • Created
  • Последний ответ

Лучшие авторы в теме

Most Popular Posts

  • Хотел опять зашифровать нулл, но я тут подумал и решил: да ну нафиг. Вот вам нулл IPS4 RC4.  

  • Готов нулл IPS 4.0.0 Beta 8   Изменения: Ну конечно в IPS пофиксили баги. А я добавил дату окончания лицензии. Это 09 Марта 2037 года (2037 год - максимальный. А дату 9-е Марта не многие поймут )

  • Ну-с... Тестируйте: IPS 4.0.0 Release Candidate 3  

  • Author

Что-то я опаздываю с билдами...

Уже 4b появился, ну да ладно.

 

IPS 4.0.0 Beta 4a

 

В состав входят: Core, Forums, Calendar, Downloads, Pages.

Спасибо всем, кто выложил приложения.

 

Всё как обычно. Как найти изменённый код и что закомментировано я писал выше.

 

 

Я думаю, что они не нашли проблему, но лечить последствия, которые создают ...
  И это большая ошибка ;)

Главное чтоб не вышло как с phpbb. Вон офф сайт phpbb лежит! Ломанули. Хоть и говорят, что ломанули аккаунт разбара, но слабо верится...

Вон офф сайт phpbb лежит!

Ахаха. Жесть какая. Меня этот phpBB веселит. Они одну версию 5 лет разрабатывали. А изменений по сути как кот наплакал

Тройку они переписали с нуля.

Ну главное в обнове, это установка расширений, без правки движка!

Дай Бог, чтоб и ipb выпустила нормальную версию

There is one mistake, when to upgrade, then => applications => core => modules => setup => upgrade => license.php  row 140 (the latest) => there is   } => delete it

Here is repaired.

<?php
/**
 * @brief		Upgrader: License
 * @author		<a href='__www.invisionpower.com'>Invision Power Services, Inc.</a>
 * @copyright	(c) 2001 - SVN_YYYY Invision Power Services, Inc.
 * @license		__www.invisionpower.com/legal/standards/
 * @package		IPS Social Suite
 * @since		25 Sep 2014
 * @version		SVN_VERSION_NUMBER
 */
 
namespace IPScoremodulessetupupgrade;

/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) )
{
	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
	exit;
}

/**
 * Upgrader: License
 */
class _license extends IPSDispatcherController
{

	/**
	 * Show Form
	 *
	 * @return	void
	 */
	public function manage()
	{
		/* Check license key *
		* if( IPSDb::i()->checkForTable( 'core_store' ) )
		{ 
			$licenseData = IPSIPS::licenseKey(); //We simply get it from function
	 	}
		else
		{
			$licenseData	= NULL;
			try
			{
				$license	= IPSDb::i()->select( '*', 'cache_store', array( 'cs_key=?', 'licenseData' ) )->first();
				$licenseData	= unserialize( $license['cs_value'] );
			}
			catch( Exception $e ){}
		}

		if( isset( $licenseData['key'] ) AND !isset( $licenseData['expires'] ) )
		{
			$licenseData	= $this->getLicenseData();
		}



		if ( !$licenseData ) or !isset( $licenseData['expires'] ) )
		{
			$response	= NULL;
			$active		= NULL;
			$form		= new запрещённый_сайтersForm( 'licensekey', 'continue' );
			$form->addMessage( 'O.o We can`t read license data from init.php. Something went wrong! Please, check init.php file!', 'error' );
			$form->add( new запрещённый_сайтersFormText( 'lkey', 'Continue at your own risk!!!', TRUE, array( 'size' => 70, 'disabled' => TRUE ), function( $val ){
				IPSIPS::checkLicenseKey( $val, IPSSettings::i()->base_url );
			} ) );

			if( $values = $form->values() )
			{
				$values['lkey'] = 'LICENSE KEY GOES HERE!0000000000'; //NULLING: Overwrite form value
				
				if ( mb_substr( $values['ipb_reg_number'], -12 ) === '-TESTINSTALL' )
				{
					$values['ipb_reg_number'] = mb_substr( $values['ipb_reg_number'], 0, -12 );
				}

				* Save *
				$form->saveAsSettings( $values );

				* Refresh the locally stored license info *
				if( IPSDb::i()->checkForTable( 'core_store' ) )
				{
					unset( IPSDataStore::i()->license_data );
					$licenseData = IPSIPS::licenseKey();
				}
				else
				{
					* Call the main server *
					$licenseData	= $this->getLicenseData();
				}

				* Reset some vars now *
				$form	= NULL;
				$active = isset( $licenseData['expires'] ) ? strtotime( $licenseData['expires'] ) > time() : NULL;
			}
		}
		else
		{
			$active = isset( $licenseData['expires'] ) ? strtotime( $licenseData['expires'] ) > time() : NULL;
		}

		if( $active )
		{ */
			IPSOutput::i()->redirect( IPSHttpUrl::internal( "controller=applications" )->setQueryString( 'key', $_SESSION['uniqueKey'] ) ); //NULLING: Skipping
		/* }

		IPSOutput::i()->title		= IPSMember::loggedIn()->language()->addToStack('license');
		IPSOutput::i()->output	= IPSTheme::i()->getTemplate( 'global' )->license( $form, $active );
	*/ } /*

	**
	 * Retrieve license data from license server
	 *
	 * @return mixed
	 *
	protected function getLicenseData()
	{
		* Call the main server *
		try
		{
			$response = IPSHttpUrl::ips( 'license/' . IPSSettings::i()->ipb_reg_number )->request()->get();
			if ( $response->httpResponseCode == 404 )
			{
				$licenseData	= NULL;
			}
			else
			{
				$licenseData	= $response->decodeJson();
			}

			IPSDb::i()->replace( 'cache_store', array( 'cs_key' => 'licenseData', 'cs_array' => 1, 'cs_value' => serialize( $licenseData ) ) );
		}
		catch ( Exception $e )
		{
			$licenseData	= NULL;
		}

		return $licenseData;
	} */
}


license.php

I guess I made in the previous a error. Here is repaired version.
I can not improve the previous.


There is one mistake, when to upgrade, then => applications => core => modules => setup => upgrade => license.php row 140 => there is } => delete it

 

<?php
/**
 * @brief		Upgrader: License
 * @author		<a href='__www.invisionpower.com'>Invision Power Services, Inc.</a>
 * @copyright	(c) 2001 - SVN_YYYY Invision Power Services, Inc.
 * @license		__www.invisionpower.com/legal/standards/
 * @package		IPS Social Suite
 * @since		25 Sep 2014
 * @version		SVN_VERSION_NUMBER
 */
 
namespace IPScoremodulessetupupgrade;

/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) )
{
	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
	exit;
}

/**
 * Upgrader: License
 */
class _license extends IPSDispatcherController
{

	/**
	 * Show Form
	 *
	 * @return	void
	 */
	public function manage()
	{
		/* Check license key *
		* if( IPSDb::i()->checkForTable( 'core_store' ) )
		{ 
			$licenseData = IPSIPS::licenseKey(); //We simply get it from function
	 	}
		else
		{
			$licenseData	= NULL;
			try
			{
				$license	= IPSDb::i()->select( '*', 'cache_store', array( 'cs_key=?', 'licenseData' ) )->first();
				$licenseData	= unserialize( $license['cs_value'] );
			}
			catch( Exception $e ){}
		}

		if( isset( $licenseData['key'] ) AND !isset( $licenseData['expires'] ) )
		{
			$licenseData	= $this->getLicenseData();
		}



		if ( !$licenseData ) or !isset( $licenseData['expires'] ) )
		{
			$response	= NULL;
			$active		= NULL;
			$form		= new запрещённый_сайтersForm( 'licensekey', 'continue' );
			$form->addMessage( 'O.o We can`t read license data from init.php. Something went wrong! Please, check init.php file!', 'error' );
			$form->add( new запрещённый_сайтersFormText( 'lkey', 'Continue at your own risk!!!', TRUE, array( 'size' => 70, 'disabled' => TRUE ), function( $val ){
				IPSIPS::checkLicenseKey( $val, IPSSettings::i()->base_url );
			} ) );

			if( $values = $form->values() )
			{
				$values['lkey'] = 'LICENSE KEY GOES HERE!0000000000'; //NULLING: Overwrite form value
				
				if ( mb_substr( $values['ipb_reg_number'], -12 ) === '-TESTINSTALL' )
				{
					$values['ipb_reg_number'] = mb_substr( $values['ipb_reg_number'], 0, -12 );
				}

				* Save *
				$form->saveAsSettings( $values );

				* Refresh the locally stored license info *
				if( IPSDb::i()->checkForTable( 'core_store' ) )
				{
					unset( IPSDataStore::i()->license_data );
					$licenseData = IPSIPS::licenseKey();
				}
				else
				{
					* Call the main server *
					$licenseData	= $this->getLicenseData();
				}

				* Reset some vars now *
				$form	= NULL;
				$active = isset( $licenseData['expires'] ) ? strtotime( $licenseData['expires'] ) > time() : NULL;
			}
		}
		else
		{
			$active = isset( $licenseData['expires'] ) ? strtotime( $licenseData['expires'] ) > time() : NULL;
		}

		if( $active )
		{ */
			IPSOutput::i()->redirect( IPSHttpUrl::internal( "controller=applications" )->setQueryString( 'key', $_SESSION['uniqueKey'] ) ); //NULLING: Skipping
		/* }

		IPSOutput::i()->title		= IPSMember::loggedIn()->language()->addToStack('license');
		IPSOutput::i()->output	= IPSTheme::i()->getTemplate( 'global' )->license( $form, $active );
	*/ } /*

	**
	 * Retrieve license data from license server
	 *
	 * @return mixed
	 *
	protected function getLicenseData()
	{
		* Call the main server *
		try
		{
			$response = IPSHttpUrl::ips( 'license/' . IPSSettings::i()->ipb_reg_number )->request()->get();
			if ( $response->httpResponseCode == 404 )
			{
				$licenseData	= NULL;
			}
			else
			{
				$licenseData	= $response->decodeJson();
			}

			IPSDb::i()->replace( 'cache_store', array( 'cs_key' => 'licenseData', 'cs_array' => 1, 'cs_value' => serialize( $licenseData ) ) );
		}
		catch ( Exception $e )
		{
			$licenseData	= NULL;
		}

		return $licenseData;
	} */
}

license.php

Здравствуйте, есть 2 проблемы:

1) Как поменять местами 

2) Как исправить

Версия beta 4b

Topce

1. Перемещайте приложения в нужном порядке на странице /admin/?app=core&module=applications&controller=applications

2. Сравнение базы данных и всех таблиц в ней должно быть - utf8_unicode_ci. Сопоставление кодировки соединения с MySQL - utf8mb4_general_ci.

Как вариант можно попробовать исправить с помощью инструментов сайта на странице /admin/?app=core&module=support&controller=support. Выберите "Something isn't working correctly" и нажмите "Continue".

 

P.S. Слишком много пользователей делают русификацию...

Topce

1. Перемещайте приложения в нужном порядке на странице /admin/?app=core&module=applications&controller=applications

2. Сравнение базы данных и всех таблиц в ней должно быть - utf8_unicode_ci. Сопоставление кодировки соединения с MySQL - utf8mb4_general_ci.

Как вариант можно попробовать исправить с помощью инструментов сайта на странице /admin/?app=core&module=support&controller=support. Выберите "Something isn't working correctly" и нажмите "Continue".

Спасибо, вроде все получилось ) Посмотрим как будет работать )

P.S. Просмотры сбились до 38 (сразу) до 1000 дойдет - там отпишусь, что да как...

P.S.S. С наступающим!

Edited by Topce

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.