Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

php problem



i keep getting an error that i cannot debug.
Here is he code:

<?php
session_start();

return code();

function code() {
$user_id = $_SESSION['myusername'];
$tournament_id = $_SESSION['tournament_id'];
$game_id = $_SESSION['game_id'];
$roomNo = $_SESSION['roomNo'];
$portNo = (($roomNo - 1) * 10) + 5000;

return '

<!-- The following code is specified at the beginning of the <BODY> tag. -->
<SCRIPT LANGUAGE="_javascript_">
<!--
function closeWindow() {
window.opener = "";
window.close();
}

var _info = navigator.userAgent;
var _ns = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0
&& _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>

<COMMENT>
<SCRIPT LANGUAGE="_javascript_1.1">
<!--
function closeWindow() {
window.opener = "";
window.close();
}
var _ns = (navigator.appName.indexOf("Netscape") >= 0
&& ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0
&& java.lang.System.getProperty("os.version").indexOf("3.5") < 0)
|| _info.indexOf("Sun") > 0));
//--></SCRIPT></COMMENT>

<!-- The following code is repeated for each APPLET tag -->
<SCRIPT LANGUAGE="_javascript_">
<!--
function closeWindow() {
window.opener = "";
window.close();
}

if (_ie == true) document.write(\'
<OBJECT
classid=""
width="500" height="500" align="baseline"

codebase=""http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version">http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0">

<param name = "mayscript" value = "true">
<param name="ARCHIVE" value="client.jar,activation.jar,smtp.jar,mailapi.jar" >
<PARAM NAME="server" VALUE="98.214.38.110:' . $portNo . '" >
<PARAM NAME="bg-pic" VALUE="res/bgrounds/bg' . $_SESSION['roomNo'] . '.jpg" >
<PARAM NAME="tournamentId" VALUE="' . $tournament_id . '" >
<PARAM NAME="tournamentGameId" VALUE="' . $game_id . '" >
<PARAM NAME="user" VALUE="' . $user_id . '" >
<NOEMBED><XMP>\');

else if (_ns == true) document.write(\'
<EMBED
type="application/x-java-applet;version=1.5.0" width="100" height="100"
align="baseline" code="com.caribbeancardsonline.allfours.client.RoomClient"  ARCHIVE="client.jar","activation.jar","smtp.jar","mailapi.jar"
codebase=""http://98.214.38.110/allfours/">http://98.214.38.110/allfours/"
server="98.214.38.110:' . $portNo . '" bg-pic="res/bgrounds/bg' . $roomNo . '.jpg" user= "' . $user_id . '"
tournamentId="' . $tournament_id . '"
tournamentGameId="' . $game_id . '"
<NOEMBED><XMP>
\');
//--></SCRIPT>

<APPLET code="com.caribbeancardsonline.allfours.client.RoomClient" ARCHIVE="client.jar,activation.jar,smtp.jar,mailapi.jar"
codebase=""http://98.214.38.110/allfours/">http://98.214.38.110/allfours/" align="baseline"
WIDTH=500 HEIGHT=500>

</XMP>

<param name = "mayscript" value = "true">
<PARAM NAME="java_code" VALUE="com.caribbeancardsonline.allfours.client.RoomClient">
<PARAM NAME="java_type" VALUE="application/x-java-applet;version=1.5.0">
<PARAM NAME="server" VALUE="98.214.38.110:' . $portNo . '">
<PARAM NAME="bg-pic" VALUE="res/bgrounds/bg' . $roomNo . '.jpg">
<PARAM NAME="tournamentId" VALUE="' . $tournament_id . '" >
<PARAM NAME="tournamentGameId" VALUE="' . $game_id . '" >
<PARAM NAME="user" VALUE="' . $user_id . '">
<PARAM name="autostart" value="true">
<PARAM NAME="scriptable" VALUE="true">
No Java 2 SDK, Standard Edition v 1.5 support for APPLET!!
</APPLET></NOEMBED></EMBED></OBJECT>

<!--
<APPLET CODE="com.caribbeancardsonline.allfours.client.RoomClient" ARCHIVE="client.jar,activation.jar,smtp.jar,mailapi.jar"
<PARAM NAME="server" VALUE="98.214.38.110:' . $portNo . '">
<PARAM NAME="bg-pic" VALUE="res/bgrounds/bg' . $roomNo . '.jpg">
<PARAM NAME="tournamentId" VALUE="' . $tournament_id . '" />
<PARAM NAME="tournamentGameId" VALUE="' . $game_id . '" />
<PARAM NAME="user" VALUE="' . $user_id . '">
<PARAM name="autostart" value="true">
No Java 2 SDK, Standard Edition v 1.5 support for APPLET!!
</APPLET>
-->
';
}

?>


--Adrian Bartholomew
2550 S. 36th St.
Quincy, IL
(913) 660-6918
"I love writing 'cause I hate reading" - Laken

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.