Page 1 of 1

Generic Maniacode/PHP Maniacode

Posted: 13 Dec 2011 03:32
by gabrielcf55
Hey people!

I'm making a manialink with a lot of stuff, but i lost a lot of time registering all maniacode files in my player page...

I would like to know hot to make a maniacode page with php.

My code is:

Code: Select all

<?xml version='1.0' encoding='utf-8' ?>
<maniacode noconfirmation="1">
   <name>Skin Name</name>
   <url>http://Skin URL</url>
   <file>Skin location</file>
How to transform it to a PHP file? Something like this:

Code: Select all

$parameter = $_GET['parameter'];
echo "<?xml version='1.0' encoding='utf-8' ?>";
echo " <maniacode noconfirmation="1">";
echo " <install_skin>";
echo "    <name>Airhorn</name>";
echo "    <url>" . $parameter . "</url>";
echo "    <file>Skins/Horns/Airhorn.ogg</file>";
echo " </install_skin>";
echo " </maniacode>";
Anyone can help me?