Radim na nekom UCPu i kod admin panela kad unesem lozinku prebaci me na drugi PHP fajl koji ne postoji
if(!IsUserAdmin(ReturnUsername(), 1)) header('location: index.php');
?>
<div align="center" id="login_admin_main">
<p id="login_admin_error_report">
<form action="post" method="post">
<input type="password" name="login_admin_password" id="login_admin_password" placeholder="Lozinka" /><br /><br />
<input type="button" value="Prijava" onclick="SubmitForm(
'POST',
'submit_form.php?login_admin',
"login_admin_password=" + $('#login_admin_password').val(),
function(response)
{
$('#login_admin_error_report').html(response);
if(response == '1')
{
$('#login_admin_main').hide().remove();
$('#admin_content').slideDown(1000);
}
else if(response == '2')
{
$('#login_admin_error_report').css({
'background':'#f2bcbd',
'border':'1px solid #f00',
'padding':'5px',
'color':'white',
'text-align':'center'
}).html('Lozinka nije točna!');
}
}
)" />
</form>
submit_form.php
if(isset($_GET['login_admin']))
{
if($_POST['login_admin_password'] == 'e5r9F1NQkYRMYY636GkM')
{
echo '2';
}
else echo '1';
}