Jump to content

sportsminded

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sportsminded's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I'm hoping someone knows of a workaround to a problem logging into my admin page that my former php programmer set up for me. Phpsuexec is the reason why the following code isn't working anymore. Does anyone have a workaround to this script that will allow me to log in and take advantage of my administration area again? I will gladly donate to this site. This is my first time here. The code is as follows: <?php if (!isset($PHP_AUTH_USER)) { // If empty, send header causing dialog box to appear header('WWW-Authenticate: Basic realm="phpMyAdmin"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.'; exit; } else if (isset($PHP_AUTH_USER)) { if (($PHP_AUTH_USER != "admin") || ($PHP_AUTH_PW != "example")) { header('WWW-Authenticate: Basic realm="My Private Stuff"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.'; exit; } } Someone already told me that $PHP_AUTH_USER and $PHP_AUTH_PW won't work if the server has phpsuexec enabled. He also told me there are some workarounds. Any help would be greatly appreciated.
×
×
  • 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.