case 'CHANGE_AVATAR':
            echo UserManager::changeUserAvatar($_REQUEST['id'], $_REQUEST['avatar']);
            break;
        case 'UPDATE_GCMID':
            echo UserManager::updateGcmId($_REQUEST['id'], $_REQUEST['gcmid']);
            break;
        case 'SET_PUBLIC':
            echo UserManager::setPublic($_REQUEST['id'], $_REQUEST['ispublic']);
            break;
        case 'GET_NEW_USERLIST':
            echo json_encode(UserManager::getNewUserIdListByNumberList($_REQUEST['id'], $_REQUEST['numberlist']));
            break;
        case 'FIND_IN_DISTANCE':
            echo json_encode(LocationManager::getUserInDistance($_REQUEST['lat'], $_REQUEST['lng'], $_REQUEST['d']));
            break;
        case 'FIND_IN_CURRENT_ADDRESS':
            echo json_encode(LocationManager::getUserInCurAddress($_REQUEST['addr']));
            break;
            /*case 'FIND_IN_ADDRESS':
            		echo json_encode(array('users'=>UserManager::getUserByAddress($_REQUEST['addr'])));
            		break;*/
        /*case 'FIND_IN_ADDRESS':
        		echo json_encode(array('users'=>UserManager::getUserByAddress($_REQUEST['addr'])));
        		break;*/
        default:
            echo "Unknown type";
            break;
    }
} else {
    echo "You don't have permission!";
}