1
0
mirror of https://github.com/Adam-Ant/ClockworkAprilFools2017 synced 2024-07-06 05:36:10 +00:00

Fix routes to use /plus as the default route

This commit is contained in:
Joe Groocock 2017-04-01 00:07:08 +01:00
parent fc8493a557
commit 6ccd659022
Signed by untrusted user: frebib
GPG Key ID: E0B16BEACFBB6A86
5 changed files with 9 additions and 4 deletions

View File

@ -25,9 +25,10 @@ Clockwork Gaming Plus is a brand new premium service that allows you to get more
</ul>
</p>
<a class="btn btn-success btn-lg" href="/activate">Click Here to purchase Clockwork Plus! </a>
<a class="btn btn-success btn-lg" href="./buy">Click Here to purchase Clockwork Plus! </a>
</div>
<div class="media-right"><img src="https://i.imgur.com/1vLD5FK.png" class="media-object"></div>
</div>

View File

@ -30,7 +30,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand"><span class="glyphicon glyphicon-cog"></span> Clockwork <b>PLUS!</b></a>
<a href="/plus" class="navbar-brand"><span class="glyphicon glyphicon-cog"></span> Clockwork <b>PLUS!</b></a>
</div>
<div class="collapse navbar-collapse" id="mainNavbar">

View File

@ -15,7 +15,7 @@
<button type="button" class="btn btn-info disabled"><h2><span class="glyphicon glyphicon-credit-card"></span><br>Card</h2></button>
<button type="button" class="btn btn-info disabled"><h2><span class="glyphicon glyphicon-btc"></span><br>Bitcoin</h2></button>
<button type="button" class="btn btn-info disabled"><h2><span class="glyphicon glyphicon-grain"></span><br>Magic Beans</h2></button>
<a href="/collectsunlight"><button type="button" class="btn btn-info" ><h2><span class="glyphicon glyphicon-tree-deciduous"></span><br>Sunlight</h2></button></a>
<a href="./collectsunlight"><button type="button" class="btn btn-info" ><h2><span class="glyphicon glyphicon-tree-deciduous"></span><br>Sunlight</h2></button></a>
</div>
</div>

View File

@ -1,5 +1,5 @@
<meta http-equiv="refresh" content="29; url=/activate">
<meta http-equiv="refresh" content="29; url=./activate">
<script src="/static/progressbar.js"></script>
<link href="https://fonts.googleapis.com/css?family=Raleway:400,300,600,800,900" rel="stylesheet" type="text/css">

View File

@ -9,6 +9,10 @@ app = Flask(__name__)
app.secret_key = rand(24)
@app.route("/")
def baseroute():
return redirect("/plus")
def teamspeakClientAdd(clientName):
with ts3.query.TS3Connection('magic.adam-ant.co.uk', '10011') as ts3conn:
try: