/**
  * Deletes an existing Subscriber model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     $model = $this->findModel($id);
     GlobalFunctionController::activity_user("[DELETE SUBSCRIBER] Group : {$model->group_id} , Number : {$model->number} password : {$model->password}, COS : {$model->COS}, FORWARD_ON_RNA_enabled : {$model->FORWARD_ON_RNA_enabled}, FORWARD_ON_RNA_number : {$model->FORWARD_ON_RNA_number},FORWARD_UNC_enabled : {$model->FORWARD_UNC_enabled},FORWARD_UNC_number : {$model->FORWARD_UNC_number},FORWARD_ON_BUSY_enabled : {$model->FORWARD_ON_BUSY_enabled},                 FORWARD_ON_BUSY_number : {$model->FORWARD_ON_BUSY_number},clip : {$model->clip}, clir : {$model->clir}, mwi : {$model->mwi}, call_hunting : {$model->call_hunting}, call_hunting_type : {$model->call_hunting_type}");
     $model->delete();
     return $this->redirect(['index']);
 }
 /**
  * Deletes an existing RatingProfile model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     $model = $this->findModel($id);
     GlobalFunctionController::activity_user("[DELETE RATING] Description : {$model->desc}");
     $model->delete();
     return $this->redirect(['index']);
 }
示例#3
0
 /**
  * Deletes an existing Trunk model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     $model = $this->findModel($id);
     GlobalFunctionController::activity_user("[DELETE TRUNK] Name : {$model->name} ,IP : {$model->ip}, Port : {$model->port}, Heart : {$model->heart},SIP : {$model->sip}, In Trunk Group : {$model->in_trunkgroup}, Out Trunkgroup : {$model->out_trunkgroup}");
     $model->delete();
     return $this->redirect(['index']);
 }
示例#4
0
 /**
  * Deletes an existing Cos model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     $model = $this->findModel($id);
     GlobalFunctionController::activity_user("[DELETE COS] Name : {$model->name} to {$model->name} ,Description : {$model->desc} to {$model->desc}, FORWARD_ON_RNA_enabled : {$model->FORWARD_ON_RNA_enabled} to {$model->FORWARD_ON_RNA_enabled}, FORWARD_ON_RNA_number : {$model->FORWARD_ON_RNA_number} to {$model->FORWARD_ON_RNA_number},FORWARD_ON_BUSY_enabled : {$model->FORWARD_ON_BUSY_enabled} to {$model->FORWARD_ON_BUSY_enabled}, FORWARD_ON_BUSY_number : {$model->FORWARD_ON_BUSY_number} to {$model->FORWARD_ON_BUSY_number}, FORWARD_UNC_enabled : {$model->FORWARD_UNC_enabled} to {$model->FORWARD_UNC_enabled}, FORWARD_UNC_number : {$model->FORWARD_UNC_number} to {$model->FORWARD_UNC_number}, clip : {$model->clip} to {$model->clip}, clir : {$model->clir} to {$model->clir}, mwi : {$model->mwi} to {$model->mwi}, call_hunting : {$model->call_hunting} to {$model->call_hunting}, call_hunting_type : {$model->call_hunting_type} to {$model->call_hunting_type}");
     $model->delete();
     return $this->redirect(['index']);
 }
示例#5
0
 /**
  * Deletes an existing User model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     if ($this->findModel($id)->delete()) {
         // echo 1;
         $this->redirect(['index']);
         GlobalFunctionController::activity_user("[CREATE USER] Username : {$model->username} ,Email : {$model->email}, Allowed IP {$model->ip}, Multiple Login {$model->flag_login}");
     }
 }
 public function actionDeleteVirtual($id)
 {
     $model = $this->findModel($id);
     GlobalFunctionController::activity_user("[DELETE SUBSGROUP] Name : {$model->name} ,Description : {$model->desc} , Virtual : {$model->virtual_id}, Area Code : {$model->area_code} ,Office Code : {$model->office_code}, Rating : {$model->rating_id} , Wallet : {$model->wallet} ");
     if ($model->delete()) {
         echo 1;
     }
     // return $this->redirect(['index']);
 }
 public function actionDeleteVirtual($id)
 {
     $model = $this->findModel($id);
     GlobalFunctionController::activity_user("[DELETE IN TRUNK GROUP] Name : {$model->name} ,Description : {$model->desc}, virtual : {$model->virtual_id}");
     if ($model->delete()) {
         echo 1;
     }
     // return $this->redirect(['index']);
 }
示例#8
0
 public function actionLogout()
 {
     self::updateFlagLogin(0);
     GlobalFunctionController::activity_user('LOG OUT');
     Yii::$app->user->logout();
     return $this->goHome();
 }
 public function actionDeleteVirtual($id)
 {
     $model = $this->findModel($id);
     GlobalFunctionController::activity_user("[DELETE PREFIX] Prefix : {$model->prefix} to {$model->prefix} ,Description : {$model->description} to {$model->description}, Virtual : {$model->virtual_id} to {$model->virtual_id}, Type : {$model->type} to {$model->type}");
     if ($model->delete()) {
         echo 1;
     }
 }