HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/p/u/epubdjye/www17/old/templates/siteground106/menu.php
<div id="topnavi">
	<ul>
	<?php
		$item_id = mysql_escape_string( $_GET['Itemid'] );
		$qry = "SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' and parent='0' AND access<='$gid' AND sublevel='0' AND published='1' ORDER BY ordering LIMIT 4";
		$database->setQuery($qry);
		$rows = $database->loadObjectList();
		foreach($rows as $row) {
			$row->link = str_replace('&', '&amp;', $row->link);
			echo "<li><a href='$row->link&amp;Itemid=$row->id' ".( $row->id == $item_id ? "class='current'" : "" )." ><span>$row->name</span></a></li>";
		}
	?>			
	</ul>
</div>