pull/6/head
Hailey Clark 6 years ago
commit 17b29c04e2
  1. 6
      app.py
  2. 8
      app_settings.py
  3. 12
      templates/about.html
  4. 1
      templates/deny.html
  5. 4
      templates/homepage.html
  6. 5
      templates/include/footer.html
  7. 4
      templates/launch.html
  8. 4
      templates/settings.html
  9. 3
      templates/tos.html

@ -37,7 +37,7 @@ else:
def index():
#This is the root index. If not logged in it displays homepage.html
if not google_auth.is_logged_in():
return flask.render_template('homepage.html', denymsg = loginMsg, loggedin = False)
return flask.render_template('homepage.html', loggedin = False)
user_info = google_auth.get_user_info()
indbRes = appdb.isUserinDB(user_info['id'])
@ -46,11 +46,11 @@ def index():
pprint.pprint(indbRes)
refreshtoken = google_auth.getRefreshToken()
if not refreshtoken:
return "Error with your refresh token"
return flask.render_template('error.html', denymsg = 'Error with your refresh token.', loggedin = False)
userid = appdb.getUserIDfromGoogleID(user_info['id'])
if not userid:
return 'You are not currently logged in.'
return flask.render_template('error.html', denymsg = 'You are not currently logged in.', loggedin = False)
rows = appdb.getDIDsbyAccount(userid)
return flask.render_template('index.html',

@ -23,11 +23,12 @@ else:
@app.route('/settings')
def appsettings():
if not google_auth.is_logged_in():
return flask.render_template('deny.html', denymsg = 'You are not authorized to be here', loggedin = False)
return flask.render_template('deny.html', denymsg = "I don't know who you are so I can't help you with your user settings. :(", loggedin = False)
user_info = google_auth.get_user_info()
refreshtoken = google_auth.getRefreshToken()
if not refreshtoken:
return flask.render_template('error.html', denymsg = 'Error with your refresh token', loggedin = False)
return flask.render_template('error.html', denymsg = 'Error with your refresh token.', loggedin = False)
userid = appdb.getUserIDfromGoogleID(user_info['id'])
if not userid:
return flask.render_template('error.html', denymsg = 'You are not currently logged in.', loggedin = False)
@ -35,7 +36,6 @@ def appsettings():
rows = appdb.getDIDsbyAccount(userid)
dbEmail = appdb.getInfobyEmail(user_info['email'])
return flask.render_template('settings.html',
name = user_info['name'],
email = user_info['email'],
user_info = user_info,
dids = rows,
loggedin = True)

@ -8,8 +8,18 @@
</head>
<body>
<h1>About TheWords!</h1>
<div>
<div id='about'>
<p>We're all about getting thewords out and allowing us to communicate securely to friends and loved ones.</p>
<p>This site is still under active development and subject to change. For those who are interested in helping
with development or testing hit me up on my <a href='https://github.com/hailey/sms-proj'>GitHub sms-proj Page</a>.</p>
<p>We aim to take bitcoin and other crypto currencies to allow people to use SMS at home on their computer or on the go as
a backup on their phone or tablet.</p>
</div>
<div id='advert'>
<p>We are still looking for testers or developers so, if you're interested and don't mind a work
in progress, then maybe you can help out by sending an email to submit at athnex dot com. Or better yet, message me on our
<a href='https://github.com/hailey/sms-proj'>GitHub</a>. This is a side project of mine so development will be slow
for as long as its only me. Thanks for your interest!</p>
</div>
{% include 'include/footer.html' %}
</body>

@ -9,5 +9,4 @@
<body>
<h1>503 Denied.</h1>
<h2>{{ denymsg }}</h2>
<p>Please login at <a href='/launch'>The Login Page</a></p>
{% include 'include/footer.html' %}

@ -14,8 +14,8 @@ $("document").ready(function() {
<p>Right now we are not even in beta, and the service isn't ready for the world yet.
At least until we get some more testers.</p>
<p>This site, in the end, will allow users to send text messages to the US for a low monthly fee.
This allows businesses or end users who want privacy or a business sms number
to do just that, send and receive messages.</p>
This allows businesses or end users who want privacy minded or a business sms number that
allows you to stay in touch with your customers by providing SMS and eventually MMS support.</p>
</div>
<div id='advert'>
<p>We are still looking for testers or developers so, if you're interested and don't mind a work

@ -1,3 +1,6 @@
{% if loggedin == False %}
<div id='logintext'><p>Please login at <a href='/launch'>The Login Page</a></p></div>
{% endif %}
<div id='footer'>
<div class='footlinks'><a href='/'>Index</a>
{% if loggedin == True %}
@ -5,7 +8,7 @@
{% else %}
| <a href="/launch">Login</a></div>
{% endif %}
<div class='footlinks'><a href ='/about'>About</a> <a href='/tos'>Terms of Service</a> | <a href="/pp">Privacy Policy</a></div>
<div class='footlinks'><a href ='/about'>About</a> | <a href='/tos'>Terms of Service</a> | <a href="/pp">Privacy Policy</a></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>

@ -9,7 +9,7 @@ $("document").ready(function() {
<body>
<div id='loginbody'>
<h1>Login Options</h1>
Login via: <br /><a href='/google/login'><img src='static/img/btn_google_signin_dark_normal_web@2x.png' alt='Google Login'/></a>
Login via: <br /><a href='/google/login'><img src='static/img/btn_google_signin_dark_normal_web@2x.png' alt='Login with Google'/></a>
<div>More Login Options coming Soon!</div>
</div>
{% include 'include/footer.html' %}

@ -11,8 +11,8 @@
<div id='body'>
<div id='accountInfoBlock'>
<div class='namefield'>Name: <input type='text' id='email' value='{{ name }}' /></div>
<div class='emailfield'>Email: {{ email }}</div>
<div class='namefield'>Name: <input type='text' id='email' value='{{ user_info['name'] }}' /></div>
<div class='emailfield'>Email: {{ user_info['email'] }}</div>
</div>
Your active DIDs: (Click number to access messaging)

@ -7,13 +7,14 @@
</script>
</head>
<body>
<div>
<div id='tos'>
<h1>Thewords.faith Terms of Service</h1>
<p>This site is not to be used for 'for profit' ventures such as spam, robo texting, robo dialing, or any form of
harassment or illegal contact.</p>
<p>These services are not allowed to be resold without prior authorization from the site management. Any automation
and programming code for this website must be provided to the public as this website and its code are opensource
and we intend to stay opensource.</p>
<p>Also as a note, with being such an early software version, all actions may be audited for debugging purposes only.</p>
<p>That being said, I wont give up anything without a warrant and I don't log anything that doesn't help me debug.</p>
<p>Thats why this system is hosted in italy. Happy texting!</p>
<p>This is a developing project and these terms and conditions and features may change in the future.</p>

Loading…
Cancel
Save