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,302 @@
1
+
2
+ <?php
3
+ require_once "config.php";
4
+ require_once "includes/component-functions.php";
5
+ require_once "includes/ViewManager.php";
6
+ require_once "includes/DataManager.php";
7
+ require_once "includes/LogicManager.php";
8
+ use ArcherSys\Viewer\ViewManager;
9
+ use ArcherSys\Data\DataManager;
10
+ use ArcherSys\Viewer\LogicManager;
11
+ LogicManager::runStartScreen();
12
+ // Connects to your Database
13
+ @ini_set("max_execution_time", 300);
14
+ mysql_connect($config["dbhost"], $config["dbuser"], $config["dbpass"]) or DataManager::notify();
15
+
16
+ mysql_select_db( "acoserver_acoserver") or DataManager::notify();
17
+
18
+
19
+ //checks cookies to make sure they are logged in
20
+
21
+
22
+
23
+
24
+ if(isset($_COOKIE['ID_ARCHERVMCASHEW']))
25
+
26
+ {
27
+
28
+ $username = $_COOKIE['ID_ARCHERVMCASHEW'];
29
+
30
+ $pass = $_COOKIE['Key_ARCHERVMCASHEW'];
31
+
32
+ $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or DataManager::notify();
33
+
34
+ while($info = mysql_fetch_array( $check ))
35
+
36
+ {
37
+
38
+
39
+
40
+ //if the cookie has the wrong password, they are taken to the login page
41
+
42
+ if ($pass != $info['password'])
43
+
44
+ { header("Location: login.php");
45
+
46
+ }
47
+
48
+
49
+
50
+ //otherwise they are shown the admin area
51
+
52
+ else
53
+
54
+ {
55
+
56
+
57
+ ?>
58
+ <!DOCTYPE html>
59
+
60
+ <html>
61
+ <head>
62
+ <meta charset="utf-8">
63
+
64
+ <title>VM Home</title>
65
+
66
+ <?php
67
+ ViewManager::setupFavicons();
68
+ ViewManager::addMSAppConfig();
69
+ ViewManager::addAppleAppConfig();
70
+ addStartScreen();
71
+ ?>
72
+ <meta content='width=device-width, initial-scale=1.0, user-scalable=no' name='viewport'>
73
+
74
+
75
+ <script src="/core/js/jquery.js"></script>
76
+
77
+ <script src="core/js/notidar-amd.js"></script>
78
+ <script src="/core/js/activity-amd.js"></script>
79
+
80
+ <link rel="manifest" href="manifest.json">
81
+
82
+
83
+
84
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge">
85
+ <link href='http://fonts.googleapis.com/css?family=Droid+Sans|Open+Sans:700,600' rel='stylesheet' type='text/css'>
86
+
87
+
88
+ <link rel="stylesheet" href="/core/css/start2.css">
89
+
90
+
91
+ <script>
92
+ window.Notification.requestPermission(function(status) {
93
+
94
+ $("#notnumber").text(Notidar.Notidex.length);
95
+
96
+ var condition = (window.navigator.onLine) ? "online" : "offline";
97
+ if (condition === "online") {
98
+
99
+ Notidar.pushOnlineNotification();
100
+ }
101
+ else if (condition === "ofline") {
102
+ Notidar.pushOfflineNotification();
103
+
104
+ }
105
+
106
+ $(window).bind('online', function() {
107
+ condition = "online";
108
+ Notidar.pushOnlineNotification();
109
+ console.info("[CafeSync]: Internet Access Detected");
110
+ });
111
+ $(window).bind('offline', function() {
112
+
113
+ Notidar.pushOfflineNotification();
114
+ console.info("[CafeSync]: Disconnected from the Internet.");
115
+ });
116
+ });
117
+ </script>
118
+ <script>
119
+ $(function(){
120
+ $("#notnumber").click(function(){
121
+ $("#notnumber").text(Notidar.Notidex.length);
122
+ });
123
+ $("title").text("VM Home - "+localStorage.getItem("os-name"));
124
+
125
+
126
+ var sliderUL = $('div.slider').children('ul'),
127
+ screens = sliderUL.find('li'),
128
+ screenWidth = screens.width(),
129
+ screenLength = screens.length,
130
+ current = 1,
131
+ totalScreenWidth = screenLength * screenWidth;
132
+ $("#silverdrive-starter").click(function(){
133
+ var sd = ActivityManager.SilverDriveActivity();
134
+ sd.start();
135
+ });
136
+ var h1 = $('div.header').children('h1');
137
+
138
+ $('#screen-nav').find('button').on('click', function() {
139
+ var direction = $(this).data('dir'),
140
+ loc = screenWidth;
141
+
142
+ (direction === 'next') ? ++current : --current;
143
+
144
+ if(current === 0) {
145
+ current = screenLength;
146
+ loc = totalScreenWidth - screenWidth;
147
+ direction = 'next';
148
+ } else if (current - 1 === screenLength) {
149
+ current = 1;
150
+ loc = 0;
151
+ }
152
+ transition(sliderUL, loc, direction);
153
+
154
+ });
155
+ $(document).keypress(function(e){
156
+ switch(e.keyCode){
157
+ case 38: window.location.assign("http://localhost/settings/");break;
158
+ }
159
+ });
160
+
161
+ $(".header h1").click(function(){
162
+ window.location.assign("http://localhost/settings");
163
+ });
164
+
165
+ function transition(container, loc, direction) {
166
+ var unit;
167
+
168
+ if(direction && loc !== 0) {
169
+ unit = (direction === 'next') ? '-=' : '+=';
170
+ }
171
+
172
+ container.animate({
173
+
174
+ 'margin-left': unit ? (unit + loc) : loc
175
+ });
176
+ }
177
+ });
178
+
179
+ </script>
180
+
181
+
182
+
183
+
184
+
185
+ </head>
186
+
187
+ <body >
188
+
189
+
190
+ <div class="container" >
191
+
192
+
193
+ <?php displayLoginInfo($info); ?>
194
+ <div class="slider">
195
+ <ul class="screen">
196
+ <li>
197
+ <?php
198
+ ViewManager::addGame("http://localhost/entertainment/games/index.php","Games");
199
+ ?>
200
+ <div class="module purple double img w">
201
+ <h2 class="title">Home</h2>
202
+ <p class="subheading"> <a href="main.php">Welcome to the new ArcherSys UI !</a> </p>
203
+ </div>
204
+ <a href="https://www.flowdock.com/oauth/authorize?client_id=ce74f931ded75f964c9e98c3676ff5dfdfee64d5fb41178f801882029e4d2f00&redirect_uri=http%3A%2F%2Flocalhost%3A80&response_type=code"><div class="module purple double img w">
205
+ <p class="title">Sign in to Flowdock</p>
206
+ <p class="subheading"> <a href="main.php">Log in to Flowdock!</a> </p>
207
+ </div></a>
208
+ <div class="module midblue double img twitter">
209
+ <p class="title">Wordpress</p>
210
+ <p class="subheading"> <a href="archersocial">Access your social center</a></p>
211
+ </div>
212
+ <a href="/Producktiviti/SilverTick" class='wide blue cal_e'>
213
+ <h1><?php echo date("j"); ?></h1><p><?php echo date("l");?></p>
214
+ <h2 class="top cal_i">Today's Schedule</h2>
215
+ <i class="icon-calendar"></i>
216
+ </a>
217
+ <div class="module neonblue single img word" >
218
+ <a href="Producktiviti/PDFLint">
219
+ <p class="title">PDFLint</p>
220
+ </a>
221
+ </div>
222
+ <div class="module red single img birds">
223
+ <a href="http://localhost/entertainment/games/index.php"><p class="title">Games</p></a>
224
+ </div>
225
+
226
+
227
+ </li>
228
+ <li>
229
+ <div class="module yellow double img not">
230
+ <p class="title">Notifications</p>
231
+ <div class="img msg">
232
+ <p class="sub-pheading"> your notifications:<span id="notnumber"><?php echo $_SESSION["notifications"]; ?></span></p>
233
+ </div>
234
+ </div></li>
235
+ <li>
236
+ <div class="module blue double img ps">
237
+ <p class="title">CanvasShoppe</p>
238
+ </div>
239
+ <div class="module green single img fb" id="birdc">
240
+
241
+ <p class="title">Collaborate</p>
242
+
243
+ </div>
244
+ <div class="module red single img mail">
245
+ <p class="title">RoundCube Mail</p>
246
+ </div>
247
+ </li>
248
+
249
+ <li>
250
+ <div class="module blue single img mahara">
251
+ <a href="http://127.0.0.1/apps/mahara/htdocs"><p class="title">Partners</p></a>
252
+ </div>
253
+ <div class="module red single img market">
254
+ <a href="https://sites.google.com/site/archersysoswalnutstore/"><p class="title">ArcherSys Walnut App Store</p></a>
255
+ </div>
256
+
257
+ <div class="module blue single img word" id="silverdrive-starter">
258
+ <p class="title">Start SilverDrive</p>
259
+ </div>
260
+ <div class="module single blue img mail">
261
+ <p class="title">ArrowHeadMail</p>
262
+ </div>
263
+ </li>
264
+ </ul>
265
+
266
+ </div>
267
+
268
+
269
+
270
+
271
+ <div id="screen-nav">
272
+
273
+ <button data-dir="prev"><</button>
274
+ <button data-dir="next">></button>
275
+ </div>
276
+
277
+ </div>
278
+
279
+
280
+
281
+ </body>
282
+ <?php
283
+
284
+ }
285
+
286
+ }
287
+
288
+ }
289
+
290
+ else {
291
+
292
+ header("Location: login.php?redirect_uri=index.php");
293
+
294
+ }
295
+
296
+
297
+
298
+
299
+
300
+ ?>
301
+ </html>
302
+
@@ -0,0 +1,315 @@
1
+
2
+ <?php
3
+ require_once "config.php";
4
+ require_once "includes/component-functions.php";
5
+ require_once "includes/ViewManager.php";
6
+ require_once "includes/DataManager.php";
7
+ require_once "includes/LogicManager.php";
8
+ use ArcherSys\Viewer\ViewManager;
9
+ use ArcherSys\Data\DataManager;
10
+ use ArcherSys\Viewer\LogicManager;
11
+ LogicManager::runStartScreen();
12
+ // Connects to your Database
13
+ @ini_set("max_execution_time", 300);
14
+ mysql_connect($config["dbhost"], $config["dbuser"], $config["dbpass"]) or DataManager::notify();
15
+
16
+ mysql_select_db( "acoserver_acoserver") or DataManager::notify();
17
+
18
+
19
+ //checks cookies to make sure they are logged in
20
+
21
+
22
+
23
+
24
+ if(isset($_COOKIE['ID_ARCHERVMCASHEW']))
25
+
26
+ {
27
+
28
+ $username = $_COOKIE['ID_ARCHERVMCASHEW'];
29
+
30
+ $pass = $_COOKIE['Key_ARCHERVMCASHEW'];
31
+
32
+ $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or DataManager::notify();
33
+
34
+ while($info = mysql_fetch_array( $check ))
35
+
36
+ {
37
+
38
+
39
+
40
+ //if the cookie has the wrong password, they are taken to the login page
41
+
42
+ if ($pass != $info['password'])
43
+
44
+ { header("Location: login.php");
45
+
46
+ }
47
+
48
+
49
+
50
+ //otherwise they are shown the admin area
51
+
52
+ else
53
+
54
+ {
55
+
56
+
57
+ ?>
58
+ <!DOCTYPE html>
59
+
60
+ <html>
61
+ <head>
62
+ <meta charset="utf-8">
63
+
64
+ <title>VM Home</title>
65
+
66
+ <?php
67
+ ViewManager::setupFavicons();
68
+ ViewManager::addMSAppConfig();
69
+ ViewManager::addAppleAppConfig();
70
+ addStartScreen();
71
+ ?>
72
+ <meta content='width=device-width, initial-scale=1.0, user-scalable=no' name='viewport'>
73
+
74
+
75
+ <script src="/core/js/jquery.js"></script>
76
+
77
+ <script src="core/js/notidar-amd.js"></script>
78
+ <script src="/core/js/activity-amd.js"></script>
79
+
80
+ <link rel="manifest" href="manifest.json">
81
+
82
+
83
+
84
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge">
85
+ <link href='http://fonts.googleapis.com/css?family=Droid+Sans|Open+Sans:700,600' rel='stylesheet' type='text/css'>
86
+
87
+
88
+ <link rel="stylesheet" href="/core/css/start2.css">
89
+
90
+
91
+ <script>
92
+ window.Notification.requestPermission(function(status) {
93
+
94
+
95
+ var condition = (window.navigator.onLine) ? "online" : "offline";
96
+ if (condition === "online") {
97
+
98
+ Notidar.pushOnlineNotification(;
99
+ $.ajax({
100
+ url: 'notifications-gateway.php',
101
+ dataType: 'json'
102
+ data:{
103
+ notification-type: "online",
104
+ }
105
+ type: "POST"
106
+ });
107
+
108
+ }
109
+ else if (condition === "online") {
110
+ Notidar.pushfflineNotification();
111
+
112
+ Notidar.pushOnlineNotification(;
113
+ $.ajax({
114
+ url: 'notifications-gateway.php',
115
+ dataType: 'json'
116
+ data:{
117
+ notification-type: "online",
118
+ }
119
+ type: "POST"
120
+ });
121
+ }
122
+
123
+ $(window).bind('online', function() {
124
+ condition = "online";
125
+ Notidar.pushOnlineNotification();
126
+ console.info("[CafeSync]: Internet Access Detected");
127
+ });
128
+ $(window).bind('offline', function() {
129
+
130
+ Notidar.pushOfflineNotification();
131
+ console.info("[CafeSync]: Disconnected from the Internet.");
132
+ });
133
+ });
134
+ </script>
135
+ <script>
136
+ $(function(){
137
+ $("#notnumber").click(function(){
138
+ $("#notnumber").text(Notidar.Notidex.length);
139
+ });
140
+ $("title").text("VM Home - "+localStorage.getItem("os-name"));
141
+
142
+
143
+ var sliderUL = $('div.slider').children('ul'),
144
+ screens = sliderUL.find('li'),
145
+ screenWidth = screens.width(),
146
+ screenLength = screens.length,
147
+ current = 1,
148
+ totalScreenWidth = screenLength * screenWidth;
149
+ $("#silverdrive-starter").click(function(){
150
+ var sd = ActivityManager.SilverDriveActivity();
151
+ sd.start();
152
+ });
153
+ var h1 = $('div.header').children('h1');
154
+
155
+ $('#screen-nav').find('button').on('click', function() {
156
+ var direction = $(this).data('dir'),
157
+ loc = screenWidth;
158
+
159
+ (direction === 'next') ? ++current : --current;
160
+
161
+ if(current === 0) {
162
+ current = screenLength;
163
+ loc = totalScreenWidth - screenWidth;
164
+ direction = 'next';
165
+ } else if (current - 1 === screenLength) {
166
+ current = 1;
167
+ loc = 0;
168
+ }
169
+ transition(sliderUL, loc, direction);
170
+
171
+ });
172
+
173
+
174
+ $(".header h1").click(function(){
175
+ window.location.assign("http://localhost/settings");
176
+ });
177
+
178
+ function transition(container, loc, direction) {
179
+ var unit;
180
+
181
+ if(direction && loc !== 0) {
182
+ unit = (direction === 'next') ? '-=' : '+=';
183
+ }
184
+
185
+ container.animate({
186
+
187
+ 'margin-left': unit ? (unit + loc) : loc
188
+ });
189
+ }
190
+ });
191
+
192
+ </script>
193
+
194
+
195
+
196
+
197
+
198
+ </head>
199
+
200
+ <body >
201
+
202
+
203
+ <div class="container" >
204
+
205
+
206
+ <?php displayLoginInfo($info); ?>
207
+ <div class="slider">
208
+ <ul class="screen">
209
+ <li>
210
+ <?php
211
+ ViewManager::addGame("http://localhost/entertainment/games/index.php","Games");
212
+ ?>
213
+ <div class="module purple double img w">
214
+ <h2 class="title">Home</h2>
215
+ <p class="subheading"> <a href="main.php">Welcome to the new ArcherSys UI !</a> </p>
216
+ </div>
217
+ <a href="https://www.flowdock.com/oauth/authorize?client_id=ce74f931ded75f964c9e98c3676ff5dfdfee64d5fb41178f801882029e4d2f00&redirect_uri=http%3A%2F%2Flocalhost%3A80&response_type=code"><div class="module purple double img w">
218
+ <h2 class="title">Sign in to Flowdock</h2>
219
+ <p class="subheading"> <a href="main.php">Log in to Flowdock!</a> </p>
220
+ </div></a>
221
+ <div class="module midblue double img twitter">
222
+ <h2 class="title">Wordpress</h2>
223
+ <p class="subheading"> <a href="archersocial">Access your social center</a></p>
224
+ </div>
225
+ <a href="/Producktiviti/SilverTick" class='wide blue cal_e'>
226
+ <h1><?php echo date("j"); ?></h1><p><?php echo date("l");?></p>
227
+ <h2 class="top cal_i">Today's Schedule</h2>
228
+ <i class="icon-calendar"></i>
229
+ </a>
230
+ <div class="module neonblue single img word" >
231
+ <a href="Producktiviti/PDFLint">
232
+ <p class="title">PDFLint</p>
233
+ </a>
234
+ </div>
235
+ <div class="module red single img birds">
236
+ <a href="http://localhost/entertainment/games/index.php"><p class="title">Games</p></a>
237
+ </div>
238
+
239
+
240
+ </li>
241
+ <li>
242
+ <div class="module yellow double img not">
243
+ <p class="title">Notifications</p>
244
+ <div class="img msg">
245
+ <p class="sub-heading"> your notifications:<span id="notnumber">0</span></p>
246
+ </div>
247
+ </div></li>
248
+ <li>
249
+ <div class="module blue double img ps">
250
+ <p class="title">CanvasShoppe</p>
251
+ </div>
252
+ <div class="module green single img fb" id="birdc">
253
+
254
+ <p class="title">Collaborate</p>
255
+
256
+ </div>
257
+ <div class="module red single img mail">
258
+ <h2 class="title">RoundCube Mail</h2>
259
+ </div>
260
+ </li>
261
+
262
+ <li>
263
+ <div class="module blue single img mahara">
264
+ <a href="http://127.0.0.1/apps/mahara/htdocs"><p class="title">Partners</p></a>
265
+ </div>
266
+ <div class="module red single img market">
267
+ <a href="https://sites.google.com/site/archersysoswalnutstore/"><p class="title">ArcherSys Walnut App Store</p></a>
268
+ </div>
269
+
270
+ <div class="module blue single img word" id="silverdrive-starter">
271
+ <p class="title">Start SilverDrive</p>
272
+ </div>
273
+ <div class="module single blue img mail">
274
+ <p class="title">ArrowHeadMail</p>
275
+ </div>
276
+ </li>
277
+ </ul>
278
+
279
+ </div>
280
+
281
+
282
+
283
+
284
+ <div id="screen-nav">
285
+
286
+ <button data-dir="prev"><</button>
287
+ <button data-dir="next">></button>
288
+ </div>
289
+
290
+ </div>
291
+
292
+
293
+
294
+ </body>
295
+ <?php
296
+
297
+ }
298
+
299
+ }
300
+
301
+ }
302
+
303
+ else {
304
+
305
+ header("Location: login.php?redirect_uri=index.php");
306
+
307
+ }
308
+
309
+
310
+
311
+
312
+
313
+ ?>
314
+ </html>
315
+