I am trying to create a new module for php-nuke. Any ideas what I am doing wrong?
I keep getting this error:
Parse error: parse error, expecting ','' or';'' in /home/gnaunite/public_html/modules/NWC_Music/index.php on line 29
<?php
if(!isset($mainfile)) { include("mainfile.php"); }
// Change this to the base url of your site
$baseurl = "http://www.gnaunited.com";
$index=0;
function Index() {
include("header.php");
OpenTable();
include("header.php");
OpenTable();
returnlink();
echo "<center><embed src=http://www.gnaunited.com/nwc/moonlight.nwc align=baseline border=2 hspace=5 vspace=5 width=100% height=430 autostart=true type=application/x-nwc></embed>
</embed>
</object></center>";
CloseTable();
include("footer.php");
}
switch($func) {
switch($func) {
default:
Index();
break;
}
?>