🚀 Release: CorePlan v1.0.3 Community Edition

This commit is contained in:
root
2026-08-27 11:42:11 +02:00
parent 6d2345041d
commit 37d356b09e
2 changed files with 4 additions and 4 deletions
-1
View File
@@ -23,7 +23,6 @@ function handleGetProjects() {
$role = $_SESSION['role'] ?? 'user'; $role = $_SESSION['role'] ?? 'user';
$userId = $_SESSION['user_id']; $userId = $_SESSION['user_id'];
// BUGFIX: Normale User sehen nur Projekte, die ihnen zugewiesen sind!
if ($role === 'admin' || $role === 'pm') { if ($role === 'admin' || $role === 'pm') {
$stmt = $pdo->query(" $stmt = $pdo->query("
SELECT p.*, u.username as assigned_username, SELECT p.*, u.username as assigned_username,
+4 -3
View File
@@ -1,11 +1,12 @@
<?php <?php
// /var/www/html/router.php
$request = $_SERVER['REQUEST_URI']; $path = parse_url($request, PHP_URL_PATH); $method = $_SERVER['REQUEST_METHOD']; $request = $_SERVER['REQUEST_URI']; $path = parse_url($request, PHP_URL_PATH); $method = $_SERVER['REQUEST_METHOD'];
if ($path === '/' || $path === '') { header('Content-Type: text/html'); readfile('app.html'); exit; if ($path === '/' || $path === '') { header('Content-Type: text/html'); readfile('app.html'); exit;
} elseif ($path === '/api/login' && $method === 'POST') { handleLogin(); } elseif ($path === '/api/login' && $method === 'POST') { handleLogin();
} elseif ($path === '/api/logout') { handleLogout(); } elseif ($path === '/api/logout') { handleLogout();
} elseif ($path === '/api/password/forgot' && $method === 'POST') { handleForgotPassword(); // NEU } elseif ($path === '/api/password/forgot' && $method === 'POST') { handleForgotPassword();
} elseif ($path === '/api/password/reset' && $method === 'POST') { handleResetPassword(); // NEU } elseif ($path === '/api/password/reset' && $method === 'POST') { handleResetPassword();
} elseif ($path === '/api/status' && $method === 'GET') { echo json_encode(['success' => true, 'status' => 'online', 'system' => 'CorePlan']); } elseif ($path === '/api/status' && $method === 'GET') { echo json_encode(['success' => true, 'status' => 'online', 'system' => 'CorePlan']);
} elseif ($path === '/api/logs' && $method === 'GET') { handleGetLogs(); } elseif ($path === '/api/logs' && $method === 'GET') { handleGetLogs();
} elseif ($path === '/api/settings' && $method === 'GET') { handleGetSettings(); } elseif ($path === '/api/settings' && $method === 'GET') { handleGetSettings();
@@ -25,7 +26,7 @@ if ($path === '/' || $path === '') { header('Content-Type: text/html'); readfile
} elseif ($path === '/api/projects/extend' && $method === 'POST') { handleExtendProject(); } elseif ($path === '/api/projects/extend' && $method === 'POST') { handleExtendProject();
} elseif ($path === '/api/projects/assign' && $method === 'POST') { handleAssignProject(); } elseif ($path === '/api/projects/assign' && $method === 'POST') { handleAssignProject();
} elseif ($path === '/api/projects/delete' && $method === 'POST') { handleDeleteProject(); } elseif ($path === '/api/projects/delete' && $method === 'POST') { handleDeleteProject();
} elseif ($path === '/api/projects/report' && $method === 'GET') { handleGetProjectReport(); // NEU } elseif ($path === '/api/projects/report' && $method === 'GET') { handleGetProjectReport(); // NEU: Der Report Button Endpunkt
} elseif ($path === '/api/tasks' && $method === 'GET') { handleGetTasks(); } elseif ($path === '/api/tasks' && $method === 'GET') { handleGetTasks();
} elseif ($path === '/api/tasks/create' && $method === 'POST') { handleCreateTask(); } elseif ($path === '/api/tasks/create' && $method === 'POST') { handleCreateTask();
} elseif ($path === '/api/tasks/toggle' && $method === 'POST') { handleToggleTask(); } elseif ($path === '/api/tasks/toggle' && $method === 'POST') { handleToggleTask();