Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -7,7 +7,7 @@
|
||||
* @package Invision Community
|
||||
* @since 2 Apr 2013
|
||||
*/
|
||||
|
||||
|
||||
namespace IPS\core\modules\setup\install;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
@@ -48,7 +48,7 @@ class license extends Controller
|
||||
public function manage() : void
|
||||
{
|
||||
$form = new Form( 'license', 'continue', Url::external( ( Request::i()->isSecure() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '?controller=license' ) );
|
||||
$form->add( new Text( 'lkey', '', TRUE, array( 'size' => 50 ), function( $val )
|
||||
$form->add( new Text( 'lkey', 'Nulled by IPBMafia.ru | 5.11.2025', TRUE, array( 'size' => 50 ), function( $val )
|
||||
{
|
||||
IPS::checkLicenseKey( $val, ( Request::i()->isSecure() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . mb_substr( $_SERVER['SCRIPT_NAME'], 0, -mb_strlen( 'admin/install/index.php' ) ) );
|
||||
}, NULL, '<a href="' . Url::ips( 'docs/find_lkey' ) . '" target="_blank" rel="noopener">' . Member::loggedIn()->language()->addToStack('lkey_help') . ' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"/></svg></a>' ) );
|
||||
@@ -59,18 +59,18 @@ class license extends Controller
|
||||
throw new InvalidArgumentException('eula_err');
|
||||
}
|
||||
}, "<textarea disabled style='width: 100%; height: 250px'>" . file_get_contents( 'eula.txt' ) . "</textarea>" ) );
|
||||
|
||||
|
||||
if ( $values = $form->values() )
|
||||
{
|
||||
$values['lkey'] = trim( $values['lkey'] );
|
||||
|
||||
|
||||
if ( mb_substr( $values['lkey'], -12 ) === '-TESTINSTALL' )
|
||||
{
|
||||
$values['lkey'] = mb_substr( $values['lkey'], 0, -12 );
|
||||
}
|
||||
|
||||
|
||||
$toWrite = "<?php\n\n" . '$INFO = ' . var_export( array( 'lkey' => 'LICENSE KEY GOES HERE!-123456789' ), TRUE ) . ';';
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
$file = @file_put_contents( \IPS\ROOT_PATH . '/conf_global.php', $toWrite );
|
||||
@@ -95,17 +95,17 @@ class license extends Controller
|
||||
$errorform = new Form( 'license', 'continue' );
|
||||
$errorform->class = '';
|
||||
$errorform->add( new TextArea( 'conf_global_error', $toWrite, FALSE ) );
|
||||
|
||||
|
||||
foreach( $values as $k => $v )
|
||||
{
|
||||
$errorform->hiddenValues[ $k ] = $v;
|
||||
}
|
||||
|
||||
|
||||
Output::i()->output = Theme::i()->getTemplate( 'global' )->confWriteError( $errorform, \IPS\ROOT_PATH );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Output::i()->title = Member::loggedIn()->language()->addToStack('license');
|
||||
Output::i()->output = Theme::i()->getTemplate( 'global' )->block( 'license', $form, TRUE, TRUE );
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ use UnderflowException;
|
||||
use function count;
|
||||
use function defined;
|
||||
use function is_array;
|
||||
use const IPS\UPGRADE_MD5_CHECK;
|
||||
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
@@ -99,10 +98,6 @@ class systemcheck extends Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check we have the latest version and run an md5 check */
|
||||
$incorrectFiles = array();
|
||||
/* Or do not check :) */
|
||||
|
||||
/* Display */
|
||||
if ( $canProceed )
|
||||
@@ -110,6 +105,6 @@ class systemcheck extends Controller
|
||||
Output::i()->redirect( Url::internal("controller=license&key={$_SESSION['uniqueKey']}") );
|
||||
}
|
||||
Output::i()->title = Member::loggedIn()->language()->addToStack('healthcheck');
|
||||
Output::i()->output = Theme::i()->getTemplate( 'global' )->healthcheck( $requirements, $incorrectFiles );
|
||||
Output::i()->output = Theme::i()->getTemplate( 'global' )->healthcheck( $requirements );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user