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/index.php
<?php
/*##############################
  # GEHACKTE VERSIE VOOR TEST! #
  ##############################*/
  

session_start();
date_default_timezone_set('Europe/Amsterdam');
setlocale(LC_ALL, 'nl_NL');
$page = '';

require_once('includes/hack.php');


/* Wachtwoord hack*/
if (!array_key_exists('logon', $_COOKIE)) {
    echo Logon($_POST);
    }
else {
    if($_COOKIE['logon'] != 'urenregistratie' ){
        setcookie('logon', '', time() - 3600);
        unset($_POST);
        unset($_COOKIE);
        header("Location: index.php");
        }
    else {
    require_once('includes/initialise.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Urenregistratie</title>
	<style type="text/css">
	   @import "style/import.css";
	</style>
</head>
<body>
    <form name="page" method="post" action="index.php">
    <?php 
    $s  = '<dl>'."\n";
    $s .= "\t".'<dt>Header</dt>'."\n";
    $s .= "\t".'<dd id="logo">Welkom ';
    if(array_key_exists('current_user_name', $_SESSION)) {
        $s .= $_SESSION['current_user_name'];
        }
    $s .= '</dd>'."\n";
    $s .= "\t".'<dt>Hoofdmenu</dt>'."\n";
    $s .= "\t".'<dd id="hoofdmenu">'.$hoofdmenu.'</dd>'."\n";
    $s .= "\t".'<dt>Menu</dt>'."\n";
    $s .= "\t".'<dd id="submenu">'.$submenu.'</dd>'."\n";
    $s .= "\t".'<dt>Feedback</dt>'."\n";
        if(array_key_exists('feedback', $_SESSION)) {
            $s .= "\t".'<dd id="feedback">'.$_SESSION['feedback'].'</dd>'."\n";
            }
        else {
            $s .= "\t".'<dd>&nbsp;</dd>'."\n";
            }
    $s .= '</dl>'."\n";
    
    echo $s.$page; 
    
    // Empty the feedback session variable on a menu change
    if(array_key_exists('feedback', $_SESSION) and array_key_exists('action', $_GET)) {
        unset($_SESSION['feedback']);
        }
    ?>
    </form>
</body>
</html>
<?php } } ?>