2026-02-17 14:56:23 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$query = "SELECT * FROM image_header WHERE id = '" . $sitepart_id . "' LIMIT 1";
|
|
|
|
|
$result = @mysqli_query($GLOBALS['mysql_con'], $query);
|
2026-05-11 08:54:44 +02:00
|
|
|
|
2026-02-17 14:56:23 +01:00
|
|
|
if (@mysqli_num_rows($result) == 1) {
|
|
|
|
|
$image = @mysqli_fetch_array($result);
|
2026-05-11 08:54:44 +02:00
|
|
|
|
|
|
|
|
// Use module path for intranet images
|
|
|
|
|
if (!empty($image["content"]) && strpos($image["content"], 'intranet') !== false) {
|
|
|
|
|
$imagePath = '/module/' . ltrim($image["content"], '/');
|
|
|
|
|
} else {
|
|
|
|
|
$imagePath = '/userdata/' . ltrim($image["content"], '/');
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-17 14:56:23 +01:00
|
|
|
echo "\n<div class=\"imgcontent\">\n";
|
2026-05-11 08:54:44 +02:00
|
|
|
echo "<img loading='lazy' src='" . $imagePath . "'>";
|
2026-02-17 14:56:23 +01:00
|
|
|
echo "</div>\n";
|
2026-05-11 08:54:44 +02:00
|
|
|
}
|
|
|
|
|
?>
|