PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
components
<?php class hostingComponent extends CApplicationComponent { public $type = 'vps'; public $url = '127.0.0.1'; public $port = '80'; public $username = ''; public $password = ''; public $predefined_domain = ''; public $predefined_subdomain = ''; public function init() { } public function getHostingClass() { Yii::import('application.classes.hosting.*'); $hm = new hosting_manager_base($this->url, $this->port, $this->username, $this->password); if (@class_exists('hosting_manager_'.$this->type)) { $className = 'hosting_manager_'.$this->type; $hm = new $className($this->url, $this->port, $this->username, $this->password); } return $hm; } public function addDomain($domain) { return $this->getHostingClass()->addDomain($domain); } public function removeDomain($domain) { return $this->getHostingClass()->removeDomain($domain); } public function addSubdomain($domain) { return $this->getHostingClass()->addSubdomain($domain); } public function removeSubdomain($domain) { return $this->getHostingClass()->removeSubdomain($domain); } }
[+]
..
[-] colorComponent.php
[edit]
[-] authorizationComponent.php
[edit]
[-] hostingComponent.php
[edit]
[-] configComponent.php
[edit]
[-] siteComponent.php
[edit]
[-] urlComponent.php
[edit]
[-] paymentComponent.php
[edit]
[-] authManager.php
[edit]
[-] guestComponent.php
[edit]
[-] cmsComponent.php
[edit]
[-] languageComponent.php
[edit]
[-] contextComponent.php
[edit]
[-] cartComponent.php
[edit]
[-] customerComponent.php
[edit]