Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> AMIP Dynamic Signature, How to output the file extension?
eNforcer
post Jan 6 2009, 06:43 PM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 3-July 06
Member No.: 85



In the top left of the output file, how can I add the file extension such as MP3 or FLAC? (in uppercase also)

Edit:
Well, I'm no programmer but I have got this far:

I added this line to amipweb.conf
-d "ext=&func_ue(%ext)"

And this to Signature.php
$SONG[ext]

Just need to get it uppercase
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jan 6 2009, 07:29 PM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



use

-d "ext=$ue($uc(%ext))"

or in PHP:

$SONG[ext] = strtoupper($SONG[ext]);
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: