Added support for Streamdeck Pedal and updated UI to better fit the Packed UI style
This commit is contained in:
20
pirp/public/journal_euer.php
Normal file
20
pirp/public/journal_euer.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
// Redirect to new unified EÜR page
|
||||
require_once __DIR__ . '/../src/config.php';
|
||||
require_once __DIR__ . '/../src/journal_functions.php';
|
||||
|
||||
// Get year from year_id parameter for backwards compatibility
|
||||
$year = date('Y');
|
||||
if (isset($_GET['year_id'])) {
|
||||
$year_id = (int)$_GET['year_id'];
|
||||
$years = get_journal_years();
|
||||
foreach ($years as $y) {
|
||||
if ($y['id'] == $year_id) {
|
||||
$year = (int)$y['year'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header('Location: ' . url_for('euer.php?year=' . $year));
|
||||
exit;
|
||||
Reference in New Issue
Block a user