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.
- checksums.yaml +7 -0
- data/-interactive +0 -0
- data/.302.html.swp +0 -0
- data/.AerodiaServer.rb.swp +0 -0
- data/.README.md.swp +0 -0
- data/.archersys_os_peace.py.swp +0 -0
- data/.authorize.php.swp +0 -0
- data/.buildinfo +4 -0
- data/.git.cmd.swp +0 -0
- data/.gitconfig +1 -0
- data/.gitignore +9 -0
- data/.htaccess +12 -0
- data/.index.php.swl +0 -0
- data/.index.php.swm +0 -0
- data/.index.php.swn +0 -0
- data/.index.php.swo +0 -0
- data/.index.php.swp +0 -0
- data/.irb.cmd.swp +0 -0
- data/.irb_history +436 -0
- data/.irbrc +24 -0
- data/.irbrc~ +24 -0
- data/.livesearch.php.swp +0 -0
- data/.login.php.swl +0 -0
- data/.login.php.swm +0 -0
- data/.login.php.swn +0 -0
- data/.login.php.swo +0 -0
- data/.login.php.swp +0 -0
- data/.logout.php.swp +0 -0
- data/.npmrc +96 -0
- data/.os-desktop.php.swp +0 -0
- data/.pythonrc.py +11 -0
- data/.railsrc +1 -0
- data/.travis.yml +3 -0
- data/.vimstarter.bat.swp +0 -0
- data/302.html +8 -0
- data/401.html +43 -0
- data/403.html +9 -0
- data/404.html +43 -0
- data/7imperialisminjapan2.ppt +0 -0
- data/8_imperialism_by_the_united_states2.ppt +0 -0
- data/AbstractArrbyKlass.rb +16 -0
- data/AbstractImplementation.rb +10 -0
- data/Aerodia2.scn +0 -0
- data/AerodiaServer.rb +130 -0
- data/AerodiaServer.rb~ +129 -0
- data/AerodiaServer.txt +53 -0
- data/ArcherCGI.txt +8 -0
- data/ArcherDBM.rb +30 -0
- data/ArcherSysOS.gemspec +33 -0
- data/ArcherSysOS.rb +13 -0
- data/ArcherSysOS.rb.txt +13 -0
- data/ArcherSysOSDate.rb +10 -0
- data/ArcherSysOSOptionsParser.rb +108 -0
- data/ArcherSysOSOptionsParser.rb~ +108 -0
- data/ArcherVMCashewDelegator.rb +17 -0
- data/ArcherVMCashewLogger.rb +55 -0
- data/ArcherVMCashewLogger.rb~ +55 -0
- data/ArcherVMCashewTimeServer.rb +23 -0
- data/ArcherVMCashewTimeServer.rb~ +23 -0
- data/ArcherVMException.rb +13 -0
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +8 -0
- data/CodeIgniter_2.2.0.zip +0 -0
- data/ConfigTest.php +11 -0
- data/F16MUDCockpitServlet.rb +14 -0
- data/F16MUDTape.rb +7 -0
- data/F16Shell.rb +42 -0
- data/Gemfile +4 -0
- data/LICENSE +19 -0
- data/Listing.rb +31 -0
- data/Middleware.rb +12 -0
- data/Middleware.txt +12 -0
- data/Movie.rb +8 -0
- data/MovieLibrary.rb +10 -0
- data/MySQLDumper1.24.4.zip +0 -0
- data/NotakerPro.aia +0 -0
- data/Num.rb +17 -0
- data/OSStartScreen.py +31 -0
- data/Product.rb +26 -0
- data/QAERODIACORP.sav +0 -0
- data/Queue.rb +16 -0
- data/Queue.rb~ +15 -0
- data/README.md +39 -0
- data/README.md~ +46 -0
- data/Rakefile +1 -0
- data/StockTickerServlet.rb +19 -0
- data/StockTickerServlet.rb~ +19 -0
- data/Symfony_cookbook_2.5.pdf +35637 -39
- data/Taxgator.rb +9 -0
- data/Tetris +2 -0
- data/Ticker.rb +63 -0
- data/Ticker.rb~ +63 -0
- data/WeakHash.rb +10 -0
- data/WikiPage.rb +27 -0
- data/WikiPage.rb~ +27 -0
- data/ZlibEngine.rb +20 -0
- data/_.swm +0 -0
- data/_.swn +0 -0
- data/_.swo +0 -0
- data/_.swp +0 -0
- data/acoserver_acoserver (2).sql +15131 -0
- data/acoserver_acoserver.sql +34707 -0
- data/acoserver_admin.sql +571 -0
- data/acoserver_games.sql +6344 -0
- data/acoserver_moodle.sql +16013 -0
- data/activate_docs_gen.bat +1 -0
- data/activate_docs_gen.txt +1 -0
- data/ager.py +6 -0
- data/alarmpy.py +6 -0
- data/american_imperialism2.ppt +0 -0
- data/apple-touch-icon.png +0 -0
- data/apps.php +35 -0
- data/apps.php.txt +7 -0
- data/arbylog.rb +16 -0
- data/archergit.py +6 -0
- data/archergit.py.txt +6 -0
- data/archergit.txt +6 -0
- data/archerlua.lua +3 -0
- data/archersys-logo.png +0 -0
- data/archersys.gemspec +32 -0
- data/archersys_os_peace.py +7 -0
- data/archersys_os_peace.py~ +5 -0
- data/autoexec.bat +3 -0
- data/bootstrap-tour.css +65 -0
- data/bootstrap-tour.js +698 -0
- data/bootstrap-tour.min.css +19 -0
- data/bootstrap-tour.min.js +19 -0
- data/bootstrap.css +7098 -0
- data/bootstrap.js +2002 -0
- data/bucketwise-master.zip +0 -0
- data/cargo.bat +1 -0
- data/cargo.cmd +1 -0
- data/changelog.txt +769 -0
- data/client_secrets.json +4 -0
- data/cockpitguess.py +12 -0
- data/collaborant-0.1.0.gem +0 -0
- data/composer.json +40 -0
- data/composer.lock +1484 -0
- data/composer.phar +0 -0
- data/conchtack_id.dat +0 -0
- data/config.json +4 -0
- data/config.php +17 -0
- data/config.ru +5 -0
- data/config.yml +16 -0
- data/console.html +8 -0
- data/console.php +42 -0
- data/contact.db +0 -0
- data/contacts.db +0 -0
- data/contrib-update.cmd +6 -0
- data/contrib-update.cmd~ +6 -0
- data/crossdomain.xml +9 -0
- data/cse.xml +25 -0
- data/depression_dbq.pdf +0 -0
- data/desktop-w10.php +6 -0
- data/desktop.html +33 -0
- data/desktop.php +310 -0
- data/dialogue.txt +13 -0
- data/dict.rb +15 -0
- data/dictionary_of_words.db +0 -0
- data/doc-create.html +5 -0
- data/doc-create.php +12 -0
- data/dokuwiki-d9556fbc2c1c07a0baaf81c07d4165f6.tgz +0 -0
- data/drive-appfolder.php +19 -0
- data/drive.php +49 -0
- data/dropbox-login.php +13 -0
- data/drupal-7.34.zip +0 -0
- data/dtop.php +131 -0
- data/f18mud.rb +2 -0
- data/favicon.ico +0 -0
- data/favicon.png +0 -0
- data/footer.html +5 -0
- data/forum.php +5 -0
- data/game1.py +171 -0
- data/genindex.html +164 -0
- data/git.cmd~ +2 -0
- data/github-ci.rb +6 -0
- data/histogram.py +36 -0
- data/htdocs.gemspec~ +31 -0
- data/https___summerjobs.dc.gov_(S(ryzytlym5hqgi255zgb4ojjk))_parental_consent_form.pdf +0 -0
- data/ieconfig.xml +12 -0
- data/imperialism_dbq_questions2.doc +0 -0
- data/imperialism_graphic_organizer2.docx +0 -0
- data/index-desktop.php +42 -0
- data/index-desktop.php.txt +14 -0
- data/index.html +175 -0
- data/index.php +302 -0
- data/index.php~ +315 -0
- data/info.php +3 -0
- data/iostarter.py +88 -0
- data/irb.cmd +3 -0
- data/irb.cmd~ +2 -0
- data/jquery-mobile-theme-105213-0.zip +0 -0
- data/jquery-ui-1.11.1.custom.zip +0 -0
- data/laravel-master.zip +0 -0
- data/laravel.phar +0 -0
- data/latest_specs.4.8 +0 -0
- data/latest_specs.4.8.gz +0 -0
- data/login.php +266 -0
- data/login.php~ +265 -0
- data/logout.php +13 -0
- data/logout.php~ +13 -0
- data/lua.bat +1 -0
- data/main.php +22 -0
- data/manage.py +10 -0
- data/manifest.appcache +22 -0
- data/manifest.json +19 -0
- data/manifest.webapp +14 -0
- data/meter.js +19 -0
- data/meter.php +17 -0
- data/mime.types +0 -0
- data/moodle.sqk +12123 -0
- data/moodle.sql +12123 -0
- data/movielibrary.rhtml +16 -0
- data/mud_login.rb +38 -0
- data/news.py +18 -0
- data/node.exe +0 -0
- data/node_etw_provider.man +153 -0
- data/node_perfctr_provider.man +107 -0
- data/nodejs-portable.bat +194 -0
- data/nodevars.bat +24 -0
- data/notifications-gateway.php +5 -0
- data/now.bat +3 -0
- data/npm +14 -0
- data/npm-debug.log +40 -0
- data/npm.cmd +6 -0
- data/objects.inv +0 -0
- data/ocular.phar +0 -0
- data/opensearch.xml +12 -0
- data/os-desktop.php +211 -0
- data/os-mobile.php +127 -0
- data/package.json +5 -0
- data/parse-js-blank-1.3.0.zip +0 -0
- data/partii.appcache +2 -0
- data/pear.conf +2 -0
- data/phpldapadmin-1.2.3.zip +0 -0
- data/phpliteAdmin_v1-9-5.zip +0 -0
- data/phpunit.cmd +1 -0
- data/phpunit.dist.xml +8 -0
- data/phpunit.phar +77428 -2
- data/phpunit.xml +8 -0
- data/pik.bat +3 -0
- data/pik.ps1 +3 -0
- data/pik_runner.exe +0 -0
- data/pip-selfcheck.json +1 -0
- data/prerelease_specs.4.8 +0 -0
- data/prerelease_specs.4.8.gz +0 -0
- data/producktivshellwin +0 -0
- data/profile.php +7 -0
- data/prototype.php +7 -0
- data/pyconsole.cmd +3 -0
- data/pyconsole.py +8 -0
- data/pygubu-asos.py +19 -0
- data/pythonray.py +62 -0
- data/pythonray.py~ +62 -0
- data/pyvenv.cfg +3 -0
- data/radius.py +12 -0
- data/react-0.11.2.zip +0 -0
- data/readme.txt +8 -0
- data/register.php +130 -0
- data/register.php~ +126 -0
- data/rockpaperscissors.py +68 -0
- data/rockpaperscissors.py~ +28 -0
- data/run_f16.rb +2 -0
- data/rustc.cmd +1 -0
- data/scrollbar.css +6 -0
- data/scrollbar.css~ +4 -0
- data/scrutinizer.yml +5 -0
- data/search.html +177 -0
- data/searchindex.js +1 -0
- data/setup-owncloud.php +300 -0
- data/setup.py +9 -0
- data/sinatra-1.4.5.gem +0 -0
- data/smartsheet.html +1 -0
- data/span.html +5 -0
- data/specs.4.8 +0 -0
- data/specs.4.8.gz +0 -0
- data/starter-kit-1.8.1.zip +0 -0
- data/startscreen.php +11 -0
- data/startscreen.py +33 -0
- data/startup.png +0 -0
- data/svg-edit-2.6.zip +0 -0
- data/symfony.com_pdf_Symfony_book_2.5.pdf +0 -0
- data/telnet-client.py +18 -0
- data/tess.py +26 -0
- data/time.css +279 -0
- data/time.html +2 -0
- data/time.php +56 -0
- data/tinymce_spellchecker_php_2_0_6_1.zip +0 -0
- data/urllib2.py +1371 -0
- data/uru.bat +12 -0
- data/uru.bat.bak +12 -0
- data/uru.ps1 +11 -0
- data/uru.ps1.bak +11 -0
- data/uru_rt.exe +0 -0
- data/vimstarter.bat +3 -0
- 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
|
+
|
data/run_f16.rb
ADDED
data/rustc.cmd
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
C:\xampp\htdocs\Rust\bin\rustc
|
data/scrollbar.css
ADDED
data/scrollbar.css~
ADDED
data/scrutinizer.yml
ADDED
data/search.html
ADDED
|
@@ -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 — 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
|
+
|
|
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> »</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
|
+
© 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>
|
data/searchindex.js
ADDED
|
@@ -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’s documentation!"],titleterms:{archerbashpydoc:0,document:0,indic:0,tabl:0,welcom:0}})
|
data/setup-owncloud.php
ADDED
|
@@ -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> – 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
|
+
?>
|