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
data/info.php
ADDED
data/iostarter.py
ADDED
|
@@ -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
data/irb.cmd~
ADDED
|
Binary file
|
|
Binary file
|
data/laravel-master.zip
ADDED
|
Binary file
|
data/laravel.phar
ADDED
|
Binary file
|
data/latest_specs.4.8
ADDED
|
Binary file
|
data/latest_specs.4.8.gz
ADDED
|
Binary file
|
data/login.php
ADDED
|
@@ -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
|
+
?>
|
data/login.php~
ADDED
|
@@ -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
|
+
?>
|