Beispiel #1
0
def onion_list(request):
    """List the onion addresses."""
    content_type = request.META.get('CONTENT_TYPE')
    if request.method == 'GET':
        if content_type and "json" in content_type:
            return onions_json(request)
        elif content_type and "rdf" in content_type:
            return onions_rdf(request)
        else: #default return is human readable HTML page
            show_descriptions = True
            return helpers.render_page('hs_list_view.html', show_descriptions)
    elif request.method == 'POST':
        return post_add_hs(request)
Beispiel #2
0
def rule(request):
    """Administration rule content"""
    if request.user.is_authenticated():
        return helpers.render_page('rule.html', show_descriptions=True)
    else:
        return redirect('ahmia.views_admin.login')
Beispiel #3
0
def tor2web(request):
    """Opens JavaScript based traffic viewer."""
    return helpers.render_page('tor2web.html')
Beispiel #4
0
def rule(request):
    """Administration rule content"""
    if request.user.is_authenticated():
        return helpers.render_page('rule.html', show_descriptions=True)
    else:
        return redirect('ahmia.views_admin.login')
Beispiel #5
0
def statsviewer(request):
    """Opens JavaScript based stats viewer."""
    return helpers.render_page('statistics.html')
Beispiel #6
0
def services(request):
    """Opens JavaScript based port viewer."""
    return helpers.render_page('services.html')
Beispiel #7
0
def onionsovertime(request):
    """Opens JavaScript based stats viewer."""
    return helpers.render_page('onions_over_time.html')
Beispiel #8
0
def services(request):
    """Opens JavaScript based port viewer."""
    return helpers.render_page('services.html')
Beispiel #9
0
def onionsovertime(request):
    """Opens JavaScript based stats viewer."""
    return helpers.render_page('onions_over_time.html')