Current location: Hot Scripts Forums » Programming Languages » PHP » Frame detect script


Frame detect script

Reply
  #1 (permalink)  
Old 09-20-04, 01:39 PM
dihan dihan is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Frame detect script

Hi Guys,

I found this great frame detect site and wanted to know how its done with php. any idea?

http://www.2advanced.net/index.php?c...0896#post40896
Reply With Quote
  #2 (permalink)  
Old 09-20-04, 03:52 PM
bizzar528's Avatar
bizzar528 bizzar528 is offline
Community Liaison
 
Join Date: Sep 2004
Location: Pennsylvania, US
Posts: 1,550
Thanks: 2
Thanked 16 Times in 15 Posts
The php detects the referring site (env variable) and displays it in the content window of the frameset.

http://www.2advanced.net/index.php?c...www.google.com

Anything after the ?content= variable will come up.
Reply With Quote
  #3 (permalink)  
Old 09-20-04, 07:33 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
this looks better

http://www.2advanced.net/index.php?c...initylimit.com

lol (shameless I know).
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Reply With Quote
  #4 (permalink)  
Old 09-22-04, 03:35 AM
dihan dihan is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, I have got one in perl but wanted to put this in with the php page, make a bit neater.

Can someone start me off with the php script.

Code:
# The title of your page to be displayed
$title = "SelectGuestlist.com | Guestlist service to exclusive nightclubs in London";

# The address of the side frame
$sidepage = "http://www.selectguestlist.com/index/header.htm";
$sidepageright = "http://www.selectguestlist.com/index/right.htm";
$sidepageleft = "http://www.selectguestlist.com/index/left.htm";

#Gets the page from the query string
if ($ENV{'QUERY_STRING'} ne '') {
	$command = "$ENV{'QUERY_STRING'}";
}

if ($command) {
 $place = $command;
} else {
 $place = "$default";
}

##############################################################################
# By default the script makes two frames, split vertically, 155 from the left.
# You should easily be able to edit this to fit your needs

   print "Content-Type: text/html\n\n";
   print <<EOT;

<HTML><HEAD>
<TITLE>$title</TITLE></HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	
<frameset rows="*" cols="*,742,*" framespacing="0" frameborder="no" border="0">
 <frame src="$sidepageleft" name="left" frameborder="no" scrolling="no" noresize marginwidth="0" id="left">
    <frameset rows="180,*" cols="*" framespacing="0" frameborder="no" border="0">
    <frame src="$sidepage" name="header" frameborder="no" scrolling="no" noresize marginwidth="0" marginheight="0" id="header">
    <frame src="$place" name="content" frameborder="no" noresize marginwidth="0" marginheight="0" id="content">
 </frameset>
  <frame src="$sidepageright" name="right" frameborder="no" scrolling="no" noresize marginwidth="0" marginheight="0" id="right">
</frameset>

EOT
Reply With Quote
  #5 (permalink)  
Old 10-02-04, 06:34 PM
dihan dihan is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
bump .. Anyone can help me with this?
Reply With Quote
  #6 (permalink)  
Old 02-26-05, 09:07 AM
dihan dihan is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Help!!!

Anyone can translate this perl into PHP??? Pleaseeeeeeeeeeeee
Reply With Quote
  #7 (permalink)  
Old 02-26-05, 11:50 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
looked at virtual() ? http://www.php.net/virtual
it parses perl scripts within php...
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #8 (permalink)  
Old 03-01-05, 07:06 AM
dihan dihan is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
I worked it out. Just have to have a little javaScript
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
security concerns new purchased script Ron_Long_Beach PHP 3 09-23-04 01:45 AM
Suggestion: Remove the frame when you visit an Script Site elviejo Hot Scripts Forum Questions, Suggestions and Feedback 5 09-06-04 12:39 PM
New Script bmfdx12 General Advertisements 0 08-22-04 11:07 PM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
cgi or php script to detect dead links and images impatientskydiver PHP 0 07-15-04 06:49 PM


All times are GMT -5. The time now is 04:30 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.