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,68 @@
1
+ <<<<<<< HEAD
2
+ def run_rps():
3
+ choices = []
4
+ names = []
5
+ for i in range(0,2):
6
+ names.append(input("Enter your name " + str(i+1)))
7
+ for i in names:
8
+ print("Welcome to Rock Paper Scissors, "+i)
9
+ choices.append(input("If you had to choose between a rock, a piece of paper, and a silly pair of scissors, what would you choose?:"))
10
+ if (choices[0] == "Rock") and (choices[1] == "Scissors"):
11
+ print("Player 1 (" + names[0] + ") Wins! ( Rock > Scissors)")
12
+ elif (choices[1] == "Rock") and (choices[0] == "Scissors"):
13
+ print("Player 2 (" + names[1] + " Wins! (Rock > Scissors)")
14
+ elif (choices[0] == "Paper") and (choices[1] == "Rock"):
15
+ print("Player 1 (" + names[0] + ") Wins! (Paper > Rock)")
16
+ elif (choices[1] == "Paper") and (choices[0] == "Rock"):
17
+ print("Player 2 (" + names[1] + ") Wins! (Paper > Rock)")
18
+ elif (choices[0] == "Scissors") and (choices[0] == "Paper"):
19
+ print("Player 1 (" + names[0] + ") Wins! (Scissors > Paper)")
20
+ elif (choices[1] == "Scissors") and (choices[1] == "Paper"):
21
+ print("Player 2 (" + names[0] + ") Wins! (Scissors > Paper)")
22
+
23
+ run_rps()
24
+ while True:
25
+ if input("Play again?") == "Yes":
26
+ run_rps()
27
+ else:
28
+ break
29
+
30
+
31
+
32
+
33
+ =======
34
+
35
+ def run_rps():
36
+ names = []
37
+ choice = []
38
+ for i in range(0,2):
39
+ names.append(input("Name of Player " + str(i+1)))
40
+ for i in range(0,2):
41
+ print("Welcome to 'Rock, Paper, Scissors' , " + names[i])
42
+ choice.append(input("Rock, Paper, or Scissors"))
43
+ print("Processing")
44
+ if (choice[0] == "Rock") and (choice [1] == "Scissors"):
45
+ print("Player 1 Wins (Rock > Scissors) ")
46
+ elif(choice[1] == "Rock") and (choice[0] == "Scissors"):
47
+ print("Player 2 Wins (Rock > Scissors)")
48
+ elif(choice[0] == "Scissors") and (choice[1] == "Paper"):
49
+ print("Player 1 Wins (Scissors > Paper)")
50
+ elif(choice[1] == "Scissors") and (choice[0] == "Paper"):
51
+ print("Player 2 Wins (Scissors > Paper)")
52
+ elif(choice[0] == "Paper") and (choice[1] == "Rock"):
53
+ print("Player 1 Wins (Paper > Rock)")
54
+ elif(choice[1] == "Paper") and (choice[0] == "Rock"):
55
+ print("Player 2 Wins (Paper > Rock)")
56
+
57
+ run_rps()
58
+ play_again = input("Play Again")
59
+ if play_again == "Yes":
60
+ run_rps()
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+ >>>>>>> 5b57999e67de357067ea8a442d900c4378e88c2f
@@ -0,0 +1,28 @@
1
+
2
+ choices = []
3
+ names = []
4
+ for i in range(0,2):
5
+ names.append(input("Enter your name " + str(i+1)))
6
+ for i in names:
7
+ print("Welcome to Rock Paper Scissors, "+i)
8
+ choices.append(input("If you had to choose between a rock, a piece of paper, and a silly pair of scissors, what would you choose?:"))
9
+ if (choices[0] == "Rock") and (choices[1] == "Scissors"):
10
+ print("Player 1 (" + names[0] + ") Wins! ( Rock > Scissors)") elif (choices[1] == "Rock") and (choices[0] == "Scissors"):
11
+ print("Player 2 (" + names[1] + " Wins! (Rock > Scissors) ")
12
+ elif (choices[0] == "Paper") and (choices[1] == "Rock"):
13
+ print("Player 1 (" + names[0] + ") Wins! (Paper > Rock)")
14
+ elif (choices[1] == "Paper") and (choices[0] == "Rock"):
15
+ print("Player 2 (" + names[1] + ") Wins! (Paper > Rock)")
16
+ elif (choices[0] == "Scissors") and (choices[0] == "Paper"):
17
+ print("Player 1 (" + names[0] + ") Wins! (Scissors > Paper)")
18
+ elif (choices[1] == "Scissors") and (choices[1] == "Paper"):
19
+ print("Player 2 (" + names[0] + ") Wins! (Scissors > Paper)")
20
+
21
+ run_rps()
22
+ if input("Play again?") == "Yes":
23
+ run_rps()
24
+
25
+
26
+
27
+
28
+
@@ -0,0 +1,2 @@
1
+ require 'ruby_mud'
2
+ connection = MudServer::Session.new("127.0.0.1")
@@ -0,0 +1 @@
1
+ C:\xampp\htdocs\Rust\bin\rustc
@@ -0,0 +1,6 @@
1
+ ::--webkit-scrollbar{
2
+ background-color: red;
3
+ }
4
+ ::--webkit-scrollbar-thumb{}
5
+ ::--webkit-scrollbar-track{}
6
+
@@ -0,0 +1,4 @@
1
+ ::--webkit-scrollbar{}
2
+ ::--webkit-scrollbar-thumb{}
3
+ ::--webkit-scrollbar-track{}
4
+
@@ -0,0 +1,5 @@
1
+ # .scrutinizer.yml
2
+ build:
3
+ environment:
4
+ php:
5
+ version: 5.6.3 # Common versions: 5.4.28, 5.5.12, or hhvm
@@ -0,0 +1,177 @@
1
+
2
+
3
+ <!DOCTYPE html>
4
+ <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6
+ <head>
7
+ <meta charset="utf-8">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+
10
+ <title>Search &mdash; ArcherBashPYDocs 1.0.0. documentation</title>
11
+
12
+
13
+
14
+
15
+
16
+
17
+ <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
28
+
29
+
30
+
31
+
32
+
33
+ <link rel="top" title="ArcherBashPYDocs 1.0.0. documentation" href="index.html"/>
34
+
35
+
36
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
37
+
38
+ </head>
39
+
40
+ <body class="wy-body-for-nav" role="document">
41
+
42
+ <div class="wy-grid-for-nav">
43
+
44
+
45
+ <nav data-toggle="wy-nav-shift" class="wy-nav-side">
46
+ <div class="wy-side-nav-search">
47
+
48
+ <a href="index.html" class="fa fa-home"> ArcherBashPYDocs</a>
49
+
50
+
51
+ <div role="search">
52
+ <form id="rtd-search-form" class="wy-form" action="#" method="get">
53
+ <input type="text" name="q" placeholder="Search docs" />
54
+ <input type="hidden" name="check_keywords" value="yes" />
55
+ <input type="hidden" name="area" value="default" />
56
+ </form>
57
+ </div>
58
+ </div>
59
+
60
+ <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
61
+
62
+
63
+
64
+ <ul class="simple">
65
+ </ul>
66
+
67
+
68
+
69
+ </div>
70
+ &nbsp;
71
+ </nav>
72
+
73
+ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
74
+
75
+
76
+ <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
77
+ <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
78
+ <a href="index.html">ArcherBashPYDocs</a>
79
+ </nav>
80
+
81
+
82
+
83
+ <div class="wy-nav-content">
84
+ <div class="rst-content">
85
+ <div role="navigation" aria-label="breadcrumbs navigation">
86
+ <ul class="wy-breadcrumbs">
87
+ <li><a href="index.html">Docs</a> &raquo;</li>
88
+
89
+ <li></li>
90
+ <li class="wy-breadcrumbs-aside">
91
+
92
+ </li>
93
+ </ul>
94
+ <hr/>
95
+ </div>
96
+ <div role="main" class="document">
97
+
98
+ <noscript>
99
+ <div id="fallback" class="admonition warning">
100
+ <p class="last">
101
+ Please activate JavaScript to enable the search
102
+ functionality.
103
+ </p>
104
+ </div>
105
+ </noscript>
106
+
107
+
108
+ <div id="search-results">
109
+
110
+ </div>
111
+
112
+ </div>
113
+ <footer>
114
+
115
+
116
+ <hr/>
117
+
118
+ <div role="contentinfo">
119
+ <p>
120
+ &copy; Copyright 2015, Weldon Henson.
121
+ </p>
122
+ </div>
123
+
124
+ Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
125
+
126
+ </footer>
127
+ </div>
128
+ </div>
129
+
130
+ </section>
131
+
132
+ </div>
133
+
134
+
135
+
136
+
137
+
138
+ <script type="text/javascript">
139
+ var DOCUMENTATION_OPTIONS = {
140
+ URL_ROOT:'./',
141
+ VERSION:'1.0.0.',
142
+ COLLAPSE_INDEX:false,
143
+ FILE_SUFFIX:'.html',
144
+ HAS_SOURCE: true
145
+ };
146
+ </script>
147
+ <script type="text/javascript" src="_static/jquery.js"></script>
148
+ <script type="text/javascript" src="_static/underscore.js"></script>
149
+ <script type="text/javascript" src="_static/doctools.js"></script>
150
+ <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
151
+ <script type="text/javascript" src="_static/searchtools.js"></script>
152
+
153
+
154
+
155
+
156
+
157
+ <script type="text/javascript" src="_static/js/theme.js"></script>
158
+
159
+
160
+
161
+
162
+ <script type="text/javascript">
163
+ jQuery(function () {
164
+ SphinxRtdTheme.StickyNav.enable();
165
+ });
166
+ </script>
167
+
168
+ <script type="text/javascript">
169
+ jQuery(function() { Search.loadIndex("searchindex.js"); });
170
+ </script>
171
+
172
+ <script type="text/javascript" id="searchindexloader"></script>
173
+
174
+
175
+
176
+ </body>
177
+ </html>
@@ -0,0 +1 @@
1
+ Search.setIndex({envversion:47,filenames:["index"],objects:{},objnames:{},objtypes:{},terms:{content:0,index:0,modul:0,page:0,search:0},titles:["Welcome to ArcherBashPYDocs&#8217;s documentation!"],titleterms:{archerbashpydoc:0,document:0,indic:0,tabl:0,welcom:0}})
@@ -0,0 +1,300 @@
1
+ <?php
2
+ /**
3
+ * ownCloud setup wizard
4
+ *
5
+ * @author Frank Karlitschek
6
+ * @copyright 2012 Frank Karlitschek frank@owncloud.org
7
+ *
8
+ * This library is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
10
+ * License as published by the Free Software Foundation; either
11
+ * version 3 of the License, or any later version.
12
+ *
13
+ * This library is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public
19
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+ /**
24
+ * Please copy this file into your webserver root and open it with a browser. The setup wizard checks the dependency, downloads the newest ownCloud version, unpacks it and redirects to the ownCloud first run wizard.
25
+ */
26
+
27
+
28
+ // init
29
+ ob_start();
30
+ error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
31
+ ini_set('display_errors', 1);
32
+ @set_time_limit(0);
33
+
34
+ /**
35
+ * @brief Setup class with a few helper functions
36
+ *
37
+ */
38
+ class oc_setup {
39
+
40
+
41
+ /**
42
+ * @brief Checks if all the ownCloud dependencies are installed
43
+ * @return string with error messages
44
+ */
45
+ static public function checkdependencies() {
46
+ $error='';
47
+
48
+ // do we have PHP 5.3.2 or newer?
49
+ if(version_compare(PHP_VERSION, '5.3.2', '<')) {
50
+ $error.='PHP 5.3.2 is required. Please ask your server administrator to update PHP to version 5.3.2 or higher. PHP 5.2 is no longer supported by ownCloud and the PHP community.';
51
+ }
52
+
53
+ // do we have the zip module?
54
+ if(!class_exists('ZipArchive')){
55
+ $error.='PHP module zip not installed. Please ask your server administrator to install the module.';
56
+ }
57
+
58
+ // do we have the curl module?
59
+ if(!function_exists('curl_exec')){
60
+ $error.='PHP module curl not installed. Please ask your server administrator to install the module.';
61
+ }
62
+
63
+ // do we have write permission?
64
+ if(!is_writable('.')) {
65
+ $error.='Can\'t write to the current directory. Please fix this by giving the webserver user write access to the directory.';
66
+ }
67
+
68
+ // is safe_mode enabled?
69
+ if(ini_get('safe_mode')) {
70
+ $error.='PHP Safe Mode is enabled. ownCloud requires that it is disabled to work properly.';
71
+ }
72
+
73
+ return($error);
74
+ }
75
+
76
+
77
+ /**
78
+ * @brief Check the cURL version
79
+ * @return bool status of CURLOPT_CERTINFO implementation
80
+ */
81
+ static public function iscertinfoavailable(){
82
+ $curlDetails = curl_version();
83
+ return version_compare($curlDetails['version'], '7.19.1') != -1;
84
+ }
85
+
86
+
87
+
88
+ /**
89
+ * @brief Performs the ownCloud install.
90
+ * @return string with error messages
91
+ */
92
+ static public function install() {
93
+ $error='';
94
+
95
+ // downloading latest release
96
+ if (!file_exists('oc.zip')) {
97
+ $error.=oc_setup::getfile('https://download.owncloud.org/download/community/owncloud-latest.zip','oc.zip');
98
+ }
99
+
100
+ // unpacking into owncloud folder
101
+ $zip = new ZipArchive;
102
+ $res = $zip->open('oc.zip');
103
+ if ($res==true) {
104
+ // Extract it to the tmp dir
105
+ $owncloud_tmp_dir = 'tmp-owncloud'.time();
106
+ $zip->extractTo($owncloud_tmp_dir);
107
+ $zip->close();
108
+
109
+ // Move it to the folder
110
+ if ($_GET['directory'] === '.') {
111
+ foreach (array_diff(scandir($owncloud_tmp_dir.'/owncloud'), array('..', '.')) as $item) {
112
+ rename($owncloud_tmp_dir.'/owncloud/'.$item, './'.$item);
113
+ }
114
+ rmdir($owncloud_tmp_dir.'/owncloud');
115
+ } else {
116
+ rename($owncloud_tmp_dir.'/owncloud', './'.$_GET['directory']);
117
+ }
118
+ // Delete the tmp folder
119
+ rmdir($owncloud_tmp_dir);
120
+ } else {
121
+ $error.='unzip of owncloud source file failed.<br />';
122
+ }
123
+
124
+ // deleting zip file
125
+ $result=@unlink('oc.zip');
126
+ if($result==false) $error.='deleting of oc.zip failed.<br />';
127
+ return($error);
128
+ }
129
+
130
+
131
+ /**
132
+ * @brief Downloads a file and stores it in the local filesystem
133
+ * @param url $url
134
+ * @param path $path
135
+ * @return string with error messages
136
+ */
137
+ static public function getfile($url,$path) {
138
+ $error='';
139
+
140
+ $fp = fopen ($path, 'w+');
141
+ $ch = curl_init($url);
142
+ curl_setopt($ch, CURLOPT_TIMEOUT, 0);
143
+ curl_setopt($ch, CURLOPT_FILE, $fp);
144
+ curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
145
+ if (oc_setup::iscertinfoavailable()){
146
+ curl_setopt($ch, CURLOPT_CERTINFO, TRUE);
147
+ }
148
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
149
+ $data=curl_exec($ch);
150
+ $curlerror=curl_error($ch);
151
+ curl_close($ch);
152
+ fclose($fp);
153
+
154
+ if($data==false){
155
+ $error.='download of ownCloud source file failed.<br />'.$curlerror;
156
+ }
157
+ return($error.$curlerror);
158
+
159
+ }
160
+
161
+
162
+ /**
163
+ * @brief Shows the html header of the setup page
164
+ */
165
+ static public function showheader(){
166
+ echo('
167
+ <!DOCTYPE html>
168
+ <html>
169
+ <head>
170
+ <title>ownCloud Setup</title>
171
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
172
+ <link rel="icon" type="image/png" href="http://owncloud.org/setupwizard/favicon.png" />
173
+ <link rel="stylesheet" href="http://owncloud.org/setupwizard/styles.css" type="text/css" media="screen" />
174
+ </head>
175
+
176
+ <body id="body-login">
177
+ ');
178
+ }
179
+
180
+
181
+ /**
182
+ * @brief Shows the html footer of the setup page
183
+ */
184
+ static public function showfooter(){
185
+ echo('
186
+ <footer><p class="info"><a href="http://owncloud.org/">ownCloud</a> &ndash; web services under your control</p></footer>
187
+ </body>
188
+ </html>
189
+ ');
190
+ }
191
+
192
+
193
+ /**
194
+ * @brief Shows the html content part of the setup page
195
+ * @param title $title
196
+ * @param content $content
197
+ * @param nextpage $nextpage
198
+ */
199
+ static public function showcontent($title,$content,$nextpage=''){
200
+ echo('
201
+ <div id="login">
202
+ <header><div id="header">
203
+ <img src="http://owncloud.org/setupwizard/logo.png" alt="ownCloud" />
204
+ </div></header><br />
205
+ <p style="text-align:center; font-size:28px; color:#444; font-weight:bold;">'.$title.'</p><br />
206
+ <p style="text-align:center; font-size:13px; color:#666; font-weight:bold; ">'.$content.'</p>
207
+ <form method="get">
208
+ <input type="hidden" name="step" value="'.$nextpage.'" />
209
+ ');
210
+
211
+ if($nextpage === 2) {
212
+ echo ('<p style="padding-left:0.5em; padding-right:0.5em">Enter a single "." to install in the current directory, or enter a subdirectory to install to:</p>
213
+ <input type="text" style="margin-left:0; margin-right:0" name="directory" value="owncloud" required="required" />');
214
+ }
215
+ if($nextpage === 3) {
216
+ echo ('<input type="hidden" value="'.$_GET['directory'].'" name="directory" />');
217
+ }
218
+
219
+ if($nextpage<>'') echo('<input type="submit" id="submit" class="login" style="margin-right:100px;" value="Next" />');
220
+
221
+ echo('
222
+ </form>
223
+ </div>
224
+
225
+ ');
226
+ }
227
+
228
+
229
+ /**
230
+ * @brief Shows the wecome screen of the setup wizard
231
+ */
232
+ static public function showwelcome(){
233
+ $txt='Welcome to the ownCloud Setup Wizard.<br />This wizard will check the ownCloud dependencies, download the newest version of ownCloud and install it in a few simple steps.';
234
+ oc_setup::showcontent('Setup Wizard',$txt,1);
235
+ }
236
+
237
+
238
+ /**
239
+ * @brief Shows the check dependencies screen
240
+ */
241
+ static public function showcheckdependencies(){
242
+ $error=oc_setup::checkdependencies();
243
+ if($error=='') {
244
+ $txt='All ownCloud dependencies found';
245
+ oc_setup::showcontent('Dependency check',$txt,2);
246
+ }else{
247
+ $txt='Dependencies not found.<br />'.$error;
248
+ oc_setup::showcontent('Dependency check',$txt);
249
+ }
250
+ }
251
+
252
+
253
+ /**
254
+ * @brief Shows the install screen
255
+ */
256
+ static public function showinstall(){
257
+ $error=oc_setup::install();
258
+
259
+ if($error=='') {
260
+ $txt='ownCloud is now installed';
261
+ oc_setup::showcontent('Success',$txt,3);
262
+ }else{
263
+ $txt='ownCloud is NOT installed<br />'.$error;
264
+ oc_setup::showcontent('Error',$txt);
265
+ }
266
+ }
267
+
268
+
269
+ /**
270
+ * @brief Shows the redirect screen
271
+ */
272
+ static public function showredirect(){
273
+ // delete own file
274
+ @unlink($_SERVER['SCRIPT_FILENAME']);
275
+
276
+ // redirect to ownCloud
277
+ header("Location: ".$_GET['directory']);
278
+ }
279
+
280
+ }
281
+
282
+
283
+ // read the step get variable
284
+ if(isset($_GET['step'])) $step=$_GET['step']; else $step=0;
285
+
286
+ // show the header
287
+ oc_setup::showheader();
288
+
289
+ // show the right step
290
+ if ($step==0) oc_setup::showwelcome();
291
+ elseif ($step==1) oc_setup::showcheckdependencies();
292
+ elseif ($step==2) oc_setup::showinstall();
293
+ elseif ($step==3) oc_setup::showredirect();
294
+ else echo('Internal error. Please try again.');
295
+
296
+ // show the footer
297
+ oc_setup::showfooter();
298
+
299
+
300
+ ?>