function content_ajax_slug()
{
    if (isset($_POST['val'])) {
        if (isset($_POST['accented']) and $_POST['accented'] == 'true') {
            return create_request_uri_with_accented(hm_post('val'), '', hm_post('object'));
        } elseif (isset($_POST['accented']) and $_POST['accented'] == 'false') {
            return create_request_uri(hm_post('val'), '', hm_post('object'));
        }
    }
}
function add_request_uri_with_accented($string)
{
    $uri = create_request_uri_with_accented($string);
    $tableName = DB_PREFIX . 'request_uri';
    $values["uri"] = MySQL::SQLValue($uri);
    $hmdb->InsertRow($tableName, $values);
    return $uri;
}