Location: PHPKode > projects > Fretsweb > fretsweb-1.2/fretsweb/admin/pagefooter.php
<?php

// Calcutale $root
if(substr(getcwd(), -7) == 'songdir')
{
	$root = dirname($_SERVER['PHP_SELF']).'/';
}
else
{
	$root = '';
}


//Happens only once, just to be sure
require_once dirname(__file__).'/common.php';

// Include language
require_once dirname(__file__)."/../lang/$language.php";

//Langstring
require_once dirname(__file__) . "/langnames.php";
$langstr = "<ul>";
$language_options = scandir(dirname(__file__).'/../lang');
foreach($language_options as $language_option)
{
	if(substr($language_option, -4) == '.php')
	{
		$langstr .= "<li><a href=\"{$_SERVER["PHP_SELF"]}?language=" . substr($language_option, 0, -4) . "\">" . $langname[substr($language_option, 0, -4)] . "</a></li>";
	}
}
$langstr .= "</ul>";

echo "
   <div id=\"footer\">
    <div class=\"menuPane\">
     <h2>{$lang['charts']}</h2>
     <ul>
      <li><a href=\"charts.php\">{$lang['home']}</a></li>";
echo "
      <li><a href=\"scores.php\">{$lang['scores']}</a></li>
      <li><a href=\"players.php\">{$lang['players']}</a></li>
      <li><a href=\"songs.php\">{$lang['songs']}</a></li>
     </ul>
    </div>
    <div class=\"menuPane\">
     <h2>{$lang['extra']}</h2>
     <ul>";
//No need to show it when it's disabled
if($feed > 0)
{
	echo "
      <li><a href=\"news.php\">{$lang['news']}</a></li>";
}
if($allowforum)
{
	echo "
      <li><a href=\"forum.php\">{$lang['forum']}</a></li>";
}
if($allowjoinrequests)
{
	echo "
      <li><a href=\"join.php\">{$lang['join']}</a></li>";
}
if($allowsongrequests)
{
	echo "
      <li><a href=\"asksong.php\">{$lang['request_song']}</a></li>";
}
echo "
      <li><a href=\"admin\">{$lang['admin_panel']}</a></li>
     </ul>
    </div>
    <div class=\"menuPane\">
     <h2>{$lang['language']}</h2>
     $langstr
    </div>
    <div class=\"menuPane\">
     <h2>{$lang['links']}</h2>
     <ul>
      <li><a href=\"http://cvs.codeyard.net/Fretsweb\">Fretsweb</a></li>
      <li><a href=\"http://fretsonfire.sourceforge.net/\">Frets on Fire</a></li>
      <li><a href=\"http://sourceforge.net/projects/fofcs\">FoFCS</a></li>
      <li><a href=\"http://sourceforge.net/project/showfiles.php?group_id=210262;package_id=256640\" title=\"{$lang["score_tools_info"]}\">Score Tools</a><li>";
if($language == 'nl')
{
	echo "
      <li><a href=\"http://codeyard.net\">CodeYard</a></li>";
}
echo "
     </ul>
    </div>
    <div class=\"menuPane\">
     FretsWeb $version {$lang['by']} Daan Sprenkels<br>dsprenkels at gmail.com
    </div>
   </div>
";

?>
Return current item: Fretsweb