Location: PHPKode > projects > PHPEcho CMS > blocks/navigation/index.php
<?php
/*  +--------------------------------------------
*   |
*   |     Product:       PHPEchoCMS
*   |     Author:        Tigran Abrahamyan
*   |     License:       GPL
*   |     Last updated:  28.03.07
*   |     For version:   2.0  
*   |     Desc:          Site navigation block
*   |        
*   +--------------------------------------------
*/

if( !@$BASE_LOAD )
{
    die('Application error.');
}

$mlang2 = $core->getlang("navigation");

$menu_links = query ("SELECT * FROM ".PREFIX."modules WHERE `show_menu` = 1 and `status`='ON'", 1);

$block_display_name = $lang['008'];
$block_content = "";

while ($menu_link = mysql_fetch_array ($menu_links) )
{
     $block_content .= "<a href='index.php?module=".$menu_link['name']."'>".$mlang2[$menu_link['id']]."</a><br>";
}
?>
Return current item: PHPEcho CMS