Username: 
Password: 
Restrict session to IP 
Questions  |  score: 3  |  3.37 5.58 5.61 |  Solved By 619 People  |  185408 views  |  since Oct 09, 2011 - 09:58:45

Are you serial (PHP)

Are You Serial?
We are serialsly trying to build a secure website.
This time, we have it secure and extensible, and of course you can see all the sourcecode again:

code.php
insecure.inc.php
SERIAL_LoginForm.php
SERIAL_LogoutForm.php
SERIAL_Solution.php
SERIAL_User.php

As always, code you see is code in use.
GeSHi`ed PHP code for SERIAL_Solution.php
1
2
3
4
56
7
8
9
1011
12
13
14
<?php
class SERIAL_Solution
{
        public function __wakeup()
        {                if (false === ($chall = WC_Challenge::getByTitle(GWF_PAGE_TITLE)))
                {
                        $chall = WC_Challenge::dummyChallenge(GWF_PAGE_TITLE, 2, 'challenge/are_you_serial/index.php');
                }
                $chall->onChallengeSolved(GWF_Session::getUserID());        }
}
?>
 
© 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 and 2024 by Gizmore