Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other
Author Message
xXRaZoRXx
New Member
New Member


Joined: Mar 18, 2005
Posts: 11

PostPosted: Mon Jun 20, 2005 9:52 pm Reply with quote

Is ther any way I can embed a website to load inside of my site like a content page of module?


Thanks
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Tue Jun 21, 2005 12:21 am Reply with quote

Try something like this. This does require that your php.ini file has allow_url_fopen = On . Try it and if it works then you're ok Smile. Save this as modules/YOUR_MODULE/index.php and activate through the acp. You may have different code as your first line ( if ( !defined('MODULE_FILE') ) ) depending on what version and patch level you are at.
Code:
<?

if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
@get_lang($module_name);
include ('header.php');
OpenTable();
echo file_get_contents('http://yahoo.com');
CloseTable;
include('footer.php');
die();
?>
 
View user's profile Send private message
xXRaZoRXx
PostPosted: Tue Jun 21, 2005 1:10 pm Reply with quote

Cant seem to locate the allow_url_fopen = On in my php.ini file.
 
xXRaZoRXx
PostPosted: Tue Jun 21, 2005 2:44 pm Reply with quote

Nvm. I got a good working file from the fellas at nukecops. Thanks!
 
Raven
PostPosted: Tue Jun 21, 2005 5:54 pm Reply with quote

xXRaZoRXx wrote:
Nvm. I got a good working file from the fellas at nukecops. Thanks!
Guess I don't understand. That code above works flawlessly.
 
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

PostPosted: Sun Jun 26, 2005 7:27 am Reply with quote

interesting Smack xXRaZoRXx
Quote:
Nvm. I got a good working file from the fellas at nukecops. Thanks!

_________________
Themes BB Skins Only registered users can see links on this board! Get registered or login!
Graphic Tees Only registered users can see links on this board! Get registered or login!
Paranormal Tees Only registered users can see links on this board! Get registered or login!
Ghost Stories & More Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other

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 ©