Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.

How to indicate when you are one air

From SpacialAudio

Jump to: navigation, search

Requirements

PHP 4+ PAL Scripting First excuse me for my english, I'm not really good in that but I want to help the community !!

PAL Scripts

var P : TPlayer;
var FileSave : String;
PAL.Loop := True;
P := ActivePlayer;
FileSave := \'C:\\Directory\\test.txt\';
if P<>nil then
begin
 SavestringTofile(FileSave, \'0;\');
end;
if P=nil then
begin
 SavestringTofile(FileSave, \'1;\');
end;


Now you need to just recover the variable \"0;\" or \"1;\" like that :

$data = file_get_contents(\"C:\\Directory\\test.txt\");
if ($data <> \"0;\"){
 echo \"On Air\";
}


And you can edit another text file to put your name and call that text file when you are on air !!

$data = file_get_contents(\"C:\\Directory\\test.txt\");
$name = file_get_contents(\"C:\\Directory\\name.txt\");
if ($data <> \"0;\"){
 echo $name;
}
Personal tools