-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65ea654
commit 3e28409
Showing
13 changed files
with
456 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* @link http://hiqdev.com/hipanel-module-hosting | ||
* @license http://hiqdev.com/hipanel-module-hosting/license | ||
* @copyright Copyright (c) 2015 HiQDev | ||
*/ | ||
|
||
namespace hipanel\modules\hosting\controllers; | ||
|
||
use Yii; | ||
|
||
class VhostController extends \hipanel\base\CrudController | ||
{ | ||
public function actions() | ||
{ | ||
return [ | ||
'index' => [ | ||
'class' => 'hipanel\actions\IndexAction', | ||
], | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?php | ||
/** | ||
* @link http://hiqdev.com/hipanel-module-hosting | ||
* @license http://hiqdev.com/hipanel-module-hosting/license | ||
* @copyright Copyright (c) 2015 HiQDev | ||
*/ | ||
|
||
namespace hipanel\modules\hosting\models; | ||
|
||
use hipanel\helpers\StringHelper; | ||
use hipanel\modules\client\validators\LoginValidator; | ||
use hipanel\validators\IpValidator; | ||
use Yii; | ||
|
||
class Vhost extends \hipanel\base\Model | ||
{ | ||
|
||
use \hipanel\base\ModelTrait; | ||
|
||
|
||
public function rules() | ||
{ | ||
return [ | ||
[ | ||
[ | ||
'domain', | ||
'ip', | ||
'port', | ||
'path', | ||
'client', | ||
'device', | ||
'account', | ||
'service', | ||
'server', | ||
'soft', | ||
'type', | ||
'state', | ||
'state_label', | ||
'backuping_type', | ||
'backuping_type_label', | ||
'cgibin_postfix', | ||
'domain_prefix', | ||
'docroot_postfix', | ||
'apache_conf', | ||
'nginx_conf', | ||
'docroot', | ||
'cgibin', | ||
'fullpath', | ||
], | ||
'safe' | ||
], | ||
[ | ||
[ | ||
'id', | ||
'ip_id', | ||
'frontend_id', | ||
'client_id', | ||
'device_id', | ||
'server_id', | ||
'account_id', | ||
'soft_id', | ||
'service_id', | ||
], | ||
'integer' | ||
], | ||
[ | ||
[ | ||
'enable_ssi', | ||
'enable_suexec', | ||
'enable_accesslog', | ||
'enable_errorslog', | ||
'enable_scripts', | ||
'dns_on', | ||
|
||
], | ||
'boolean' | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function attributeLabels() | ||
{ | ||
return $this->mergeAttributeLabels([ | ||
|
||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
/** | ||
* @link http://hiqdev.com/hipanel-module-hosting | ||
* @license http://hiqdev.com/hipanel-module-hosting/license | ||
* @copyright Copyright (c) 2015 HiQDev | ||
*/ | ||
|
||
namespace hipanel\modules\hosting\models; | ||
|
||
use hipanel\base\SearchModelTrait; | ||
|
||
class VhostSearch extends Vhost { | ||
use SearchModelTrait; | ||
} |
Oops, something went wrong.