Files
TravianZ/Templates/Notice/9.tpl
T
novgorodschi catalin 9084350e01 Fix and Notice
Fix and Notice
2026-08-05 12:03:09 +03:00

36 lines
1.9 KiB
Smarty

<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename : 9.tpl ##
## Type : Report Loader - Archived Report Dispatcher ##
## --------------------------------------------------------------------------- ##
## Developed by : Shadow ##
## --------------------------------------------------------------------------- ##
## Contact : cata7007@gmail.com ##
## Project : TravianZ ##
## URLs: : https://travianz.org ##
## GitHub : https://github.com/Shadowss/TravianZ ##
## --------------------------------------------------------------------------- ##
## License : TravianZ Project ##
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
## --------------------------------------------------------------------------- ##
#################################################################################
// ======================== SAFE INPUT ========================
$id = isset($_GET['id']) ? (int)$_GET['id'] : 0;
// If no valid ID, stop safely (prevents warnings / injection edge cases)
if ($id <= 0) {
return;
}
// ======================== GET TEMPLATE ========================
// NOTE: archive field defines which tpl file is loaded
$template = $database->getNotice2($id, 'archive');
// Safety: ensure valid string before include
if (!empty($template)) {
include($template . ".tpl");
}