-
Notifications
You must be signed in to change notification settings - Fork 1
/
auxiliary_pages.py
78 lines (55 loc) · 1.58 KB
/
auxiliary_pages.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import os
import sys
environment = ''
def main(env):
global environment
environment = env
while True:
print("\nView Help, About, License, and Copyright pages\n")
print("Please select an operation:")
print(" 1. View Help page")
print(" 2. View About page")
print(" 3. View License page")
print(" 4. View Copyright page")
print(" 0. Go Back")
print(" -. Exit")
operation = input(environment.prompt)
if operation == '0':
return True
elif operation == '-':
sys.exit()
elif operation == '1':
view_help_page()
elif operation == '2':
view_about_page()
elif operation == '3':
view_license_page()
elif operation == '4':
view_copyright_page()
else:
print("Invalid input.")
def view_help_page():
print("\nHelp page\n")
return True
def view_about_page():
print("\nAbout page\n")
return True
def view_license_page():
print("\nLicense page\n")
return True
def view_copyright_page():
print("\nCopyright page")
print("""
Burton: CLI-based web server control panel
Copyright (C) 2013-015 Dotan Cohen http://dotancohen.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
http://www.gnu.org/licenses/
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
""")
return True