Icy Phoenix is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

/iptrunk
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?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';
}

?>
Ajax-loader Loading, please wait...