Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (57 sloc) 1.025 kB
<?php
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
include(IP_ROOT_PATH . 'includes/functions_validate.' . PHP_EXT);
$mode = request_get_var('mode', '');
$verify = request_get_var('verify', '', true);
if ($mode == 'username')
{
$result_validation = validate_username($verify);
if ($result_validation['error'])
{
echo '1';
}
else
{
echo '2';
}
}
elseif ($mode == 'password')
{
$result_validation = validate_password($verify);
if ($result_validation['error'])
{
echo '1';
}
else
{
echo '2';
}
}
elseif ($mode == 'email')
{
$result_validation = validate_email($verify);
if ($result_validation['error'])
{
echo '1';
}
else
{
echo '2';
}
}
else
{
echo '2';
}
?>
Jump to Line
Something went wrong with that request. Please try again.