stephenfewer / grinder

Grinder is a system to automate the fuzzing of web browsers and the management of a large number of crashes.
BSD 3-Clause "New" or "Revised" License
415 stars 131 forks source link

Missing login form on index.php after install #5

Closed andrewbrooks closed 11 years ago

andrewbrooks commented 11 years ago

Hello,

I was just setting up a quick Grinder POC with Windows Server 2k3 and WAMP (Apache 2.2 PHP 5.4) and the installation went fine, but post-install, the redirect to index.php doesn't contain a login form.

Image can be seen at http://i.imgur.com/RUF2v2C.png

Any input would be appreciated and in the mean time, I'll keep poking around for a fix.

Thanks, Andrew

andrewbrooks commented 11 years ago

For whatever reason, this seems to be resolved by not using WAMP. I installed PHP 5.3 and IIS and it's working fine.

sweetsyk00 commented 11 years ago

Hey! There problem occur because a deprecated PHP function not fixed. You have to replace the function "session_is_registered( $string )" function by" isset($_SESSION[$string])" in the file user.php, like the code below !

Enjoy ;)

function user_isloggedin() { //if( session_is_registered( 'id' ) and session_is_registered( 'username' ) and session_is_registered( 'grinderkey' ) ) if( isset( $_SESSION['id'] ) and isset( $_SESSION['username'] ) and isset( $_SESSION['grinderkey'] ) ) { if( $_SESSION['grinderkey'] == GRINDER_KEY ) return true; } return false; } function user_isadministrator() { if( user_isloggedin() and isset( $_SESSION['type'] ) and $_SESSION['type'] == 0 ) return true; return false; }

stephenfewer commented 11 years ago

Great stuff, thanks sweetsyk00!! :)