@Tricksyz/

prahxy

Python

No description

fork
loading
Files
  • main.py
  • static
  • templates
  • keys
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Login page made by Tricksyz #
import os
from flask import Flask, render_template, redirect, url_for, request
from threading import Thread
import requests
import time

app = Flask('')

# Login page #
@app.route('/', methods=['GET', 'POST'])

def login():
  if request.method == 'POST': # Clicking submit #
      return redirect("http://k0node2.herokuapp.com/login/" + request.form["key"], code=302)
  return render_template('index.html')

@app.route('/presets', methods=['GET', 'POST'])

def preset():
  return render_template('presets.html')

def run():
    app.run(host="0.0.0.0", port=8080)
def keep_alive():
    server = Thread(target=run)
    server.start()
  
keep_alive()
#end of login page#