HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MDalebout/clupconsultants.nl/wwwroot/timesheet/includes/hack.php
<?php
function Logon($post) {
    if(array_key_exists('inlognaam',$post) and array_key_exists('ww',$post) ) {
        if($post['inlognaam'] == 'Frogs' and $post['ww'] == 'FreeFrogs4Ever') {
            setcookie("logon", 'urenregistratie');
            header("Location: index.php");
            }
        else {
            unset($_POST);
            header("Location: index.php");
            }
        }
    else {
        $s = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
        $s.= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">'."\n";
        $s.= '<head>'."\n";
	    $s.= '<meta http-equiv="content-type" content="text/html; charset=utf-8" />'."\n";
	    $s.= '<title>Urenregistratie</title>'."\n";
	    $s.= '</head>'."\n".'<body>'."\n";
	    $s.= '<form name="inloggen" method="post" action="index.php" id="inloggen">'."\n";
	    $s.= '<fieldset>'."\n";
        $s.= '<p>inlognaam:<br />'."\n";
        $s.= '<input type="text" size="20" name="inlognaam" id="inlognaam" /></p>'."\n\n";
        $s.= '<p>wachtwoord:<br />'."\n";
        $s.= '<input type="password" size="20" name="ww" id="ww" /></p>'."\n\n";
        $s.= '<p><input type="submit" value="Versturen" /></p>'."\n\n";
        $s.= '</fieldset>'."\n";
        $s.= '</form>'."\n";
        $s.= '</body></html>'."\n";
        }
    
    return $s;
    }
?>