Jump to content

Modify every single page?!


MrXander

Recommended Posts

Hi Guys,

 

Might be a simple question, but I just downloaded a PHP script that I want to modify slightly, only problem is, I have been through 5 pages (out of about 150) adding the lines, such as $p = $_GET['p'];, as it's not picking it up. Is there anyway round it?

 

Thanks

Link to comment
Share on other sites

No, unfortunately.

 

There may be one line the same on each page, for the navigation, setting $p = $_GET['p'], for example.

The unfortunate thing is, there is forms and submit buttons, so I will also have to go through and define, for example, $submit = $_POST['submit'].

 

Is there not something I can enable on my server to get around this?

Link to comment
Share on other sites

You found a script that is dependent on register globals. Register globals were turned off by default 7 years ago and have been completely removed in php6. Your choice is to fix every file or find a more up to date script that is not dependent on register globals.

 

You will also need to find and fix session problems if the script is using session_register(), session_is_registered(), and session_unregister() and any variables like $PHP_SELF that should be their corresponding $_SERVER variable.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.