33 lines
1.6 KiB
PHP
33 lines
1.6 KiB
PHP
<?php
|
|
/*
|
|
this script is called by the swf files every X seconds to obtain a message to show in the chat
|
|
X is controlled trough the rotatingMessageTime option in avc_settings.xxx
|
|
the path to this script is specified trough the rotatingMessageUrl option in avc_settings.xxx
|
|
the message returned by this script can contain the following HTML tags:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html
|
|
1 variable is sent to this file via GET/query string:
|
|
the count variable is a number that contains the number of times the chat/user logged in the chat has executed this script, the 1st value is 1
|
|
*/
|
|
|
|
$count = $_GET["count"];
|
|
|
|
switch ($count%6) {
|
|
case 1:
|
|
echo "<font color='#999999' face='Tahoma' size='11' ><b>AVChat starts at $130 and can be purchased from http://avchat.net/buy-now</b></font>";
|
|
break;
|
|
case 2:
|
|
echo "<font color='#999999' face='Tahoma' size='11' ><b>If you have questions, post them in the forum http://avchathq.com/forum or email us at contact@avchathq.com .</b></font>";
|
|
break;
|
|
case 3:
|
|
echo "<font color='#999999' face='Tahoma' size='11' >There's a <b>[Room]</b> button at the top. Click it to see a list of available rooms.</font>";
|
|
break;
|
|
case 4:
|
|
echo "<font color='#999999' face='Tahoma' size='11' ><b>This is a public chat, please behave or you will be banned!</b></font>";
|
|
break;
|
|
case 5:
|
|
echo "<font color='#999999' face='Tahoma' size='11' >You can private chat with someone by clicking them in the list to the left.</font>";
|
|
break;
|
|
case 0:
|
|
echo "<font color='#999999' face='Tahoma' size='11' ><b>Use the users list to the left to see who's online in the room.</b></font>";
|
|
break;
|
|
}
|
|
?>
|