'success',
'message' => 'PHP backend reageert naar behoren.',
'timestamp' => date('d-m-Y H:i:s'),
'php_version' => PHP_VERSION,
'memory_usage' => round(memory_get_usage() / (1024 * 1024), 2) . ' MB',
'server_software' => $_SERVER['SERVER_SOFTWARE'] ?? 'Webserver',
'ip' => $_SERVER['REMOTE_ADDR'] ?? 'Onbekend'
]);
exit;
}
date_default_timezone_set('Europe/Amsterdam');
$serverTime = date('d-m-Y H:i:s');
$phpVersion = PHP_VERSION;
$serverSoftware = $_SERVER['SERVER_SOFTWARE'] ?? 'Apache / Nginx';
$host = $_SERVER['HTTP_HOST'] ?? 'server.webenpcstudio.nl';
$clientIp = $_SERVER['REMOTE_ADDR'] ?? 'Onbekend';
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'HTTPS' : 'HTTP';
$loggedUser = $_SESSION['wpc_user_email'] ?? 'niek.rabelink@gmail.com';
// Git repository inspectie (met veilige fallback)
$activeBranch = 'dev';
$commits = [];
if (function_exists('shell_exec')) {
$branchOutput = @shell_exec('git rev-parse --abbrev-ref HEAD 2>&1');
if ($branchOutput && strpos($branchOutput, 'fatal:') === false) {
$activeBranch = trim($branchOutput);
}
$logOutput = @shell_exec('git log -n 5 --pretty=format:"%h|%an|%ad|%s" --date=format:"%d-%m-%Y %H:%M" 2>&1');
if ($logOutput && strpos($logOutput, 'fatal:') === false) {
$lines = explode("\n", trim($logOutput));
foreach ($lines as $line) {
$parts = explode('|', $line, 4);
if (count($parts) === 4) {
$commits[] = [
'hash' => htmlspecialchars($parts[0]),
'author' => htmlspecialchars($parts[1]),
'date' => htmlspecialchars($parts[2]),
'msg' => htmlspecialchars($parts[3])
];
}
}
}
}
// Fallback commits bij afgeschermde shell_exec
if (empty($commits)) {
$commits = [
['hash' => '4400bc2', 'author' => 'Niek Rabelink', 'date' => '07-09-2026 13:04', 'msg' => 'Add a new line at the end of style.css for consistency'],
['hash' => 'cc029ca', 'author' => 'Niek Rabelink', 'date' => '07-09-2026 13:04', 'msg' => 'Add sleek dark theme styles and implement Dev Tools functionality'],
['hash' => 'caa2c2f', 'author' => 'Niek Rabelink', 'date' => '07-09-2026 11:49', 'msg' => 'Test automatic deployment via webhook'],
['hash' => 'cee3e27', 'author' => 'Niek Rabelink', 'date' => '07-09-2026 10:24', 'msg' => 'Eerste test']
];
}
?>
Web & PC Studio - Systeem Dashboard
Actieve server-parameters gedetecteerd door de PHP runtime engine.
| Host Domein: |
= htmlspecialchars($host); ?> |
| Verbindingsprotocol: |
= htmlspecialchars($protocol); ?> |
| PHP Engine: |
v= htmlspecialchars($phpVersion); ?> |
| Webserver Software: |
= htmlspecialchars($serverSoftware); ?> |
| Client IP: |
= htmlspecialchars($clientIp); ?> |
Status van de gekoppelde Git repository en automatische webhook updates.
| Git Server: |
git.webenpcstudio.nl |
| Repository: |
NiekRabelink/Testdrive |
| Actieve Branch: |
= htmlspecialchars($activeBranch); ?> |
| Deploy Type: |
Automatische Webhook Push |
| Testdrive Status: |
Gereed & Gesynchroniseerd |
Overzicht van de meest recente commits die naar deze webserver zijn gepusht via Git.
= $commit['hash']; ?>
= $commit['date']; ?>
= $commit['msg']; ?>
Auteur: = $commit['author']; ?>
Server Tijd (PHP)
= htmlspecialchars($serverTime); ?>
Browser Tijd (JS)
--:--:--