def register(): first = str(request.form.get('firstname')) last = str(request.form.get('lastname')) email = str(request.form.get('email')) password = str(request.form.get('password')) status = modules.register(first, last, email, password) return flask.Response(json.dumps(status), mimetype="application/json")
def print_useful_links(): links = """ --Available Options-- 1.) General 2.) Browse InCollege 3.) Business Solutions 4.) Directories 5.) Go Back """ while True: print(links) option = get_user_option(1, 5) while option < 1 or option > 5: print("Invalid input. Try again") option = get_user_option(1, 5) if option == 1: while True: print_general_links() options = get_user_option(1, 8) while options < 1 or options > 8: print("Invalid input. Try again") options = get_user_option(1, 8) if options == 1: registered = register() if not registered: exit() else: continue elif options == 2: print("We're here to help") time.sleep(2) continue elif options == 3: print( "InCollege: Welcome to InCollege, the world's largest college student network with many users in many countries and territories worldwide" ) time.sleep(2) continue elif options == 4: print( "InCollege Pressroom: Stay on top of the latest news, updates, and reports" ) time.sleep(2) continue elif options == 5: print("Under Construction") time.sleep(2) continue elif options == 6: print("Under Construction") time.sleep(2) continue elif options == 7: print("Under Construction") time.sleep(2) continue elif options == 8: print("Going back to 'Useful Links' Menu") time.sleep(2) print_useful_links() return False elif option == 2: print("Under construction") time.sleep(2) continue elif option == 3: print("Under construction") time.sleep(2) continue elif option == 4: print("Under construction") time.sleep(2) continue elif option == 5: print("Going back to the Main Menu") time.sleep(2) return False
def __init__(): modules.register('footer', execute, description=description())
def __init__(): modules.register('resources', execute, description=description())
def __init__(): modules.register('gpgencrypt', execute, description=description())
def __init__(): modules.register('optout', execute, description=description())
def __init__(): modules.register('invitationpolicy', execute, description=description())
print("Invalid input. Try again") option = get_user_option(1, 5) if option == 1: # Login if LOGGED_IN_USER.get("username", None): break username = input("Please enter a username: "******"Please enter a password: ") logged_in = login(username, password) if logged_in: # Show pending friend requests and allow user to accept or decline them has_requests = show_requests() break else: continue elif option == 2: # Create new account registered = register() if not registered: exit() else: continue elif option == 3: print_useful_links() continue elif option == 4: while True: important_links() option = get_user_option(1, 9) process = process_important_link(option) if not process: break elif option == 5: # Watch Video