PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
sinnersacolyte
New Member
New Member


Joined: Jan 15, 2004
Posts: 3

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

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: 16987
Location: Kansas

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

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 to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sinnersacolyte
New Member
New Member


Joined: Jan 15, 2004
Posts: 3

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

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?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum