Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -68,8 +68,7 @@ class _applications extends \IPS\Dispatcher\Controller
|
||||
/* Get app name */
|
||||
if ( file_exists( $app->getPathName() . '/data/lang.xml' ) )
|
||||
{
|
||||
$xml = new \IPS\Xml\XMLReader;
|
||||
$xml->open( $app->getPathName() . '/data/lang.xml' );
|
||||
$xml = \IPS\Xml\XMLReader::safeOpen( $app->getPathName() . '/data/lang.xml' );
|
||||
$xml->read();
|
||||
|
||||
$xml->read();
|
||||
|
||||
@@ -30,7 +30,7 @@ class _license extends \IPS\Dispatcher\Controller
|
||||
public function manage()
|
||||
{
|
||||
$form = new \IPS\Helpers\Form( 'license', 'continue', \IPS\Http\Url::external( ( \IPS\Request::i()->isSecure() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '?controller=license' ) );
|
||||
$form->add( new \IPS\Helpers\Form\Text( 'lkey', 'Nulled by IPBMafia.ru | 18.08.2020', TRUE, array( 'size' => 50 ), function( $val )
|
||||
$form->add( new \IPS\Helpers\Form\Text( 'lkey', 'Nulled by IPBMafia.ru | 09.06.2021', TRUE, array( 'size' => 50 ), function( $val )
|
||||
{
|
||||
\IPS\IPS::checkLicenseKey( $val, ( \IPS\Request::i()->isSecure() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . mb_substr( $_SERVER['SCRIPT_NAME'], 0, -mb_strlen( \IPS\CP_DIRECTORY . '/install/index.php' ) ) );
|
||||
}, NULL, '<a href="' . \IPS\Http\Url::ips( 'docs/find_lkey' ) . '" target="_blank" rel="noopener">' . \IPS\Member::loggedIn()->language()->addToStack('lkey_help') . '</a>' ) );
|
||||
|
||||
@@ -93,8 +93,7 @@ class _applications extends \IPS\Dispatcher\Controller
|
||||
/* Get app name */
|
||||
if ( file_exists( $path . '/data/lang.xml' ) )
|
||||
{
|
||||
$xml = new \IPS\Xml\XMLReader;
|
||||
$xml->open( $path . '/data/lang.xml' );
|
||||
$xml = \IPS\Xml\XMLReader::safeOpen( $path . '/data/lang.xml' );
|
||||
$xml->read();
|
||||
|
||||
$xml->read();
|
||||
@@ -231,8 +230,7 @@ class _applications extends \IPS\Dispatcher\Controller
|
||||
$path = \IPS\ROOT_PATH . '/applications/' . $key;
|
||||
if ( file_exists( $path . '/data/lang.xml' ) )
|
||||
{
|
||||
$xml = new \IPS\Xml\XMLReader;
|
||||
$xml->open( $path . '/data/lang.xml' );
|
||||
$xml = \IPS\Xml\XMLReader::safeOpen( $path . '/data/lang.xml' );
|
||||
$xml->read();
|
||||
|
||||
$xml->read();
|
||||
|
||||
@@ -150,6 +150,12 @@ class _login extends \IPS\Dispatcher\Controller
|
||||
$error = 'login_err_no_account';
|
||||
}
|
||||
}
|
||||
|
||||
if ( $error )
|
||||
{
|
||||
$error = \IPS\Member::loggedIn()->language()->addToStack( $error, FALSE, array( 'pluralize' => array( 3 ) ) );
|
||||
}
|
||||
|
||||
\IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack('login');
|
||||
\IPS\Output::i()->output .= \IPS\Theme::i()->getTemplate( 'forms' )->login( $error );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user