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'));
        }
    }
}
示例#2
0
function add_request_uri($string)
{
    $uri = create_request_uri($string);
    $tableName = DB_PREFIX . 'request_uri';
    $values["uri"] = MySQL::SQLValue($uri);
    $hmdb->InsertRow($tableName, $values);
    return $uri;
}