Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
phs2004
New Member
New Member


Joined: Apr 01, 2006
Posts: 10

PostPosted: Tue Apr 04, 2006 7:49 am Reply with quote

Hi I have been testing some Iframe modules now but cant find the right code to make it work.

Tested one from this site dont work from some forum post. I want to show a url in ifram from a subdomain like Only registered users can see links on this board! Get registered or login! in nuke and only show left side and not the right side

Hope u know what I mean

Tanks
 
View user's profile Send private message
phs2004
PostPosted: Tue Apr 04, 2006 8:40 am Reply with quote

Ok.. It works if I go the long way around it like this but i dont know if its safe.

I want to show Only registered users can see links on this board! Get registered or login! in a Iframe in nuke


Code:
<?php

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: ../../index.php");
    die();
}

$index = 1; // 0 right side off
$height = 1100;
$iframescreen = 'www.roninofsweden.se/********/wow.php'; // Must be Only registered users can see links on this board! Get registered or login!

$iframe = "<iframe frameborder=\"0\" src=\"http://$iframescreen\" width=\"100%\" height=\"$height\">
</iframe>";
      include("header.php");
         echo "$iframe";
?>


But this only works whit www i have to use Only registered users can see links on this board! Get registered or login! Then i have to make a nother php file whit a direkt like this

Code:
<?php header("Location: http://dkp.roninofsweden.se/index.htm"); ?>


And now to the question is this way safe for hackers and stuff?
 
phs2004
PostPosted: Tue Apr 04, 2006 9:12 am Reply with quote

Oki I think Im done now Very Happy

Code:
<?php

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));


$index = 1; // 0 right side off
$iframescreen = 'www.rsj.roninofsweden.se/index.php'; // Must be Only registered users can see links on this board! Get registered or login!

$iframe = "<iframe frameborder=\"0\" src=\"http://$iframescreen\" width=\"100%\" height=\"100%\">
</iframe>";
      include("header.php");
         echo "$iframe";
?>


Pleas say if this is no god and if its some bad code for hackers and stuff
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Apr 04, 2006 10:48 am Reply with quote

I don't see any issues with it, other than its missing the closing footer
Code:


include("footer.php");

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
phs2004
PostPosted: Tue Apr 04, 2006 11:00 am Reply with quote

ahh ok I see tanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

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 ©