requireAuth(); $publication = new Publication(); $user = $auth->getUser(); // Translation system is auto-initialized when translation.php is included // Handle actions $action = $_GET['action'] ?? ''; $message = ''; if ($action === 'delete' && isset($_GET['id'])) { $id = (int)$_GET['id']; try { $publication->delete($id); $message = t('admin_publication_deleted_success'); } catch (Exception $e) { $message = t('admin_publication_deleted_error') . ' ' . $e->getMessage(); } } // Get statistics $stats = $publication->getStats(); // Get recent publications $recentPublications = $publication->getAll('all', 10); ?> <?php echo t('admin_dashboard_title'); ?> - <?php echo SITE_TITLE; ?>