diff --git a/Documentation/Class_Diagram.asta b/Documentation/Class_Diagram.asta deleted file mode 100644 index 5ebbf80cba6d656283d74926a61f10ed81f6626b..0000000000000000000000000000000000000000 Binary files a/Documentation/Class_Diagram.asta and /dev/null differ diff --git a/Documentation/UML Diagrams.asta b/Documentation/UML Diagrams.asta new file mode 100644 index 0000000000000000000000000000000000000000..67f301a48294106be4a447389905e59c6f39597c Binary files /dev/null and b/Documentation/UML Diagrams.asta differ diff --git a/main.py b/main.py index 1cc30effe39b19fa1769cf075b0c6ab09ed45697..4bf9bcaee709662f45ce56057dc2915b0f3ecb6e 100644 --- a/main.py +++ b/main.py @@ -140,7 +140,7 @@ def request_player(playerName): def players(): try: loggedIn = session['loggedin'] - isAdmin=session['isAdmin'] + isAdmin = session['isAdmin'] except: loggedIn = False isAdmin = False @@ -169,7 +169,7 @@ def players(): def playerSearch(): try: loggedIn = session['loggedin'] - isAdmin=session['isAdmin'] + isAdmin = session['isAdmin'] except: loggedIn = False isAdmin = False @@ -454,7 +454,7 @@ def removeFave(x): def admin(): try: loggedIn = session['loggedin'] - isAdmin=session['isAdmin'] + isAdmin = session['isAdmin'] except: loggedIn = False isAdmin = False @@ -505,7 +505,7 @@ def admin(): return render_template('adminFunction.html', player=player, operation=operation,loggedIn=loggedIn, isAdmin=isAdmin, teamNames=teamsList) - return render_template('admin.html', players=players) + return render_template('admin.html', loggedIn=loggedIn, isAdmin=isAdmin, players=players) else: print("User is not an admin") return render_template('homepage.html') @@ -539,7 +539,6 @@ def modifyPlayer(): @app.route('/deletePlayer', methods=('GET', 'POST')) def deletePlayer(): - if request.method == 'POST': playerName = request.form['playerName'] @@ -556,5 +555,16 @@ def deletePlayer(): return redirect(url_for('admin')) +@app.route('/copyright') +def copyright(): + try: + loggedIn = session['loggedin'] + isAdmin = session['isAdmin'] + except: + loggedIn = False + isAdmin = False + + return render_template('copyright.html', loggedIn=loggedIn, isAdmin=isAdmin) + if __name__ == '__main__': app.run(debug=True) diff --git a/tempCodeRunnerFile.py b/tempCodeRunnerFile.py new file mode 100644 index 0000000000000000000000000000000000000000..9ffafd59009f0916180a1872cad1390a5f0b43bf --- /dev/null +++ b/tempCodeRunnerFile.py @@ -0,0 +1 @@ +loggedIn=loggedIn, isAdmin=isAdmin \ No newline at end of file diff --git a/templates/copyright.html b/templates/copyright.html new file mode 100644 index 0000000000000000000000000000000000000000..ef3bd3fab89d324d5b583bf4177691432179c722 --- /dev/null +++ b/templates/copyright.html @@ -0,0 +1,21 @@ +{% include "base.html" %} + +{% block content %} + +<div class="centreContent"> + <div class="container"> + <div class="text-white bg-dark mb-3" style="max-width: 26rem;"> + <div class="card-header"><h1>Copyright Notice</h1></div> + <div class="card-body"> + <p>Our product is a website that provides accurate and up-to-date valuations of football players in the transfer market. Using a sophisticated algorith, we deliver reliable and unbiased valuations to assist users in making informed decisions about player transfers.</p> + <p>We would like to emphasize that our platform and its content are protected by copyright laws. Any unauthorized use, reproduction, or distribution of our content, including player valuations, analysis, and insights, is strictly prohibited and will be subject to legal action.</p> + <p>At Player R Us, we are committed to upholding the highest standards of intellectual property protection and ensuring that our users can rely on our platform's accuracy and reliability.</p> + <p>We invite you to experience the future of football player valuation with Player R Us. Sign up today and gain access to the most comprehensive and reliable transfer valuation platform on the market.</p> + </div> + </div> + </div> +</div> + +{% endblock %} +<p><br></p> +{% include "footer.html" %} \ No newline at end of file diff --git a/templates/footer.html b/templates/footer.html index d60b9da6dce933ef20968916cf2e39b5722ebf58..f1066fa8004c752ca541543a8f6706dffd983433 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,5 +1,5 @@ <!-- Footer --> <div class="text-center p-6 w-100 h-10 bg-secondary fixed-bottom " style="background-color: rgba(0, 0, 0, 0.2);"> © 2023 Copyright: - <a class="text-dark" href="https://mdbootstrap.com/">Players R Us</a> + <a class="text-dark" href="{{ url_for('copyright') }}">Players R Us</a> </div>