// Copyright (c) 2011 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/
//
$_CS=array();
$_CS['version']="0.1";
$_CS['time']=time();
// You are expected to understand a little PHP to use this file.
//
// Put this file in a folder with the permissions set so PHP can write to it (Some people use chmod 777 on the folder).
// After you have all of that setup, you just need to set the information below to make this secure.
// After everything is done, you can enter the address of the folder where this is into CocoaShare's HTTP service and the account information you have set.
$_CS['users']=array("user"=>"5f4dcc3b5aa765d61d8327deb882cf99");// User list in format UserName => MD5 of Password. To MD5 a string, uncomment the code below the salt and visit the location of this file. The password for the default user is password, be sure to make the username lowercase so it can work well with the system.
$_CS['salt']="";// Put a random bit of string here to make the cookie a bit more random.
error_reporting(0);
/*
// Beginning of MD5 code.
if(isset($_REQUEST['string']))
echomd5($_REQUEST['string'])."<br />";
?>
<formmethod="POST">
<inputtype="text"placeholder="Put in your password."name="string"/>
setcookie("{$_CS['cookiePrefix']}user",strtolower($_REQUEST['user']),$_CS['time']+31536000/* 1 year */,$_COOKIE['cookiePath'],$_COOKIE['cookieDomain']);
setcookie("{$_CS['cookiePrefix']}password",md5($_CS['salt'].md5($_REQUEST['password'])),$_CS['time']+31536000/* 1 year */,$_COOKIE['cookiePath'],$_COOKIE['cookieDomain']);