<?php // ۞// text { encoding:utf-8 ; bom:no ; linebreaks:unix ; tabs:4sp ; }

/*
    simple php+javascript sha1 hashing authenticated login demo..

    for more details of this simple login, see..

        simple_php+javascript_sha1_login.php

    in the same folder as this script. for details about pajamas..

        https://corz.org/server/security/pajamas.php

    have fun!

    ;o)

    (c) 2006->tomorrow! ~ cor + corz.org ;o)

    Please view the license for this free software, here:

        https://corz.org/free-scripts-licence.nfo
*/

// one simple include..
include 'simple_php+javascript_sha1_login.php';

// now your page, as normal..
echo '<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="content-type" content="application/xml; charset=utf-8" />
<head><title>simple php and javascript sha1 hashing login demo.. password accepted!</title></head>
<body bgcolor="#F5D6F2"><br /><br /><br /><div style="text-align:center">
<span style="font-size: 2em; color:#D134C2;font-weight:bold;">welcome to dirty pete\'s secret sex secrets page!</span><br /><br /><span color="#982997">or whatever..<br /></span></div>
<form name="logout_form" action="" method="post"><div class="form"><input type="submit" value="logout" name="logout" /></div></form>'
run_tests($GLOBALS['login']['pass'], $_SESSION['pajamas']['salt']);
echo 
'
</body>
</html>'
;

?>
back to the source menu
test

Welcome to corz.org!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!