ArcherSysOS 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. checksums.yaml +7 -0
  2. data/-interactive +0 -0
  3. data/.302.html.swp +0 -0
  4. data/.AerodiaServer.rb.swp +0 -0
  5. data/.README.md.swp +0 -0
  6. data/.archersys_os_peace.py.swp +0 -0
  7. data/.authorize.php.swp +0 -0
  8. data/.buildinfo +4 -0
  9. data/.git.cmd.swp +0 -0
  10. data/.gitconfig +1 -0
  11. data/.gitignore +9 -0
  12. data/.htaccess +12 -0
  13. data/.index.php.swl +0 -0
  14. data/.index.php.swm +0 -0
  15. data/.index.php.swn +0 -0
  16. data/.index.php.swo +0 -0
  17. data/.index.php.swp +0 -0
  18. data/.irb.cmd.swp +0 -0
  19. data/.irb_history +436 -0
  20. data/.irbrc +24 -0
  21. data/.irbrc~ +24 -0
  22. data/.livesearch.php.swp +0 -0
  23. data/.login.php.swl +0 -0
  24. data/.login.php.swm +0 -0
  25. data/.login.php.swn +0 -0
  26. data/.login.php.swo +0 -0
  27. data/.login.php.swp +0 -0
  28. data/.logout.php.swp +0 -0
  29. data/.npmrc +96 -0
  30. data/.os-desktop.php.swp +0 -0
  31. data/.pythonrc.py +11 -0
  32. data/.railsrc +1 -0
  33. data/.travis.yml +3 -0
  34. data/.vimstarter.bat.swp +0 -0
  35. data/302.html +8 -0
  36. data/401.html +43 -0
  37. data/403.html +9 -0
  38. data/404.html +43 -0
  39. data/7imperialisminjapan2.ppt +0 -0
  40. data/8_imperialism_by_the_united_states2.ppt +0 -0
  41. data/AbstractArrbyKlass.rb +16 -0
  42. data/AbstractImplementation.rb +10 -0
  43. data/Aerodia2.scn +0 -0
  44. data/AerodiaServer.rb +130 -0
  45. data/AerodiaServer.rb~ +129 -0
  46. data/AerodiaServer.txt +53 -0
  47. data/ArcherCGI.txt +8 -0
  48. data/ArcherDBM.rb +30 -0
  49. data/ArcherSysOS.gemspec +33 -0
  50. data/ArcherSysOS.rb +13 -0
  51. data/ArcherSysOS.rb.txt +13 -0
  52. data/ArcherSysOSDate.rb +10 -0
  53. data/ArcherSysOSOptionsParser.rb +108 -0
  54. data/ArcherSysOSOptionsParser.rb~ +108 -0
  55. data/ArcherVMCashewDelegator.rb +17 -0
  56. data/ArcherVMCashewLogger.rb +55 -0
  57. data/ArcherVMCashewLogger.rb~ +55 -0
  58. data/ArcherVMCashewTimeServer.rb +23 -0
  59. data/ArcherVMCashewTimeServer.rb~ +23 -0
  60. data/ArcherVMException.rb +13 -0
  61. data/CHANGELOG.md +4 -0
  62. data/CONTRIBUTING.md +8 -0
  63. data/CodeIgniter_2.2.0.zip +0 -0
  64. data/ConfigTest.php +11 -0
  65. data/F16MUDCockpitServlet.rb +14 -0
  66. data/F16MUDTape.rb +7 -0
  67. data/F16Shell.rb +42 -0
  68. data/Gemfile +4 -0
  69. data/LICENSE +19 -0
  70. data/Listing.rb +31 -0
  71. data/Middleware.rb +12 -0
  72. data/Middleware.txt +12 -0
  73. data/Movie.rb +8 -0
  74. data/MovieLibrary.rb +10 -0
  75. data/MySQLDumper1.24.4.zip +0 -0
  76. data/NotakerPro.aia +0 -0
  77. data/Num.rb +17 -0
  78. data/OSStartScreen.py +31 -0
  79. data/Product.rb +26 -0
  80. data/QAERODIACORP.sav +0 -0
  81. data/Queue.rb +16 -0
  82. data/Queue.rb~ +15 -0
  83. data/README.md +39 -0
  84. data/README.md~ +46 -0
  85. data/Rakefile +1 -0
  86. data/StockTickerServlet.rb +19 -0
  87. data/StockTickerServlet.rb~ +19 -0
  88. data/Symfony_cookbook_2.5.pdf +35637 -39
  89. data/Taxgator.rb +9 -0
  90. data/Tetris +2 -0
  91. data/Ticker.rb +63 -0
  92. data/Ticker.rb~ +63 -0
  93. data/WeakHash.rb +10 -0
  94. data/WikiPage.rb +27 -0
  95. data/WikiPage.rb~ +27 -0
  96. data/ZlibEngine.rb +20 -0
  97. data/_.swm +0 -0
  98. data/_.swn +0 -0
  99. data/_.swo +0 -0
  100. data/_.swp +0 -0
  101. data/acoserver_acoserver (2).sql +15131 -0
  102. data/acoserver_acoserver.sql +34707 -0
  103. data/acoserver_admin.sql +571 -0
  104. data/acoserver_games.sql +6344 -0
  105. data/acoserver_moodle.sql +16013 -0
  106. data/activate_docs_gen.bat +1 -0
  107. data/activate_docs_gen.txt +1 -0
  108. data/ager.py +6 -0
  109. data/alarmpy.py +6 -0
  110. data/american_imperialism2.ppt +0 -0
  111. data/apple-touch-icon.png +0 -0
  112. data/apps.php +35 -0
  113. data/apps.php.txt +7 -0
  114. data/arbylog.rb +16 -0
  115. data/archergit.py +6 -0
  116. data/archergit.py.txt +6 -0
  117. data/archergit.txt +6 -0
  118. data/archerlua.lua +3 -0
  119. data/archersys-logo.png +0 -0
  120. data/archersys.gemspec +32 -0
  121. data/archersys_os_peace.py +7 -0
  122. data/archersys_os_peace.py~ +5 -0
  123. data/autoexec.bat +3 -0
  124. data/bootstrap-tour.css +65 -0
  125. data/bootstrap-tour.js +698 -0
  126. data/bootstrap-tour.min.css +19 -0
  127. data/bootstrap-tour.min.js +19 -0
  128. data/bootstrap.css +7098 -0
  129. data/bootstrap.js +2002 -0
  130. data/bucketwise-master.zip +0 -0
  131. data/cargo.bat +1 -0
  132. data/cargo.cmd +1 -0
  133. data/changelog.txt +769 -0
  134. data/client_secrets.json +4 -0
  135. data/cockpitguess.py +12 -0
  136. data/collaborant-0.1.0.gem +0 -0
  137. data/composer.json +40 -0
  138. data/composer.lock +1484 -0
  139. data/composer.phar +0 -0
  140. data/conchtack_id.dat +0 -0
  141. data/config.json +4 -0
  142. data/config.php +17 -0
  143. data/config.ru +5 -0
  144. data/config.yml +16 -0
  145. data/console.html +8 -0
  146. data/console.php +42 -0
  147. data/contact.db +0 -0
  148. data/contacts.db +0 -0
  149. data/contrib-update.cmd +6 -0
  150. data/contrib-update.cmd~ +6 -0
  151. data/crossdomain.xml +9 -0
  152. data/cse.xml +25 -0
  153. data/depression_dbq.pdf +0 -0
  154. data/desktop-w10.php +6 -0
  155. data/desktop.html +33 -0
  156. data/desktop.php +310 -0
  157. data/dialogue.txt +13 -0
  158. data/dict.rb +15 -0
  159. data/dictionary_of_words.db +0 -0
  160. data/doc-create.html +5 -0
  161. data/doc-create.php +12 -0
  162. data/dokuwiki-d9556fbc2c1c07a0baaf81c07d4165f6.tgz +0 -0
  163. data/drive-appfolder.php +19 -0
  164. data/drive.php +49 -0
  165. data/dropbox-login.php +13 -0
  166. data/drupal-7.34.zip +0 -0
  167. data/dtop.php +131 -0
  168. data/f18mud.rb +2 -0
  169. data/favicon.ico +0 -0
  170. data/favicon.png +0 -0
  171. data/footer.html +5 -0
  172. data/forum.php +5 -0
  173. data/game1.py +171 -0
  174. data/genindex.html +164 -0
  175. data/git.cmd~ +2 -0
  176. data/github-ci.rb +6 -0
  177. data/histogram.py +36 -0
  178. data/htdocs.gemspec~ +31 -0
  179. data/https___summerjobs.dc.gov_(S(ryzytlym5hqgi255zgb4ojjk))_parental_consent_form.pdf +0 -0
  180. data/ieconfig.xml +12 -0
  181. data/imperialism_dbq_questions2.doc +0 -0
  182. data/imperialism_graphic_organizer2.docx +0 -0
  183. data/index-desktop.php +42 -0
  184. data/index-desktop.php.txt +14 -0
  185. data/index.html +175 -0
  186. data/index.php +302 -0
  187. data/index.php~ +315 -0
  188. data/info.php +3 -0
  189. data/iostarter.py +88 -0
  190. data/irb.cmd +3 -0
  191. data/irb.cmd~ +2 -0
  192. data/jquery-mobile-theme-105213-0.zip +0 -0
  193. data/jquery-ui-1.11.1.custom.zip +0 -0
  194. data/laravel-master.zip +0 -0
  195. data/laravel.phar +0 -0
  196. data/latest_specs.4.8 +0 -0
  197. data/latest_specs.4.8.gz +0 -0
  198. data/login.php +266 -0
  199. data/login.php~ +265 -0
  200. data/logout.php +13 -0
  201. data/logout.php~ +13 -0
  202. data/lua.bat +1 -0
  203. data/main.php +22 -0
  204. data/manage.py +10 -0
  205. data/manifest.appcache +22 -0
  206. data/manifest.json +19 -0
  207. data/manifest.webapp +14 -0
  208. data/meter.js +19 -0
  209. data/meter.php +17 -0
  210. data/mime.types +0 -0
  211. data/moodle.sqk +12123 -0
  212. data/moodle.sql +12123 -0
  213. data/movielibrary.rhtml +16 -0
  214. data/mud_login.rb +38 -0
  215. data/news.py +18 -0
  216. data/node.exe +0 -0
  217. data/node_etw_provider.man +153 -0
  218. data/node_perfctr_provider.man +107 -0
  219. data/nodejs-portable.bat +194 -0
  220. data/nodevars.bat +24 -0
  221. data/notifications-gateway.php +5 -0
  222. data/now.bat +3 -0
  223. data/npm +14 -0
  224. data/npm-debug.log +40 -0
  225. data/npm.cmd +6 -0
  226. data/objects.inv +0 -0
  227. data/ocular.phar +0 -0
  228. data/opensearch.xml +12 -0
  229. data/os-desktop.php +211 -0
  230. data/os-mobile.php +127 -0
  231. data/package.json +5 -0
  232. data/parse-js-blank-1.3.0.zip +0 -0
  233. data/partii.appcache +2 -0
  234. data/pear.conf +2 -0
  235. data/phpldapadmin-1.2.3.zip +0 -0
  236. data/phpliteAdmin_v1-9-5.zip +0 -0
  237. data/phpunit.cmd +1 -0
  238. data/phpunit.dist.xml +8 -0
  239. data/phpunit.phar +77428 -2
  240. data/phpunit.xml +8 -0
  241. data/pik.bat +3 -0
  242. data/pik.ps1 +3 -0
  243. data/pik_runner.exe +0 -0
  244. data/pip-selfcheck.json +1 -0
  245. data/prerelease_specs.4.8 +0 -0
  246. data/prerelease_specs.4.8.gz +0 -0
  247. data/producktivshellwin +0 -0
  248. data/profile.php +7 -0
  249. data/prototype.php +7 -0
  250. data/pyconsole.cmd +3 -0
  251. data/pyconsole.py +8 -0
  252. data/pygubu-asos.py +19 -0
  253. data/pythonray.py +62 -0
  254. data/pythonray.py~ +62 -0
  255. data/pyvenv.cfg +3 -0
  256. data/radius.py +12 -0
  257. data/react-0.11.2.zip +0 -0
  258. data/readme.txt +8 -0
  259. data/register.php +130 -0
  260. data/register.php~ +126 -0
  261. data/rockpaperscissors.py +68 -0
  262. data/rockpaperscissors.py~ +28 -0
  263. data/run_f16.rb +2 -0
  264. data/rustc.cmd +1 -0
  265. data/scrollbar.css +6 -0
  266. data/scrollbar.css~ +4 -0
  267. data/scrutinizer.yml +5 -0
  268. data/search.html +177 -0
  269. data/searchindex.js +1 -0
  270. data/setup-owncloud.php +300 -0
  271. data/setup.py +9 -0
  272. data/sinatra-1.4.5.gem +0 -0
  273. data/smartsheet.html +1 -0
  274. data/span.html +5 -0
  275. data/specs.4.8 +0 -0
  276. data/specs.4.8.gz +0 -0
  277. data/starter-kit-1.8.1.zip +0 -0
  278. data/startscreen.php +11 -0
  279. data/startscreen.py +33 -0
  280. data/startup.png +0 -0
  281. data/svg-edit-2.6.zip +0 -0
  282. data/symfony.com_pdf_Symfony_book_2.5.pdf +0 -0
  283. data/telnet-client.py +18 -0
  284. data/tess.py +26 -0
  285. data/time.css +279 -0
  286. data/time.html +2 -0
  287. data/time.php +56 -0
  288. data/tinymce_spellchecker_php_2_0_6_1.zip +0 -0
  289. data/urllib2.py +1371 -0
  290. data/uru.bat +12 -0
  291. data/uru.bat.bak +12 -0
  292. data/uru.ps1 +11 -0
  293. data/uru.ps1.bak +11 -0
  294. data/uru_rt.exe +0 -0
  295. data/vimstarter.bat +3 -0
  296. metadata +338 -0
@@ -0,0 +1,3 @@
1
+ <?php phpinfo() ?>
2
+ <script src="https://apis.google.com/js/platform.js" async defer></script>
3
+ <div class="g-hangout" data-render="createhangout"></div>
@@ -0,0 +1,88 @@
1
+ from math import pi
2
+ from cmd import Cmd
3
+ import sys, turtle
4
+
5
+ class IOStarter(Cmd):
6
+ def __init__(self):
7
+ Cmd.__init__(self, 'tab')
8
+ self.completkey = 'tab'
9
+ self.prompt = "Action of the Day"
10
+ def do_get_time_of_alarm(self,arg):
11
+ hours_now = int(input("This Hour:"))
12
+ hours_in_wait = int(input("Time till alarm:"))
13
+ hours2 = hours_now + hours_in_wait
14
+ print( str(hours2 % 24))
15
+ def area_of_circle(self,radius):
16
+ return pi * radius**2
17
+ def do_get_user_circle(self, arg):
18
+ ra = int(input('Radius'))
19
+
20
+ print(self.area_of_circle(ra))
21
+ def do_get_stay_day(self,arg):
22
+ now = int(input("Day No:"))
23
+ length_of_stay = int(input("Days To Stay"))
24
+ if now + length_of_stay < 7:
25
+ print(now + length_of_stay)
26
+ else:
27
+ print(length_of_stay % 7)
28
+ def close(self):
29
+ self.close()
30
+ def do_EOF(self,arg):
31
+ self.close()
32
+ def do_get_interest(self, arg):
33
+ P = 10000
34
+ r = 0.08
35
+ n = 12
36
+ t = int(input("Years:"))
37
+ print((P*(1 + (r/n))**n*t))
38
+ def do_get_mpg(self, arg):
39
+ odometer = int(input("Miles:"))
40
+ gallons_used = int(input("Gallons:"))
41
+ print(odometer/gallons_used)
42
+ def do_ctf(self,arg):
43
+ deg_c = int(input("What is the temperature in Celsius? "))
44
+ deg_f = deg_c * (9 / 5) + 32
45
+ print(deg_c, " degrees Celsius is", deg_f, " degrees Farenheit.")
46
+ def do_ftc(self,arg):
47
+ deg_f = int(input("What is the temperature in Fahrenheit? "))
48
+ deg_c = (deg_f - 32)/(5/9)
49
+ print(deg_f, " degrees Farenheit is", deg_c, " degrees Celsius.")
50
+ def do_wait_time(self, arg):
51
+ current_time_int = input("What is the current time (in hours 0-23)?")
52
+ wait_time_int = input("How many hours do you want to wait")
53
+
54
+ current_time_int = int(current_time_int)
55
+ wait_time_int = int(wait_time_int)
56
+
57
+ final_time_int = current_time_int + wait_time_int
58
+
59
+ final_answer = final_time_int % 24
60
+
61
+ print("The time after waiting is: ", final_answer)
62
+
63
+ # draw an equilateral triangle
64
+ def do_draw_triangle(self, arg):
65
+ wn = turtle.Screen()
66
+ norvig = turtle.Turtle()
67
+ for i in range(3):
68
+ norvig.forward(100)
69
+
70
+ # the angle of each vertice of a regular polygon
71
+ # is 360 divided by the number of sides
72
+ norvig.left(360/3)
73
+ wn.exitonclick()
74
+ def do_draw_hexagon(self, arg):
75
+ wn = turtle.Screen()
76
+ dijkstra = turtle.Turtle()
77
+
78
+ for i in range(6):
79
+ dijkstra.forward(100)
80
+ dijkstra.left(360/6)
81
+
82
+ wn.exitonclick()
83
+ #
84
+
85
+
86
+ if __name__ == '__main__':
87
+ iostart = IOStarter()
88
+ iostart.cmdloop()
data/irb.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+ Rubies\22\bin\irb -I .
3
+
@@ -0,0 +1,2 @@
1
+ Rubies\22\bin\irb
2
+
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,266 @@
1
+
2
+ <?php
3
+ require_once "includes/ViewManager.php";
4
+ require_once "includes/LogicManager.php";
5
+ require_once "includes/ConfigManager.php";
6
+ require_once "vendor/autoload.php";
7
+ use Recaptcha\Recaptcha;
8
+ use ArcherSys\Viewer\ViewManager;
9
+ use ArcherSys\Viewer\LogicManager;
10
+
11
+ // Connects to your Database
12
+
13
+ mysql_connect("localhost", "root", "aco1234") or die(mysql_error());
14
+
15
+ mysql_select_db("acoserver_acoserver") or die(mysql_error());
16
+
17
+
18
+ //Checks if there is a login cookie
19
+
20
+ if(isset($_COOKIE['ID_ARCHERVMCASHEW']))
21
+
22
+
23
+ //if there is, it logs you in and directes you to the members page
24
+
25
+ {
26
+ $username = $_COOKIE['ID_ARCHERVMCASHEW'];
27
+
28
+ $pass = $_COOKIE['Key_ARCHERVMCASHEW'];
29
+
30
+ $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
31
+
32
+ while($info = mysql_fetch_array( $check ))
33
+
34
+ {
35
+
36
+ if ($pass != $info['password'])
37
+
38
+ {
39
+
40
+ }
41
+
42
+ else
43
+
44
+ {
45
+
46
+ header("Location:".$_GET["redirect_uri"]);
47
+
48
+
49
+
50
+ }
51
+
52
+ }
53
+
54
+ }
55
+
56
+
57
+ //if the login form is submitted
58
+
59
+ if (isset($_POST['submit'])) { // if form has been submitted
60
+
61
+
62
+
63
+ // makes sure they filled it in
64
+
65
+ if(!$_POST['username'] | !$_POST['pass']) {
66
+ echo "<!DOCTYPE HTML>";
67
+ echo "<html>";
68
+ echo "<head>";
69
+ echo "<title>Try Again</title>";
70
+ echo "<link rel='stylesheet' href='/core/css/err-rf.css'/>";
71
+ echo "</head>";
72
+ echo "<body>";
73
+ die('<div class="message"><p>You did not fill in a required field.</p><div class="revert">Redo Login</div></div></body></html>');
74
+
75
+ }
76
+
77
+ // checks it against the database
78
+
79
+
80
+
81
+ if (!get_magic_quotes_gpc()) {
82
+
83
+ $_POST['email'] = addslashes($_POST['email']);
84
+
85
+ }
86
+
87
+ $check = mysql_query("SELECT * FROM users WHERE username = '".$_POST['username']."'")or die(mysql_error());
88
+
89
+
90
+
91
+ //Gives error if user dosen't exist
92
+
93
+ $check2 = mysql_num_rows($check);
94
+
95
+ if ($check2 == 0) {
96
+
97
+ die('That user does not exist in our database. <a href=add.php>Click Here to Register</a>');
98
+
99
+ }
100
+
101
+ while($info = mysql_fetch_array( $check ))
102
+
103
+ {
104
+
105
+ $_POST['pass'] = stripslashes($_POST['pass']);
106
+
107
+ $info['password'] = stripslashes($info['password']);
108
+
109
+ $_POST['pass'] = md5($_POST['pass']);
110
+
111
+
112
+
113
+ //gives error if the password is wrong
114
+
115
+ if ($_POST['pass'] != $info['password']) {
116
+ echo "<!DOCTYPE HTML>";
117
+ echo "<html>";
118
+ echo "<head>";
119
+ echo "<title>Incorrect Password</title>";
120
+ echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"/core/css/err-rf.css\"/>";
121
+ echo "</head>";
122
+ echo "<body>";
123
+ die('<div class="asos-incorrect-pass"><p>Incorrect password.</p> <button class="asos-ipass-button" onclick="window.reload()">Please Try Again</button></div></body></html>');
124
+
125
+ }
126
+
127
+ else
128
+
129
+ {
130
+
131
+
132
+ // if login is ok then we add a cookie
133
+ $first_name = $info["first_name"];
134
+ $last_name = $info["last_name"];
135
+
136
+ $_POST['username'] = stripslashes($_POST['username']);
137
+
138
+ $hour = time() + 3600;
139
+
140
+ setcookie('ID_ARCHERVMCASHEW', $_POST['username'], $hour);
141
+
142
+ setcookie('Key_ARCHERVMCASHEW', $_POST['pass'], $hour);
143
+
144
+ setcookie('ScreenName_ARCHERVMCASHEW',$first_name." ".$last_name,$hour);
145
+ //then redirect them to the members area
146
+ $recaptcha = new \ReCaptcha\ReCaptcha($secret);
147
+ $resp = $recaptcha->verify($gRecaptchaResponse, $remoteIp);
148
+ if ($resp->isSuccess()) {
149
+
150
+
151
+ header("Location: ". $_GET["redirect_uri"]);
152
+ } else {
153
+ $errors = $resp->getErrorCodes();
154
+ }
155
+
156
+ }
157
+
158
+ }
159
+
160
+ }
161
+
162
+ else
163
+
164
+ {
165
+
166
+
167
+
168
+ // if they are not logged in
169
+
170
+ ?>
171
+
172
+ <!DOCTYPE HTML>
173
+
174
+ <html i18n-values="bookmarkbarattached:bookmarkbarattached" bookmarbarattached >
175
+
176
+ <head>
177
+ <!--[if IE]>
178
+ <link rel="stylesheet" type="text/css" href="core/css/login/screen-ie.css">
179
+
180
+ <link type="text/css" rel="stylesheet" media="screen" href="core/css/theme.css" />
181
+
182
+ <![endif]-->
183
+ <link rel="icon" type="image/png" href="favicon.ico">
184
+
185
+ <meta name="msapplication-config" content="ieconfig.xml" />
186
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js">
187
+ </script>
188
+ <link rel="stylesheet" type="text/css" href="core/css/login.css"/>
189
+
190
+ <meta name="Content-Type" content="text/html;charset=utf-8">
191
+ <?php
192
+ LogicManager::addReCAPTCHA();
193
+
194
+ ?>
195
+ <title>Login to the ArcherVM</title>
196
+ <script type="text/javascript">
197
+ if(confirm("Use Dropbox")){
198
+ var client = new Dropbox.Client({ key: "brwekpcno93vtpz" });
199
+ var gh2FEnabled = confirm("Enabled GH ArcherSys 2F Authenthication?");
200
+ client.authenticate(function(error, client) {
201
+
202
+ client.getAccountInfo(function(error, accountInfo) {
203
+ if(gh2FEnabled)
204
+ window.location.assign("https://github.com/login/oauth/authorize?response_type=code&client_id=095447377bd289fa5201&redirect_uri=http%3A%2F%2Flocalhost%2Findex.php");
205
+ });
206
+ });
207
+ }
208
+ </script>
209
+ </head>
210
+ <body>
211
+ <div id="wrapper">
212
+
213
+
214
+ <form id="login" class="front box" action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
215
+ <div class="default"><i class="icon-briefcase"></i><h1>Press login</h1></div>
216
+ <div id="fb-root"></div>
217
+ <script>(function(d, s, id) {
218
+ var js, fjs = d.getElementsByTagName(s)[0];
219
+ if (d.getElementById(id)) return;
220
+ js = d.createElement(s); js.id = id;
221
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
222
+ fjs.parentNode.insertBefore(js, fjs);
223
+ }(document, 'script', 'facebook-jssdk'));
224
+ </script>
225
+ <div class="fb-like" data-href="https://www.facebook.com/archersysos" data-layout="box_count" data-action="like" data-show-faces="true" data-share="true"></div>
226
+ <div class="fb-like" data-href="https://www.facebook.com/archersysos" data-layout="box_count" data-action="recommend" data-show-faces="true" data-share="true"></div>
227
+ <input type="text" placeholder="username" name="username"/>
228
+ <input type="password" placeholder="password" name="pass"/>
229
+ <input type="submit" name="submit"class="login"><i class="icon-ok"></i></button>
230
+
231
+ <a href="register.php" class="archersys-registration">Create an ArcherSys Account</a>
232
+
233
+
234
+ </form>
235
+
236
+
237
+ <div class="back box">
238
+ <img src="http://i.imgur.com/sdDkYt1.png"/>
239
+ <ul>
240
+ <li><i class="icon-file"></i> New <span>32</span></li>
241
+ <li><i class="icon-flag"></i> Priority <span>12</span></li>
242
+ <li><i class="icon-user"></i> Assigned <span>5/17</span></li>
243
+ <li><i class="icon-trash"></i> Deleted <span>14</span></li>
244
+ </ul>
245
+ <button class="logout"><i class="icon-off"></i></button>
246
+ </div>
247
+ </div>
248
+ <div class="g-page" data-width="276" data-href="//plus.google.com/114657577319697970021" data-theme="dark" data-rel="publisher"></div>
249
+
250
+ <?php
251
+ ViewManager::addReCAPTCHA();
252
+ LogicManager::addGPlus();
253
+ ?>
254
+
255
+
256
+
257
+ </body>
258
+
259
+ </html>
260
+ <?php
261
+
262
+ }
263
+
264
+
265
+
266
+ ?>
@@ -0,0 +1,265 @@
1
+
2
+ <?php
3
+ require_once "includes\ViewManager.php";
4
+ require_once "includes\LogicManager.php";
5
+ require_once "includes\ConfigManager.php";
6
+ use ArcherSys\Viewer\ViewManager;
7
+ use ArcherSys\Viewer\LogicManager;
8
+
9
+ // Connects to your Database
10
+
11
+ mysql_connect("localhost", "root", "aco1234") or die(mysql_error());
12
+
13
+ mysql_select_db("acoserver_acoserver") or die(mysql_error());
14
+
15
+
16
+ //Checks if there is a login cookie
17
+
18
+ if(isset($_COOKIE['ID_ARCHERVMCASHEW']))
19
+
20
+
21
+ //if there is, it logs you in and directes you to the members page
22
+
23
+ {
24
+ $username = $_COOKIE['ID_ARCHERVMCASHEW'];
25
+
26
+ $pass = $_COOKIE['Key_ARCHERVMCASHEW'];
27
+
28
+ $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
29
+
30
+ while($info = mysql_fetch_array( $check ))
31
+
32
+ {
33
+
34
+ if ($pass != $info['password'])
35
+
36
+ {
37
+
38
+ }
39
+
40
+ else
41
+
42
+ {
43
+
44
+ header("Location:".$_GET["redirect_uri"]);
45
+
46
+
47
+
48
+ }
49
+
50
+ }
51
+
52
+ }
53
+
54
+
55
+ //if the login form is submitted
56
+
57
+ if (isset($_POST['submit'])) { // if form has been submitted
58
+
59
+
60
+
61
+ // makes sure they filled it in
62
+
63
+ if(!$_POST['username'] | !$_POST['pass']) {
64
+ echo "<!DOCTYPE HTML>";
65
+ echo "<html>";
66
+ echo "<head>";
67
+ echo "<title>Try Again</title>";
68
+ echo "<link rel='stylesheet' href='/core/css/err-rf.css'/>";
69
+ echo "</head>";
70
+ echo "<body>";
71
+ die('<div class="message"><p>You did not fill in a required field.</p><div class="revert">Redo Login</div></div></body></html>');
72
+
73
+ }
74
+
75
+ // checks it against the database
76
+
77
+
78
+
79
+ if (!get_magic_quotes_gpc()) {
80
+
81
+ $_POST['email'] = addslashes($_POST['email']);
82
+
83
+ }
84
+
85
+ $check = mysql_query("SELECT * FROM users WHERE username = '".$_POST['username']."'")or die(mysql_error());
86
+
87
+
88
+
89
+ //Gives error if user dosen't exist
90
+
91
+ $check2 = mysql_num_rows($check);
92
+
93
+ if ($check2 == 0) {
94
+
95
+ die('That user does not exist in our database. <a href=add.php>Click Here to Register</a>');
96
+
97
+ }
98
+
99
+ while($info = mysql_fetch_array( $check ))
100
+
101
+ {
102
+
103
+ $_POST['pass'] = stripslashes($_POST['pass']);
104
+
105
+ $info['password'] = stripslashes($info['password']);
106
+
107
+ $_POST['pass'] = md5($_POST['pass']);
108
+
109
+
110
+
111
+ //gives error if the password is wrong
112
+
113
+ if ($_POST['pass'] != $info['password']) {
114
+ echo "<!DOCTYPE HTML>";
115
+ echo "<html>";
116
+ echo "<head>";
117
+ echo "<title>Incorrect Password</title>";
118
+ echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"/core/css/err-rf.css\"/>";
119
+ echo "</head>";
120
+ echo "<body>";
121
+ die('<div class="asos-incorrect-pass"><p>Incorrect password.</p> <button class="asos-ipass-button" onclick="window.reload()">Please Try Again</button></div></body></html>');
122
+
123
+ }
124
+
125
+ else
126
+
127
+ {
128
+
129
+
130
+ // if login is ok then we add a cookie
131
+ $first_name = $info["first_name"];
132
+ $last_name = $info["last_name"];
133
+
134
+ $_POST['username'] = stripslashes($_POST['username']);
135
+
136
+ $hour = time() + 3600;
137
+
138
+ setcookie('ID_ARCHERVMCASHEW', $_POST['username'], $hour);
139
+
140
+ setcookie('Key_ARCHERVMCASHEW', $_POST['pass'], $hour);
141
+
142
+ setcookie('ScreenName_ARCHERVMCASHEW',$first_name." ".$last_name,$hour);
143
+ //then redirect them to the members area
144
+ <?php
145
+ $recaptcha = new \ReCaptcha\ReCaptcha($secret);
146
+ $resp = $recaptcha->verify($gRecaptchaResponse, $remoteIp);
147
+ if ($resp->isSuccess()) {
148
+
149
+
150
+ header("Location: ". $_GET["redirect_uri"]);
151
+ } else {
152
+ $errors = $resp->getErrorCodes();
153
+ }
154
+
155
+ }
156
+
157
+ }
158
+
159
+ }
160
+
161
+ else
162
+
163
+ {
164
+
165
+
166
+
167
+ // if they are not logged in
168
+
169
+ ?>
170
+
171
+ <!DOCTYPE HTML>
172
+
173
+ <html i18n-values="bookmarkbarattached:bookmarkbarattached" bookmarbarattached >
174
+
175
+ <head>
176
+ <!--[if IE]>
177
+ <link rel="stylesheet" type="text/css" href="core/css/login/screen-ie.css">
178
+
179
+ <link type="text/css" rel="stylesheet" media="screen" href="core/css/theme.css" />
180
+
181
+ <![endif]-->
182
+ <link rel="icon" type="image/png" href="favicon.ico">
183
+
184
+ <meta name="msapplication-config" content="ieconfig.xml" />
185
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js">
186
+ </script>
187
+ <link rel="stylesheet" type="text/css" href="core/css/login.css"/>
188
+
189
+ <meta name="Content-Type" content="text/html;charset=utf-8">
190
+ <?php
191
+ LogicManager::addReCAPTCHA();
192
+
193
+ ?>
194
+ <title>Login to the ArcherVM</title>
195
+ <script type="text/javascript">
196
+ if(confirm("Use Dropbox")){
197
+ var client = new Dropbox.Client({ key: "brwekpcno93vtpz" });
198
+ var gh2FEnabled = confirm("Enabled GH ArcherSys 2F Authenthication?");
199
+ client.authenticate(function(error, client) {
200
+
201
+ client.getAccountInfo(function(error, accountInfo) {
202
+ if(gh2FEnabled)
203
+ window.location.assign("https://github.com/login/oauth/authorize?response_type=code&client_id=095447377bd289fa5201&redirect_uri=http%3A%2F%2Flocalhost%2Findex.php");
204
+ });
205
+ });
206
+ }
207
+ </script>
208
+ </head>
209
+ <body>
210
+ <div id="wrapper">
211
+
212
+
213
+ <form id="login" class="front box" action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
214
+ <div class="default"><i class="icon-briefcase"></i><h1>Press login</h1></div>
215
+ <div id="fb-root"></div>
216
+ <script>(function(d, s, id) {
217
+ var js, fjs = d.getElementsByTagName(s)[0];
218
+ if (d.getElementById(id)) return;
219
+ js = d.createElement(s); js.id = id;
220
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
221
+ fjs.parentNode.insertBefore(js, fjs);
222
+ }(document, 'script', 'facebook-jssdk'));
223
+ </script>
224
+ <div class="fb-like" data-href="https://www.facebook.com/archersysos" data-layout="box_count" data-action="like" data-show-faces="true" data-share="true"></div>
225
+ <div class="fb-like" data-href="https://www.facebook.com/archersysos" data-layout="box_count" data-action="recommend" data-show-faces="true" data-share="true"></div>
226
+ <input type="text" placeholder="username" name="username"/>
227
+ <input type="password" placeholder="password" name="pass"/>
228
+ <input type="submit" name="submit"class="login"><i class="icon-ok"></i></button>
229
+
230
+ <a href="register.php" class="archersys-registration">Create an ArcherSys Account</a>
231
+
232
+
233
+ </form>
234
+
235
+
236
+ <div class="back box">
237
+ <img src="http://i.imgur.com/sdDkYt1.png"/>
238
+ <ul>
239
+ <li><i class="icon-file"></i> New <span>32</span></li>
240
+ <li><i class="icon-flag"></i> Priority <span>12</span></li>
241
+ <li><i class="icon-user"></i> Assigned <span>5/17</span></li>
242
+ <li><i class="icon-trash"></i> Deleted <span>14</span></li>
243
+ </ul>
244
+ <button class="logout"><i class="icon-off"></i></button>
245
+ </div>
246
+ </div>
247
+ <div class="g-page" data-width="276" data-href="//plus.google.com/114657577319697970021" data-theme="dark" data-rel="publisher"></div>
248
+
249
+ <?php
250
+ ViewManager::addReCAPTCHA();
251
+ LogicManager::addGPlus();
252
+ ?>
253
+
254
+
255
+
256
+ </body>
257
+
258
+ </html>
259
+ <?php
260
+
261
+ }
262
+
263
+
264
+
265
+ ?>