|
@ -35,7 +35,12 @@ from mmobjects import * |
|
|
|
|
|
|
|
|
def redir( request ): |
|
|
def redir( request ): |
|
|
""" Redirect to the servers list. """ |
|
|
""" Redirect to the servers list. """ |
|
|
if request.META['HTTP_USER_AGENT'].startswith( 'BlackBerry' ): |
|
|
|
|
|
|
|
|
if request.META['HTTP_USER_AGENT'].startswith( 'BlackBerry' ) or \ |
|
|
|
|
|
"Opera Mini" in request.META['HTTP_USER_AGENT'] or \ |
|
|
|
|
|
"Windows CE" in request.META['HTTP_USER_AGENT'] or \ |
|
|
|
|
|
"MIDP" in request.META['HTTP_USER_AGENT'] or \ |
|
|
|
|
|
"Palm" in request.META['HTTP_USER_AGENT'] or \ |
|
|
|
|
|
"iPhone" in request.META['HTTP_USER_AGENT']: |
|
|
return HttpResponseRedirect( reverse( mobile_mumbles ) ); |
|
|
return HttpResponseRedirect( reverse( mobile_mumbles ) ); |
|
|
else: |
|
|
else: |
|
|
return HttpResponseRedirect( reverse( mumbles ) ); |
|
|
return HttpResponseRedirect( reverse( mumbles ) ); |
|
|