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/dcb/application/forms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/dcb/application/forms/Leaveyournumber.php
<?php

class Application_Form_Leaveyournumber extends Zend_Form
{
	public function __construct($params = null)
	{   
            $state = new Application_Model_State();
            $allstates = $state->getAllActiveStatesList();
            $allcities = $state->getAllActiveCitiesList();
            
            $this->setMethod("POST");
            $this->setAction("lms/leave-your-number");
            $this->setName("add_leave_number_form");
            
            
            /************ User Type *****************/
            $usertype = array();
            //$usertype[""]="--Title--";
            $usertype_arr = array(     'Mr'=>'Mr.',
                                      'Mrs'=>'Mrs.',
                                      'Ms'=>'Ms.'
                                );    
            $title = $this->createElement('select', 'title');
                        foreach ($usertype_arr as $key=>$val) {
                            $usertype[$key] = $val;
                        } 
            $title->setRequired(true);
            $title->setMultiOptions($usertype);
            $title->setErrorMessages(array('Select title'));
            $title->removeDecorator('label');
            $title->removeDecorator('HtmlTag');
            $title->class = "styled";
            $title->style = "width:30px; border:none;";
            $title->tabindex = "1";
            
            /************ First Name *****************/
            $fname = $this->createElement('text','fname',
                                array(
                                     'value' => trim($params['fname']),
                                     'class' => 'txtfield_fname fl',
                                        'id' => 'fname',
                                    'placeholder' => 'First name *',
                                    'tabindex' => '2',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                 'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
                             ))	
                            ->setErrorMessages(array('Enter first name'))
                            ->removeDecorator('label')
                         
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Last Name  *****************/
            $lname = $this->createElement('text','lname',
                                array(
                                     'value' => trim($params['lname']),
                                     'class' => 'txtfield',
                                        'id' => 'lname',
                                    'placeholder' => 'Last name *',
                                    'tabindex' => '3',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                   'validators' => array(array("Alpha", true, array("allowWhiteSpace" => false))),
                             ))	 
                            ->setErrorMessages(array('Enter last name'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
                        
            /************ Email  *****************/
            $email = $this->createElement('text','email',
                                array(
                                     'value' => trim($params['email']),
                                     'class' => 'txtfield',
                                        'id' => 'email',
                                    'placeholder' => 'Email ID *',
                                    'tabindex' => '4',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                    'validators' => array('EmailAddress',)
                             ))	 
                            ->setErrorMessages(array('Enter valid email id'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
                        
            /************ State List *****************/
            $dataState = array();
	    $dataState[""]="--Select State * --";
            $statelist = $this->createElement('select', 'state_id');
                        foreach ($allstates as $data) {
                            $dataState[$data['id']] = ucwords(strtolower($data['state_name']));
                        }
            $statelist->setRequired(true);
            $statelist->setMultiOptions($dataState);
            $statelist->setErrorMessages(array('Select state name'));
            $statelist->removeDecorator('label');
            $statelist->removeDecorator('HtmlTag');
            $statelist->setAttrib('onchange', 'getCity(this.value)');
            $statelist->class = "styled";
            $statelist->style = "width:198px; border:none;";
            $statelist->tabindex = "5";
            
            /************ City List *****************/
            $dataCity = array();
            $dataCity[""]="--Select City * --";
            //$allcities = array();
            $citylist = $this->createElement('select', 'city_id');
                        foreach ($allcities as $data) {
                            $dataCity[$data['id']] = $data['city_name'];
                        }
            $citylist->setRequired(false);
            $citylist->setMultiOptions($dataCity);
            $citylist->setErrorMessages(array('Select city name'));
            $citylist->removeDecorator('label');
            $citylist->removeDecorator('HtmlTag');
            $citylist->id = "city_list";
            $citylist->class = "styled";
            $citylist->style = "width:198px; border:none;";
            $citylist->tabindex = "6";
                        
            /************ Area Code  *****************/
            $area_code = $this->createElement('text','area_code',
                                array(
                                     'value' => trim($params['area_code']),
                                     'class' => 'txtfield_small mrgn_right',
                                        'id' => 'country_code',
                                    'placeholder' => 'Area code*',
                                    'tabindex' => '8',
                                    'maxlength' => '6',
                                    'required'=>false,
                                    'filters' => array('StringTrim'),
                                    'validators' => array('Digits'),
                             ))	 
                            ->setAttrib('onkeypress', 'return isNumber(event);')
                            ->setErrorMessages(array('Enter area code'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Landline Number  *****************/
            $landline_no = $this->createElement('text','landline_no',
                                array(
                                     'value' => trim($params['landline_no']),
                                     'class' => 'txtfield_sm',
                                        'id' => 'landline_no',
                                    'placeholder' => 'Landline no. *',
                                    'tabindex' => '9',
                                 'maxlength' => '10',
                                    'required'=>false,
                                    
                                    'filters' => array('StringTrim'),
                                 'validators' => array('Digits'),
                             ))	 
                            ->setAttrib('onkeypress', 'return isNumber(event);')
                            ->setErrorMessages(array('Enter landline number'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Mobil Number  *****************/
            $mobile_no = $this->createElement('text','mobile_no',
                                array(
                                     'value' => trim($params['mobile_no']),
                                     'class' => 'txtfield',
                                        'id' => 'mobile_no',
                                 'maxlength' => '10',
                                 'placeholder' => 'Mobile no. *',
                                    'tabindex' => '10',
                                    'required'=>false,
                                    'filters' => array('StringTrim'),
                                 'validators' => array('Digits'),
                             ))	
                            ->setAttrib('onkeypress', 'return isNumber(event);')
                            ->setErrorMessages(array('Enter mobile number'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Captcha Code  *****************/
            $captcha = $this->createElement('text','captcha',
                                array(
                                     'value' => trim($params['captcha']),
                                     'class' => 'txtfield_fname',
                                        'id' => 'captcha',
                                    'placeholder' => 'Captcha code *',
                                    'tabindex' => '11',
                                    'autocomplete' => 'off',
                                    'required'=>true,
                                    'filters' => array('StringTrim'),
                                   'validators' => array(array("Alnum", true, array("allowWhiteSpace" => false))),
                             ))	 
                            ->setErrorMessages(array('Enter captcha'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
            
            /************ Terms and Conditions *****************/
            $terms_condition = $this->createElement('checkbox','terms_condition',
                                array(
                                     'value' => trim($params['terms_condition']),
                                        'id' => 'terms_condition',
                                    'required'=>false,
                                    'filters' => array('StringTrim'),
                                    'tabindex' => '12',
                                    //'validators' => array(array('StringLength', false, array(3, 100))),
                             ))	 
                            ->setErrorMessages(array('Check authorize'))
                            ->removeDecorator('label')
                            ->removeDecorator('HtmlTag')
                            ->removeDecorator('DtDdWrapper');
                                       
            $this->addElements(array(  
            $title,
            $fname,    
            $lname,  
            $email,
            $statelist, 
            $citylist,     
            $country_code,    
            $area_code,
            $landline_no,
            $mobile_no,
            $captcha,    
            $terms_condition
            )); 
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit