Implement PLESK, SSL Services
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Model_Host_Server extends ORMOSB {
|
||||
// Host Server doesnt use the update column
|
||||
protected $_updated_column = FALSE;
|
||||
|
||||
public function manage_button($u,$p,$d) {
|
||||
$c = sprintf('Service_Host_%s',$this->provision_plugin);
|
||||
if (! class_exists($c))
|
||||
@@ -20,5 +23,12 @@ class Model_Host_Server extends ORMOSB {
|
||||
|
||||
return $po->manage_button($u,$p,$d);
|
||||
}
|
||||
|
||||
public function config() {
|
||||
if (! $this->provision_plugin_data)
|
||||
throw new Kohana_Exception('No plugin configuration data');
|
||||
|
||||
return unserialize($this->provision_plugin_data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
15
modules/host/classes/model/host/server/affiliate.php
Normal file
15
modules/host/classes/model/host/server/affiliate.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* This class supports affiliates Host Server Configuration
|
||||
*
|
||||
* @package OSB
|
||||
* @subpackage HostServer/Affiliate
|
||||
* @category Models
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Model_Host_Server_Affiliate extends ORMOSB {
|
||||
}
|
||||
?>
|
@@ -51,6 +51,10 @@ class Model_Service_Plugin_Host extends Model_Service_Plugin {
|
||||
* to manage the domain.
|
||||
*/
|
||||
public function manage_button() {
|
||||
// @todo Convert this to a Static_List display
|
||||
if ($this->service->queue == 'PROVISION')
|
||||
return _('To Be Provisioned');
|
||||
|
||||
return ($this->host_username AND $this->host_password) ? $this->host_server->manage_button($this->host_username,$this->host_password,$this->name()) : '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user