Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php $servername = "localhost"; $username = "ariyanpr_ar..

Decoded Output download

<?php 
 
            
        $servername = "localhost"; 
        $username = "ariyanpr_ariyan"; 
        $password = "M9054711210a"; 
        $dbname = "ariyanpr_users"; 
        $port = 3306; 
         
        $conn = new mysqli($servername, $username, $password, $dbname , $port); 
         
        //   
        if ($conn->connect_error) { 
            die("ERROR" . $conn->connect_error); 
        } 
        function countDigits($number) {  
            $digitCount = 0;  
            while ($number != 0) {  
                $number = (int)($number / 10);  
                $digitCount++;  
            }  
            return $digitCount;  
        }  
 
        if ($_SERVER['REQUEST_METHOD'] == "POST") { 
            $username = $_POST["Rusername"]; 
            $password = $_POST["Rpassword"]; 
            $cpassword  = $_POST['RCpassword']; 
            $email = $_POST["Remail"]; 
            $tel = $_POST["tel"]; 
            if ($username == $row['Username']) { 
                echo '.      '; 
                return; 
            } 
             
        $sqlUSER = "SELECT * FROM `users` Where `Username` = '$username'"; 
        $resultU = $conn->query($sqlUSER); 
        if ($resultU->num_rows > 0 ) { 
            echo "      "; 
        }else { 
                    $sql = "SELECT * FROM `users`"; 
        $result = $conn->query($sql); 
        if ($result->num_rows > 0 ) { 
             
                    $sql = "SELECT * FROM `users`"; 
        $result = $conn->query($sql); 
        if ($result->num_rows > 0 ) { 
            while ($row = $result->fetch_assoc()) {  
                if ($username == $row['Username']) { 
                    echo '.      '; 
                    return ; 
                }else { 
                    if ($password == $cpassword) { 
                        $IP = $_SERVER['REMOTE_ADDR']; 
                            $sqlReg = "INSERT INTO `users` (`userId`, `Username`, `Email`, `Password`, `Number`,`IP`) VALUES (NULL, '$username', '$email', '$password', '$tel', '$IP')"; 
                            $add = $conn->query($sqlReg); 
                            $data = array( 
                         
                                    "reg" => true, 
                                    "username" =>$username, 
                                    "password" =>$password, 
                                    "cpassword"=>$cpassword, 
                                    "tel"=>$tel, 
                                    "email"=>$email 
                                 
                            ); 
                            
                setcookie('ARIYAN_username',$username, time()+3600*24*30 ); 
                setcookie('ARIYAN_password',$password, time()+3600*24*30 ); 
                setcookie('ARIYAN_email',$email, time()+3600*24*30 ); 
                setcookie('ARIYAN_reg','true', time()+2); 
                break; 
                         
                    }else { 
                        echo 'Password Not Match'; 
                        break; 
                    } 
                } 
            } 
        }       else { 
            echo "Hellos"; 
        } 
         } 
         else { 
             echo "Hellosdas"; 
         } 
        } 
             
 
?> 
 
 

Did this file decode correctly?

Original Code

<?php

           
        $servername = "localhost";
        $username = "ariyanpr_ariyan";
        $password = "M9054711210a";
        $dbname = "ariyanpr_users";
        $port = 3306;
        
        $conn = new mysqli($servername, $username, $password, $dbname , $port);
        
        //  
        if ($conn->connect_error) {
            die("ERROR" . $conn->connect_error);
        }
        function countDigits($number) { 
            $digitCount = 0; 
            while ($number != 0) { 
                $number = (int)($number / 10); 
                $digitCount++; 
            } 
            return $digitCount; 
        } 

        if ($_SERVER['REQUEST_METHOD'] == "POST") {
            $username = $_POST["Rusername"];
            $password = $_POST["Rpassword"];
            $cpassword  = $_POST['RCpassword'];
            $email = $_POST["Remail"];
            $tel = $_POST["tel"];
            if ($username == $row['Username']) {
                echo '.      ';
                return;
            }
            
        $sqlUSER = "SELECT * FROM `users` Where `Username` = '$username'";
        $resultU = $conn->query($sqlUSER);
        if ($resultU->num_rows > 0 ) {
            echo "      ";
        }else {
                    $sql = "SELECT * FROM `users`";
        $result = $conn->query($sql);
        if ($result->num_rows > 0 ) {
            
                    $sql = "SELECT * FROM `users`";
        $result = $conn->query($sql);
        if ($result->num_rows > 0 ) {
            while ($row = $result->fetch_assoc()) { 
                if ($username == $row['Username']) {
                    echo '.      ';
                    return ;
                }else {
                    if ($password == $cpassword) {
                        $IP = $_SERVER['REMOTE_ADDR'];
                            $sqlReg = "INSERT INTO `users` (`userId`, `Username`, `Email`, `Password`, `Number`,`IP`) VALUES (NULL, '$username', '$email', '$password', '$tel', '$IP')";
                            $add = $conn->query($sqlReg);
                            $data = array(
                        
                                    "reg" => true,
                                    "username" =>$username,
                                    "password" =>$password,
                                    "cpassword"=>$cpassword,
                                    "tel"=>$tel,
                                    "email"=>$email
                                
                            );
                           
                setcookie('ARIYAN_username',$username, time()+3600*24*30 );
                setcookie('ARIYAN_password',$password, time()+3600*24*30 );
                setcookie('ARIYAN_email',$email, time()+3600*24*30 );
                setcookie('ARIYAN_reg','true', time()+2);
                break;
                        
                    }else {
                        echo 'Password Not Match';
                        break;
                    }
                }
            }
        }       else {
            echo "Hellos";
        }
         }
         else {
             echo "Hellosdas";
         }
        }
            

?>


Function Calls

None

Variables

None

Stats

MD5 043b0e2f128ddf89e3f988f1ef92c2ca
Eval Count 0
Decode Time 57 ms