Beispiel #1
0
def auth_user():
    ck_usr = cookie.auth_client()
    if ck_usr == True:
        pass
    else:
        redirect_login()
Beispiel #2
0
          scrollTop: $('.section-download').offset().top
        }, 1000);
      }
    }
  </script>
</body>

</html>
	""")


def redirect_login():
	print("""
		<script>window.location = "/login.html";</script>

		""")



# IMPORTANT: Disable SELINUX

print('content-type: text/html')
#print(cookie.set_cookie('kb'))
print()


ck_usr = cookie.auth_client()
if ck_usr == True:
	show_html()
else: 
	redirect_login()