DannyCarlton.net Feedback Forums | register | login
phpBible.org

    Return to Page 2
Suggested Code Modification
May. 30th, 2007   11:54am

Iíve noticed a few posts such as Had to change server now the bible lookup doesnít work which reference other posts mentioning how to remove a few lines of code to make the software work.  Might I suggest making these modifications to the release version so that it will work if $register_globals is set to 1 or 0.

REPLACE the statements like these:

if(!$pb_user)
  {
  reset ($HTTP_POST_VARS);
  while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $$key=$value;
    }
  reset ($HTTP_GET_VARS);
  while (list ($key, $val) = each ($HTTP_GET_VARS))
    {
    $$key=$value;
    }
  }

WITH:

if(!ini_get(íregister_globalsí)) {
 extract($_POST);
 extract($_GET);
}

Aaron Baxter (70.61.31.18)


    Return to Page 2
This Thread

Post a Message
Name:

Subject:

Message:


page processed in 0.002366065979 seconds
Return to DannyCarlton.net main page