Вход Регистрация
Файл: system/controllers/admin/forms/form_ftp.php
Строк: 17
<?php
class formAdminFtp extends cmsForm {

    public function 
init() {

        return array(

            array(
                
'type' => 'fieldset',
                
'title' => LANG_CP_FTP_ACCOUNT,
                
'childs' => array(

                    new 
fieldString('host', array(
                        
'title' => LANG_CP_FTP_HOST,
                        
'rules' => array(
                            array(
'required'),
                        )
                    )),

                    new 
fieldString('user', array(
                        
'title' => LANG_CP_FTP_USER,
                        
'rules' => array(
                            array(
'required'),
                        )
                    )),

                    new 
fieldString('pass', array(
                        
'title' => LANG_CP_FTP_PASS,
                        
'is_password' => true,
                    )),

                    new 
fieldString('path', array(
                        
'title' => LANG_CP_FTP_PATH,
                        
'hint' => LANG_CP_FTP_PATH_HINT
                        
'default' => '/',
                        
'rules' => array(
                            array(
'required'),
                        )
                    )),

                )
            ),
            
            array(
                
'type' => 'fieldset',
                
'childs' => array(
                    new 
fieldCheckbox('is_pasv', array(
                        
'title' => LANG_CP_FTP_IS_PASV,
                        
'default' => true,
                    )),                    
                )
            )            

        );

    }


}
Онлайн: 1
Реклама