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 session_start();if(isset($_SESSION['spe-id_login_id']))header("location:index.php?pa..

Decoded Output download

<?php session_start();if(isset($_SESSION['spe-id_login_id']))header("location:index.php?page=home");include('./header.php');?> 
 
<!DOCTYPE html> 
 
<html lang="en" class="h-100"> 
 
 
 
<head> 
 
 
 
 
 
</head> 
 
 
 
<body class="h-100"> 
 
    <div class="authincation h-100"> 
 
        <div class="container-fluid h-100"> 
 
            <div class="row justify-content-center h-100 align-items-center"> 
 
                <div class="col-md-4"> 
 
                    <div class="authincation-content"> 
 
                        <div class="row no-gutters"> 
 
                            <div class="col-xl-12"> 
 
                                <div class="auth-form"> 
                                    <tr> 
                                <td><div class="text-center mb-4"> <img class="logo-abbr text-center mb-4" src="./images/c.png" alt=""></td> 
                                <td><img class="logo-abbr text-center mb-4" src="./images/sedms-black.png" alt=""></td> 
                                <td><img class="logo-abbr text-center mb-4" src="./assets/img/SPE-ID_Logo.png" width="200" height="100" alt=""></td> 
                                </div></tr> 
                                        <h4></h4> 
                                   
                                    <form id="login-form" > 
 
                                        <div class="form-group"> 
 
                                            <label><strong>Email</strong></label> 
 
                                            <input type="text"  id="email" name="email"  class="form-control" placeholder="[email protected]" required> 
 
                                        </div> 
 
                                        <div class="form-group"> 
 
                                            <label><strong>Password</strong></label> 
 
                                            <input type="password" name="password" class="form-control" placeholder="Password" required> 
 
                                        </div> 
 
                                        <div class="form-row d-flex justify-content-between mt-4 mb-2"> 
 
                                            <div class="form-group"> 
 
                                                <!--<div class="form-check ml-2">--> 
 
                                                <!--    <input class="form-check-input" type="checkbox" id="basic_checkbox_1">--> 
 
                                                <!--    <label class="form-check-label" for="basic_checkbox_1">Remember me</label>--> 
 
                                                <!--</div>--> 
 
                                            </div> 
 
                                            <!-- <div class="form-group"> 
 
                                                <a href="page-forgot-password.html">Forgot Password?</a> 
 
                                            </div> --> 
 
                                        </div> 
 
                                        <div class="text-center"> 
 
                                            <button type="submit" class="btn btn-primary btn-block">Login</button> 
 
                                        </div> 
 
                                    </form> 
 
                                    
                                    <div class="new-account mt-3"> 
 
                                        <p>Return back to <a class="text-primary"  href="https://upmspe-accreditation.com/e-system/"><b>e-system PORTAL</b></a> | <span>Not have account? Register as<a class="text-primary" href="register.php"> <b> STAFF </b></a> or <a class="text-primary" href="#" onclick="Popup();"><b>OTHERS</b></a> <br> 
                                        Download <a class="text-primary"  href="../usermanual/Manual Pengguna SPE-ID v1.0_PDF.pdf"><b>User Manual</b></a></p> 
                                         
 
                                    </div> 
 
                                </div> 
 
                            </div> 
 
                        </div> 
 
                    </div> 
 
                </div> 
 
            </div> 
 
        </div> 
 
    </div> 
 
 
 
    <!--********************************** 
 
        Scripts 
 
    ***********************************--> 
 
    <!-- Required vendors --> 
 
    <script src="./vendor/global/global.min.js"></script> 
 
    <script src="./js/quixnav-init.js"></script> 
 
    <script src="./js/custom.min.js"></script> 
 
 
 
</body> 
 
 
 
<script> 
 
	$('#login-form').submit(function(e){ 
 
		e.preventDefault() 
 
		$('#login-form button[type="button"]').attr('disabled',true).html('Logging in...'); 
 
		if($(this).find('.alert-danger').length > 0 ) 
 
			$(this).find('.alert-danger').remove(); 
 
		$.ajax({ 
 
			url:'ajax.php?action=login', 
 
			method:'POST', 
 
			data:$(this).serialize(), 
 
			error:err=>{ 
 
				console.log(err) 
 
		$('#login-form button[type="button"]').removeAttr('disabled').html('Login'); 
 
 
 
			}, 
 
			success:function(resp){ 
 
				if(resp == 1){ 
 
					location.reload('index.php'); 
 
				} 
				 
				else{ 
 
					$('#login-form').prepend('<div class="alert alert-danger">Username or password is incorrect.</div>') 
 
					$('#login-form button[type="button"]').removeAttr('disabled').html('Login'); 
 
				} 
 
			} 
 
		}) 
 
	}) 
 
</script> 
 
<script language="javascript"> 
        function Popup() 
        { 
            alert("Please Contact your SPE UPM IT Officer"); 
        } 
    </script>  
 
</html>

Did this file decode correctly?

Original Code

<?php session_start();if(isset($_SESSION['spe-id_login_id']))header("location:index.php?page=home");include('./header.php');?>

<!DOCTYPE html>

<html lang="en" class="h-100">



<head>





</head>



<body class="h-100">

    <div class="authincation h-100">

        <div class="container-fluid h-100">

            <div class="row justify-content-center h-100 align-items-center">

                <div class="col-md-4">

                    <div class="authincation-content">

                        <div class="row no-gutters">

                            <div class="col-xl-12">

                                <div class="auth-form">
                                    <tr>
                                <td><div class="text-center mb-4"> <img class="logo-abbr text-center mb-4" src="./images/c.png" alt=""></td>
                                <td><img class="logo-abbr text-center mb-4" src="./images/sedms-black.png" alt=""></td>
                                <td><img class="logo-abbr text-center mb-4" src="./assets/img/SPE-ID_Logo.png" width="200" height="100" alt=""></td>
                                </div></tr>
                                        <h4></h4>
                                  
                                    <form id="login-form" >

                                        <div class="form-group">

                                            <label><strong>Email</strong></label>

                                            <input type="text"  id="email" name="email"  class="form-control" placeholder="[email protected]" required>

                                        </div>

                                        <div class="form-group">

                                            <label><strong>Password</strong></label>

                                            <input type="password" name="password" class="form-control" placeholder="Password" required>

                                        </div>

                                        <div class="form-row d-flex justify-content-between mt-4 mb-2">

                                            <div class="form-group">

                                                <!--<div class="form-check ml-2">-->

                                                <!--    <input class="form-check-input" type="checkbox" id="basic_checkbox_1">-->

                                                <!--    <label class="form-check-label" for="basic_checkbox_1">Remember me</label>-->

                                                <!--</div>-->

                                            </div>

                                            <!-- <div class="form-group">

                                                <a href="page-forgot-password.html">Forgot Password?</a>

                                            </div> -->

                                        </div>

                                        <div class="text-center">

                                            <button type="submit" class="btn btn-primary btn-block">Login</button>

                                        </div>

                                    </form>

                                   
                                    <div class="new-account mt-3">

                                        <p>Return back to <a class="text-primary"  href="https://upmspe-accreditation.com/e-system/"><b>e-system PORTAL</b></a> | <span>Not have account? Register as<a class="text-primary" href="register.php"> <b> STAFF </b></a> or <a class="text-primary" href="#" onclick="Popup();"><b>OTHERS</b></a> <br>
                                        Download <a class="text-primary"  href="../usermanual/Manual Pengguna SPE-ID v1.0_PDF.pdf"><b>User Manual</b></a></p>
                                        

                                    </div>

                                </div>

                            </div>

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </div>



    <!--**********************************

        Scripts

    ***********************************-->

    <!-- Required vendors -->

    <script src="./vendor/global/global.min.js"></script>

    <script src="./js/quixnav-init.js"></script>

    <script src="./js/custom.min.js"></script>



</body>



<script>

	$('#login-form').submit(function(e){

		e.preventDefault()

		$('#login-form button[type="button"]').attr('disabled',true).html('Logging in...');

		if($(this).find('.alert-danger').length > 0 )

			$(this).find('.alert-danger').remove();

		$.ajax({

			url:'ajax.php?action=login',

			method:'POST',

			data:$(this).serialize(),

			error:err=>{

				console.log(err)

		$('#login-form button[type="button"]').removeAttr('disabled').html('Login');



			},

			success:function(resp){

				if(resp == 1){

					location.reload('index.php');

				}
				
				else{

					$('#login-form').prepend('<div class="alert alert-danger">Username or password is incorrect.</div>')

					$('#login-form button[type="button"]').removeAttr('disabled').html('Login');

				}

			}

		})

	})

</script>

<script language="javascript">
        function Popup()
        {
            alert("Please Contact your SPE UPM IT Officer");
        }
    </script> 

</html>

Function Calls

header 1
session_start 1

Variables

None

Stats

MD5 d5f96aac5c4c79c669d1d7071f1ed19d
Eval Count 0
Decode Time 61 ms