PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
controllers
<?php class DomainController extends PController { public $layout = 'admin_column'; public function filters() { return array( 'accessControl', ); } public function accessRdules() { $module = $this->getModule(); return array( array('allow', 'actions' => array( 'ajaxupdate','index','create','view','delete','update','extend','upgrade','addcategory','refreshScreenshot','createStructure','user','adduser','AjaxAddUser','deleteuser','updatedomain', ), 'roles' => array($module->templateManagerRole), ), array('deny', // deny all users 'users' => array('*'), ), ); } public function actionIndex() { $this->breadcrumbs = array( Yii::t('admin', 'Domains'), ); $model = new Page_Domain('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Page_Domain'])) { $model->attributes = $_GET['Page_Domain']; } $this->render('index', array( 'model' => $model, )); } public function actionDelete() { if (!isset($_REQUEST['site_id'])) { $url = $this->createUrl('index'); $this->redirect($url); } $id = $_REQUEST['site_id']; $name = $_REQUEST['name']; $t = Page_Domain::model()->find('site_id=:site_id and name=:name',array(':site_id'=>(int) $id, ':name'=>$name)); if ($t == null) { $url = $this->createUrl('index'); $this->redirect($url); } try { $rs = Yii::app()->hosting->removeDomain($t->name); if ($rs == 1) { $t->delete(); } else { } } catch (Exception $e) { // $this->ajaxError($e->getMessage()); } $url = $this->createUrl('index'); $this->redirect($url); } }
[+]
..
[-] TemplateController.php
[edit]
[-] PlanController.php
[edit]
[-] DomainController.php
[edit]
[-] WebsiteController.php
[edit]
[-] ConfigController.php
[edit]
[-] TransactionController.php
[edit]
[-] MailtemplateController.php
[edit]
[-] DefaultController.php
[edit]
[-] CategoryController.php
[edit]
[-] DashboardController.php
[edit]
[-] UserController.php
[edit]
[-] LanguageController.php
[edit]
[-] ModuleController.php
[edit]
[-] ModulecategoryController.php
[edit]
[-] PlanDescriptionController.php
[edit]
[-] TermController.php
[edit]
[-] SubscriptionController.php
[edit]
[-] InterfaceController.php
[edit]
[-] ColorController.php
[edit]
[-] ShareButtonController.php
[edit]
[-] SkinpresetController.php
[edit]
[-] ContentController.php
[edit]
[-] LogController.php
[edit]
[-] ProfileController.php
[edit]