Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* @brief Hosting Account Model
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @package IPS Community Suite
|
||||
* @subpackage Nexus
|
||||
* @since 6 Aug 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
@@ -80,13 +80,13 @@ class _Account extends \IPS\Patterns\ActiveRecord
|
||||
{
|
||||
/* Set a random password */
|
||||
$password = '';
|
||||
foreach ( range( 1, 12 ) as $j )
|
||||
foreach ( range( 1, 20 ) as $j )
|
||||
{
|
||||
do
|
||||
{
|
||||
$chr = rand( 33, 122 );
|
||||
}
|
||||
while ( in_array( $chr, array( 34, 37, 38, 39, 44, 46, 47, 58, 59, 60, 61, 62, 64, 91, 92, 93, 94, 96 ) ) );
|
||||
while ( in_array( $chr, array( 38, 43, 47, 64, 92, 93, 94 ) ) );
|
||||
|
||||
$password .= chr( $chr );
|
||||
}
|
||||
@@ -125,7 +125,7 @@ class _Account extends \IPS\Patterns\ActiveRecord
|
||||
*/
|
||||
public function set_domain( $domain )
|
||||
{
|
||||
$this->_data['account_domain'] = $domain;
|
||||
$this->_data['account_domain'] = mb_strtolower( $domain );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -367,6 +367,18 @@ class _Account extends \IPS\Patterns\ActiveRecord
|
||||
throw new \IPS\nexus\Hosting\Exception( $this, 'DUMMY_SERVER' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Change Domain
|
||||
*
|
||||
* @param string $domain New Domain
|
||||
* @param bool $keepOld If true, will park this domain, keeping the old domain as the main domain (rather than just changing the main domain)
|
||||
* @return void
|
||||
*/
|
||||
public function changeDomain( $domain, $park=FALSE )
|
||||
{
|
||||
throw new \IPS\nexus\Hosting\Exception( $this, 'DUMMY_SERVER' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit Priviledges
|
||||
*
|
||||
@@ -402,6 +414,17 @@ class _Account extends \IPS\Patterns\ActiveRecord
|
||||
throw new \IPS\nexus\Hosting\Exception( $this, 'DUMMY_SERVER' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Park a domain
|
||||
*
|
||||
* @param string $domain Domain to be parked
|
||||
* @return void
|
||||
*/
|
||||
public function parkDomain( $domain )
|
||||
{
|
||||
throw new \IPS\nexus\Hosting\Exception( $this, 'DUMMY_SERVER' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Suspend
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user