Version 4.2.0
This commit is contained in:
1 parent
0dc2aee5ed
commit
96997ddd8e
2074 files changed
+125454
-55780
No files matched your search
@@ -1,13 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Hosting Servers
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @subpackage Nexus
|
||||
* @since 06 Aug 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
namespace IPS\nexus\modules\admin\hosting;
|
||||
@@ -65,12 +64,11 @@ class _servers extends \IPS\Node\Controller
|
||||
/* Buttons */
|
||||
if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'nexus', 'hosting', 'servers_add' ) )
|
||||
{
|
||||
$table->rootButtons = array(
|
||||
'add' => array(
|
||||
'title' => 'add',
|
||||
'icon' => 'plus',
|
||||
'link' => \IPS\Http\Url::internal('app=nexus&module=hosting&controller=servers&do=form')
|
||||
)
|
||||
\IPS\Output::i()->sidebar['actions']['add'] = array(
|
||||
'primary' => true,
|
||||
'title' => 'add',
|
||||
'icon' => 'plus',
|
||||
'link' => \IPS\Http\Url::internal('app=nexus&module=hosting&controller=servers&do=form')
|
||||
);
|
||||
}
|
||||
$table->rowButtons = function( $row )
|
||||
@@ -272,7 +270,13 @@ class _servers extends \IPS\Node\Controller
|
||||
}
|
||||
catch ( \IPS\nexus\Hosting\Exception $e )
|
||||
{
|
||||
\IPS\Output::i()->error( $e->getMessage(), '3X243/2', 500, '' );
|
||||
$message = $e->getMessage();
|
||||
if ( \IPS\Member::loggedIn()->language()->checkKeyExists( 'hosting_ex_' . $message ) )
|
||||
{
|
||||
$message = \IPS\Member::loggedIn()->language()->addToStack( 'hosting_ex_' . $message );
|
||||
}
|
||||
|
||||
\IPS\Output::i()->error( $message, '3X243/2', 500, '' );
|
||||
}
|
||||
|
||||
\IPS\Session::i()->log( 'acplogs__server_reboot', array( $server->hostname => FALSE ) );
|
||||
@@ -358,7 +362,13 @@ class _servers extends \IPS\Node\Controller
|
||||
}
|
||||
catch ( \IPS\nexus\Hosting\Exception $e )
|
||||
{
|
||||
\IPS\Output::i()->error( $e->getMessage(), '3X243/4', 403, '' );
|
||||
$message = $e->getMessage();
|
||||
if ( \IPS\Member::loggedIn()->language()->checkKeyExists( 'hosting_ex_' . $message ) )
|
||||
{
|
||||
$message = \IPS\Member::loggedIn()->language()->addToStack( 'hosting_ex_' . $message );
|
||||
}
|
||||
|
||||
\IPS\Output::i()->error( $message, '3X243/4', 403, '' );
|
||||
}
|
||||
|
||||
/* Init */
|
||||
|
||||
Reference in new issue
Block a user