public function actionImportSqlFile()
 {
     $config = Yii::app()->getComponents(false);
     //         App::pr($config,2);
     if (is_object($config['db'])) {
         $config['db'] = App::objtoarray($config['db']);
     }
     //        App::pr($config['db']);
     //        die;
     $is_multiple_db = array_key_exists('0', $config['db']);
     if ($is_multiple_db) {
         foreach ($config['db'] as $d => $db) {
             $imported = $this->importSqlFile($db);
         }
     } else {
         $imported = $this->importSqlFile($config['db']);
     }
 }
 public function actionForgetPassword()
 {
     $model = new UserMaster();
     if (isset($_POST['email']) && $_POST['email'] != '') {
         $email = trim(urldecode($_POST['email']));
         $Criteria = new CDbCriteria();
         $Criteria->condition = "user_name = '{$email}'";
         $Criteria->select = 'u_id';
         $res = [];
         $res = $model->find($Criteria);
         if (!empty($res)) {
             $res = App::objtoarray($res);
             $returnval = $this->verificationMail($email, 'forget');
             if ($returnval) {
                 echo 1;
             }
         } else {
             echo '0';
         }
     } else {
         echo '-1';
     }
     exit;
 }