Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-04-2006, 04:27 PM   #1
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
PHP guys?

Alright.. I'm sure you guys have all seen scripts where all navigation is controlled through index.php

ex:
index.php?mode=register would get the person of to register.php

Well, I'm trying to get a script installed, everything seems to be working fine.. except.. none of the links work. All of the navigational links work through index.php like mentioned above, but every single one just brings me back to the index.php main homepage.

any suggestions?
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-04-2006, 04:38 PM   #2
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
bump5678
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-04-2006, 04:42 PM   #3
Apache_A
Confirmed User
 
Join Date: May 2004
Posts: 434
I wouldn't be suprised if it was a sessions issue. but I couldn't really be able to tell without knowing or seeing the script
__________________
ICQ:2116226
Apache_A is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-04-2006, 04:43 PM   #4
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
prolly just register globals.. older versions of PHP had register globals on as standard.. newer versions don't.

which means:
when the script is trying the get the "mode" variable it is probably just calling $mode, when it should be calling $_GET["mode"] - which in turn means that it gets an empty $mode variable and just defaults to the main page
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-04-2006, 06:28 PM   #5
CaptainHowdy
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,575
Quote:
Originally Posted by mortenb
prolly just register globals.. older versions of PHP had register globals on as standard.. newer versions don't.

which means:
when the script is trying the get the "mode" variable it is probably just calling $mode, when it should be calling $_GET["mode"] - which in turn means that it gets an empty $mode variable and just defaults to the main page
You rocked that shit, man...
CaptainHowdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-04-2006, 06:37 PM   #6
CyberHustler
Masterbaiter
 
Industry Role:
Join Date: Feb 2006
Posts: 26,189
Quote:
Originally Posted by mortenb
prolly just register globals.. older versions of PHP had register globals on as standard.. newer versions don't.

which means:
when the script is trying the get the "mode" variable it is probably just calling $mode, when it should be calling $_GET["mode"] - which in turn means that it gets an empty $mode variable and just defaults to the main page

WOA.. I NEED SOME PHP CLASSES AND SHIT
CyberHustler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-04-2006, 06:37 PM   #7
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
was I right?
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-04-2006, 07:01 PM   #8
AdultEUhost
ORLY?
 
AdultEUhost's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
open php.ini, searh for register_globals and change Off into On and you are all set
__________________
ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014
AdultEUhost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 04:21 PM   #9
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
Quote:
Originally Posted by mortenb
prolly just register globals.. older versions of PHP had register globals on as standard.. newer versions don't.
Quote:
Originally Posted by AdultEUhost
open php.ini, searh for register_globals and change Off into On and you are all set

Sorry it took so long to reply (I know at least 1 of you guys were wondering). I just checked my phpinfo and I did see this..
register_globals Off Off
This particular server is a VPS, and I've got no idea hot to SSH or get into php.ini, so I emailed me host and asked them to change it for me. I'll post back if that fixed it.
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 05:02 PM   #10
citizen tower
Confirmed User
 
Join Date: Apr 2005
Posts: 238
Quote:
Originally Posted by AdultEUhost
open php.ini, searh for register_globals and change Off into On and you are all set
opens the potential exploit, however
citizen tower is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 05:17 PM   #11
jrap
Confirmed User
 
Join Date: Feb 2005
Location: Toledo, Ohio
Posts: 448
I would suggest keeping register_globals off, and edit the script.
jrap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 07:40 PM   #12
micker
Confirmed User
 
Join Date: Nov 2005
Location: Metro Detroit
Posts: 748
Quote:
Originally Posted by AdultEUhost
open php.ini, searh for register_globals and change Off into On and you are all set
are you trying to get the poor guy hacked or something?
micker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 08:10 PM   #13
nofx
Too lazy to set a custom title
 
Join Date: Nov 2002
Location: Virgin Mary's womb
Posts: 16,826
brizzad is a jew
__________________

Often times I wonder why
There's love and hate, theres live or die.
When sickness comes I must decide:
When feelings go, theres suicide.
nofx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 08:18 PM   #14
ddfGandalf
Confirmed User
 
Join Date: Feb 2005
Location: Budapest, Hungary
Posts: 534
well...

I might be wrong, or didnt understand your problem, btut:

index.php?mode=register

that assumes that you'll handle that GET variable inside the php.
So....

if($_GET['mode'] hahahaha "register") {
header("location: youraddress/register.php
}

or if($_GET['mode']) {

[from here you can go either by testing every condition by if, or case)

if($_GET['mode'] hahahaha "register") header() // see above

or
$whatever = $_GET['mode'];

switch($whatever) {

case "register":
header()../see above
break;
case "whatever"...


and so on...

hope that helped a bit
__________________
ddfGandalf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 08:19 PM   #15
pornpf69
Too lazy to set a custom title
 
pornpf69's Avatar
 
Join Date: Jun 2004
Location: Brasil
Posts: 15,778
what script are you using?
pornpf69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2006, 08:19 PM   #16
ddfGandalf
Confirmed User
 
Join Date: Feb 2005
Location: Budapest, Hungary
Posts: 534
hahaha is = =, and change header("location: youraddress/register.php to header("location: youraddress/register.php");
__________________
ddfGandalf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.