TM-FORUM

The TrackMania universal forum ^_^
It is currently Sat Nov 01, 2014 6:55 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Generic Maniacode/PHP Maniacode
PostPosted: Tue Dec 13, 2011 6:32 am 
Offline
highway camper
highway camper

Joined: Thu Aug 04, 2011 2:58 am
Posts: 1
Owned TM-games: TMU
Manialink(s): Destyno
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:
<?xml version='1.0' encoding='utf-8' ?>
<maniacode noconfirmation="1">
<install_skin>
   <name>Skin Name</name>
   <url>http://Skin URL</url>
   <file>Skin location</file>
</install_skin>
</maniacode>

How to transform it to a PHP file? Something like this:
Code:
<?php
$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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group