Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
sinnersacolyte
New Member
New Member



Joined: Jan 15, 2004
Posts: 3

PostPosted: Wed Feb 11, 2004 1:00 pm Reply with quote

hi! i'm the webmaster and leader for a call of duty clan Sinners <)SS(> Saints (sinnersclan.com). we want to put up a block that reflects our game server's status. i've found a place that will watch the server and generate queries and such, but i can't get php to save my html. it will record and save normal html, but if i put in a tag starting with <SCRIPT LANGUAGE it won't save and it reverts the block back to when it had "safe" html. does nuke not support scripting? i don't get it. oh, btw, the place with the game server status monitor is serverspy.net. and here is the code i'm trying to use (with spaces).

< SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=45715">
</SCRIPT >

that should do it.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Feb 11, 2004 1:39 pm Reply with quote

Code:
<?

$content = <<< _JS_
< SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=45715">
</SCRIPT >
_JS_;
?>
Make sure there are no spaces after the _JS_ and _JS_; tags.

See this article for more help [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
sinnersacolyte







PostPosted: Wed Feb 11, 2004 4:16 pm Reply with quote

ok, so i just took out the spaces from that code above after the _JS_ and _JS_; but still no luck. i took out the spaces from the < SCRIPT> and < /SCRIPT> tags too. am i missing something else?
 
Raven







PostPosted: Wed Feb 11, 2004 4:49 pm Reply with quote

Have you saved this to blocks/block-Game_Server.php and activated the block?
Code:
<?

if (eregi("block-Game_Server.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
$content = <<< _JS_
<SCRIPT LANGUAGE="JavaScript" SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=45715">
</SCRIPT >
_JS_;
?>
Note that the name is not important, but the structure of the name is. I tested this and it works.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©