Music add - Help With A Script


#1

Hi i need help with turn off tinymce for this script (php). Im useing phpfox but that shoudnt have eny sence, I have html on in config and tinymce installed on my site but on this site musicadd.php ( a script there u can add music videos from exaple youtube, metacafe ect… just html codes) but tinymce has hard to read the music-codes and not pasting them on the site so i need to turn tinymce off just for this page:
i think this can turn it off but i dont know where or how to paste it or if this is right?:

if ($_GET['action'] == 'music') { $tinyMCE = FALSE; }
heres the script:
[php]<?

if ( !defined(‘SECTION_MODE’) )

{

define(“PHPFOX_PROTECT”,“section_music”);

define(“PHPFOX_RUNTIME”,TRUE);

define(“PHPFOX_DIR”,"…/");

define(“PHPFOX_SCRIPT”,“music”);

if (!@include_once(PHPFOX_DIR.“phpfox_loader.php”))

{

die("Fatal Error: Cant Load ". PHPFOX_DIR .“phpfox_loader.php”);

}

if (@$GLOBALS[‘phpfox_config’][‘error_reporting’])

{

error_reporting(0);

}

}

if (isset($_POST[‘text’]))

{

if (!((((!($_POST[‘artist’] == ‘’) AND !($_POST[‘title’] == ‘’)) AND !($_POST[‘letter’] == ‘’)) AND !($_POST[‘text’] == ‘’)))) {

$FAIL2 = '

Error: Please fill out all the fields before adding your item.
';

} else {

phpfox_mysql_query(“INSERT INTO music (id,artist,title,code,letter) VALUES (’$_POST[id]’,’$_POST[artist]’,’$_POST[title]’,’$_POST[text]’,’$_POST[letter]’)”);

$FAIL2 = “Your video has just been added.”;

}

}

$a = phpfox_mysql_query(“SELECT * FROM music ORDER BY id DESC LIMIT 0,1”);

$b = mysql_fetch_array($a);

++$b[‘id’];

$DATA =<<<HTML

ADD TO MUSIC SECTION
$FAIL2
Artist:
Songs Title:
First Letter Or Number Of Artist Name: # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
HTML source code for your video:

HTML;

include(“html/template.php”);

#############################

html_main($DATA,"","");

#############################

?>[/php]
here it only should be an textbox but the php is pasting the tinymce who is really bad :(

<td class="row2"><TEXTAREA NAME="text" cols="40" rows="10"></TEXTAREA></td>