Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
Victor
New Member
New Member



Joined: Feb 17, 2004
Posts: 15

PostPosted: Tue Oct 26, 2004 3:27 pm Reply with quote

I am trying to add the verse of the day and proverb of the day code to my site by creating Blocks with the HTML.

But when I do so, I getting sent to a Sentinal default page on my site that I have attempted a Scripting attack.

How can I get these to work?

I am getting them from [ Only registered users can see links on this board! Get registered or login! ]

If I turn off the script block then the Proverb html says an unknown attack

PHP-Nuke then says my HTML is bad for the verse of the day code.


Last edited by Victor on Tue Oct 26, 2004 3:29 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Oct 26, 2004 3:28 pm Reply with quote

Don't make them as HTML. Make them as a standard block and add them through the Blocks Admin menu.
 
View user's profile Send private message
Victor







PostPosted: Tue Oct 26, 2004 3:30 pm Reply with quote

That is what I am doing,

I cut and paste the HTML from the site and put it into a new block.
 
Raven







PostPosted: Tue Oct 26, 2004 3:41 pm Reply with quote

Code:
/********************************************************/

/* Proverb of the Day block (King James Version)        */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2003 by NukeScripts Network         */
/********************************************************/
/* Verse of the Day feed                                */
/* By: VerseOfTheDay.com                                */
/* http://www.verseoftheday.com                         */
/* Copyright © by VerseOfTheDay.com                     */
/********************************************************/
/* Verses                                               */
/* By: God                                              */
/* Copyright © by The Holy Bible                        */
/********************************************************/

if (eregi("block-POTD_KJV.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}
$content  = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvproverb.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}


Code:


/********************************************************/
/* Verse of the Day block (King James Version)          */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2003 by NukeScripts Network         */
/********************************************************/
/* Verse of the Day feed                                */
/* By: VerseOfTheDay.com                                */
/* http://www.verseoftheday.com                         */
/* Copyright © by VerseOfTheDay.com                     */
/********************************************************/
/* Verses                                               */
/* By: God                                              */
/* Copyright © by The Holy Bible                        */
/********************************************************/

if (eregi("block-VOTD_KJV.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}
$content  = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvverse.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}


Remove the ~ from the <s~cript> and </s~cript>
 
Victor







PostPosted: Tue Oct 26, 2004 4:17 pm Reply with quote

OK,

This just isn't working for me.

What I did is I created two index.php files. One name block-votd.php and the other block-potd.php

I put one code into each of these, uploaded them to my /blocks folder and then went into admin to add the blocks.

Here is what happened:
[ Only registered users can see links on this board! Get registered or login! ]
 
Raven







PostPosted: Tue Oct 26, 2004 4:44 pm Reply with quote

index.php files? There are no index files for blocks. You left out the openin and closing php tags <? ?>. I assumned you knew that. Sorry.
 
beetraham
Regular
Regular



Joined: Dec 13, 2003
Posts: 94
Location: Finland (EU)

PostPosted: Tue Oct 26, 2004 4:50 pm Reply with quote

Victor wrote:
OK,

This just isn't working for me.

What I did is I created two index.php files. One name block-votd.php and the other block-potd.php

I put one code into each of these, uploaded them to my /blocks folder and then went into admin to add the blocks.

Here is what happened:
[ Only registered users can see links on this board! Get registered or login! ]



Seems like you'd be missing the necessary PHP Tags

Your code now:

Code:


/********************************************************/
/* Verse of the Day block (King James Version)          */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2003 by NukeScripts Network         */
/********************************************************/
/* Verse of the Day feed                                */
/* By: VerseOfTheDay.com                                */
/* http://www.verseoftheday.com                         */
/* Copyright © by VerseOfTheDay.com                     */
/********************************************************/
/* Verses                                               */
/* By: God                                              */
/* Copyright © by The Holy Bible                        */
/********************************************************/

if (eregi("block-POTD_KJV.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}
$content  = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvproverb.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}


change it to following (with PHP TAGS "<?" and "?>" included);--->

Code:


<?
/********************************************************/
/* Verse of the Day block (King James Version)          */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2003 by NukeScripts Network         */
/********************************************************/
/* Verse of the Day feed                                */
/* By: VerseOfTheDay.com                                */
/* http://www.verseoftheday.com                         */
/* Copyright © by VerseOfTheDay.com                     */
/********************************************************/
/* Verses                                               */
/* By: God                                              */
/* Copyright © by The Holy Bible                        */
/********************************************************/

if (eregi("block-POTD_KJV.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}
$content  = "";
$content .= "<!--BEGIN VOTD CODE-->\n";
$content .= "<s~cript src='http://www.verseoftheday.com/kjvproverb.js'></s~cript>\n";
$content .= "<!--END VOTD CODE-->\n";
}
?>


BR,

-beetraham

_________________
- Let there be no windows at your home - 
View user's profile Send private message
Victor







PostPosted: Tue Oct 26, 2004 5:09 pm Reply with quote

OK,

I renamed my blocks to be block-VOTD_KJV.php and block-POTD_KJV.php as that seems to be what the code refers to.

I also added the ?> parts but I am getting this error now:

Parse error: parse error, unexpected '}' in /home/carryco/public_html/blocks/block-POTD_KJV.php on line 26

See it at:
[ Only registered users can see links on this board! Get registered or login! ]
 
beetraham







PostPosted: Tue Oct 26, 2004 6:04 pm Reply with quote

Victor wrote:
OK,

I renamed my blocks to be block-VOTD_KJV.php and block-POTD_KJV.php as that seems to be what the code refers to.

I also added the ?> parts but I am getting this error now:

Parse error: parse error, unexpected '}' in /home/carryco/public_html/blocks/block-POTD_KJV.php on line 26

See it at:
[ Only registered users can see links on this board! Get registered or login! ]


It seems that the original code that was posted by you, contained (1) pcs of excess brackets (to what was expected by a glance) - as I removed it, all's well now... please see inline a couple of proofs in action;

(the reason why I did not include written CODE, but a snaphot instead, is that you need to additionally reformulate the word s~cript, so that it is changed into what can be seen in the underbeneath screenshot - this limitation/restriction of not writing the *word along with code* herein is to avoid getting unintentionally banned by the launched "hacker trap/alert" (NukeSentinel) that Raven is effectively using in these Forums, and in the whole Site as well)

You may download the VERIFIED CODE from here : http://www.ec-clan.org/block-POTD_KJV.zip

The CODE (tested/verified, downloadable from the above link) --->

Image

In Action --->

Image
Let me know if you have any obstacles with the "other block (I assume you have another block as well)



BR,

-beetraham
 
Victor







PostPosted: Wed Oct 27, 2004 12:28 am Reply with quote

OK!

That fixed it, I have both scripts working now.

Thanks

How did you guys make that php code so fast? I have another I need made into a block.

The html code is here:
[ Only registered users can see links on this board! Get registered or login! ]

If you could work your magic again that would be great!

Thanks

Vic
 
beetraham







PostPosted: Wed Oct 27, 2004 4:13 am Reply with quote

Victor wrote:
OK!

That fixed it, I have both scripts working now.

Thanks

How did you guys make that php code so fast? I have another I need made into a block.

The html code is here:
[ Only registered users can see links on this board! Get registered or login! ]

If you could work your magic again that would be great!

Thanks

Vic


Thanks Vic, good to hear that those snippets are steadily performing.

OK, so I took a look at the code you referred and performed the necessary minor formatting in order to have it stuffed into the PHP-Nuke env.

Please find inline a link to the zip-packaged code for yours to download it - been tested and verified as seen from the underbeneath screeshot.

As the *space* that is required by this Block code (300+ pixels), you may want to instantiate the block as a *center-area-block* - (either top or bottom center) from the PHP-Nuke Admin Panel (Blocks' Section).

The packaged code is set downloadable at :

http://www.ec-clan.org/block-search_by_passage.zip

Screenshot (in Action):

Image

Thanks a lot,

BR,

-beetraham
 
Victor







PostPosted: Wed Oct 27, 2004 6:39 am Reply with quote

Man, how can I thank you, you rock! This is great. I really wanted these three up and couldn't figure it out.

I really appreciate it!

Vic
 
beetraham







PostPosted: Wed Oct 27, 2004 8:08 am Reply with quote

Victor wrote:
Man, how can I thank you, you rock! This is great. I really wanted these three up and couldn't figure it out.

I really appreciate it!

Vic


That's good news - glad to hear things have worked out just fine.

There's always someone at Ravens' to reply, so by all means do get these Forums posted in case of need for info backups in future as well.

Thanks a lot! Kind regards,

-beetraham
 
sharlein
Member Emeritus



Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Wed Oct 27, 2004 11:48 am Reply with quote

I have found a quick and easy way to create modules and blocks. On my site, left, near the bottom, you will find some usefull tools. (PHP-Nuke Tools v3.00
By Disipal)

_________________
Give Me Ambiguity Or Give Me Something Else! 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

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 ©