diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..56a2dfa
Binary files /dev/null and b/.DS_Store differ
diff --git a/.buildpath b/.buildpath
new file mode 100644
index 0000000..8bcb4b5
--- /dev/null
+++ b/.buildpath
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a6de823
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+/connect4.mwb
+/connect4.mwb.bak
+/htaccess.txt
+/index.php
+/license.txt
+/system
+/js
+/images
+/CVS
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..d41b0c5
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,8 @@
+RewriteEngine on
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule .* index.php/$0 [PT,L]
+
+#RewriteEngine on
+#RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt)
+#RewriteRule ^(.*)$ /index.php/$1 [L]
diff --git a/.htaccess~ b/.htaccess~
new file mode 100644
index 0000000..a95724e
--- /dev/null
+++ b/.htaccess~
@@ -0,0 +1,3 @@
+RewriteEngine on
+RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt)
+RewriteRule ^(.*)$ /index.php/$1 [L]
diff --git a/.project b/.project
new file mode 100644
index 0000000..9e11a8c
--- /dev/null
+++ b/.project
@@ -0,0 +1,34 @@
+
+
+ csc309Login_complete
+
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.wst.jsdt.core.javascriptValidator
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+ org.eclipse.dltk.core.scriptbuilder
+
+
+
+
+
+ org.eclipse.php.core.PHPNature
+ org.eclipse.wst.jsdt.core.jsNature
+ org.eclipse.wst.common.project.facet.core.nature
+
+
diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope
new file mode 100644
index 0000000..2f6f983
--- /dev/null
+++ b/.settings/.jsdtscope
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/CVS/Entries b/.settings/CVS/Entries
new file mode 100644
index 0000000..c5f1606
--- /dev/null
+++ b/.settings/CVS/Entries
@@ -0,0 +1,4 @@
+/.jsdtscope/1.1/Tue Nov 13 17:11:16 2012//
+/org.eclipse.php.core.prefs/1.1/Tue Nov 13 17:13:40 2012//
+/org.eclipse.wst.jsdt.ui.superType.container/1.1/Tue Nov 13 17:13:40 2012/-kb/
+/org.eclipse.wst.jsdt.ui.superType.name/1.1/Tue Nov 13 17:13:40 2012/-kb/
diff --git a/.settings/CVS/Repository b/.settings/CVS/Repository
new file mode 100644
index 0000000..59efd7f
--- /dev/null
+++ b/.settings/CVS/Repository
@@ -0,0 +1 @@
+csc309Login_empty/.settings
diff --git a/.settings/CVS/Root b/.settings/CVS/Root
new file mode 100644
index 0000000..f99f405
--- /dev/null
+++ b/.settings/CVS/Root
@@ -0,0 +1 @@
+:extssh:delara@syslab.cs.toronto.edu:/home/delara/Teaching/cvsroot
diff --git a/.settings/CVS/Template b/.settings/CVS/Template
new file mode 100644
index 0000000..e69de29
diff --git a/.settings/org.eclipse.php.core.prefs b/.settings/org.eclipse.php.core.prefs
new file mode 100644
index 0000000..4677234
--- /dev/null
+++ b/.settings/org.eclipse.php.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+include_path=0;/connect4
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 0000000..ad32966
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container
new file mode 100644
index 0000000..3bd5d0a
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name
new file mode 100644
index 0000000..05bd71b
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
\ No newline at end of file
diff --git a/application/.gitignore b/application/.gitignore
new file mode 100644
index 0000000..4a36dff
--- /dev/null
+++ b/application/.gitignore
@@ -0,0 +1,10 @@
+/cache
+/core
+/CVS
+/errors
+/helpers
+/hooks
+/language
+/libraries
+/logs
+/third_party
diff --git a/application/.htaccess b/application/.htaccess
new file mode 100644
index 0000000..14249c5
--- /dev/null
+++ b/application/.htaccess
@@ -0,0 +1 @@
+Deny from all
\ No newline at end of file
diff --git a/application/config/.gitignore b/application/config/.gitignore
new file mode 100644
index 0000000..6ed19fc
--- /dev/null
+++ b/application/config/.gitignore
@@ -0,0 +1 @@
+/database.php
diff --git a/application/config/CVS/Entries b/application/config/CVS/Entries
new file mode 100644
index 0000000..5c38956
--- /dev/null
+++ b/application/config/CVS/Entries
@@ -0,0 +1,15 @@
+/autoload.php/1.1/Fri Nov 16 02:05:48 2012//
+/config.php/1.1/Tue Nov 13 17:11:16 2012//
+/constants.php/1.1/Tue Nov 13 17:11:16 2012//
+/database.php/1.1/Wed Nov 14 17:30:36 2012//
+/doctypes.php/1.1/Tue Nov 13 17:11:16 2012//
+/foreign_chars.php/1.1/Tue Nov 13 17:11:16 2012//
+/form_validation.php/1.1/Tue Nov 13 17:11:16 2012//
+/hooks.php/1.1/Tue Nov 13 17:11:16 2012//
+/index.html/1.1/Tue Nov 13 17:11:16 2012//
+/migration.php/1.1/Tue Nov 13 17:11:16 2012//
+/mimes.php/1.1/Tue Nov 13 17:11:16 2012//
+/profiler.php/1.1/Tue Nov 13 17:11:16 2012//
+/routes.php/1.1/Wed Nov 14 19:08:50 2012//
+/smileys.php/1.1/Tue Nov 13 17:11:16 2012//
+/user_agents.php/1.1/Tue Nov 13 17:11:16 2012//
diff --git a/application/config/CVS/Repository b/application/config/CVS/Repository
new file mode 100644
index 0000000..c71813d
--- /dev/null
+++ b/application/config/CVS/Repository
@@ -0,0 +1 @@
+csc309Login_empty/application/config
diff --git a/application/config/CVS/Root b/application/config/CVS/Root
new file mode 100644
index 0000000..f99f405
--- /dev/null
+++ b/application/config/CVS/Root
@@ -0,0 +1 @@
+:extssh:delara@syslab.cs.toronto.edu:/home/delara/Teaching/cvsroot
diff --git a/application/config/CVS/Template b/application/config/CVS/Template
new file mode 100644
index 0000000..e69de29
diff --git a/application/config/autoload.php b/application/config/autoload.php
new file mode 100644
index 0000000..69418f5
--- /dev/null
+++ b/application/config/autoload.php
@@ -0,0 +1,119 @@
+ '',
+ 'xhtml1-strict' => '',
+ 'xhtml1-trans' => '',
+ 'xhtml1-frame' => '',
+ 'html5' => '',
+ 'html4-strict' => '',
+ 'html4-trans' => '',
+ 'html4-frame' => ''
+ );
+
+/* End of file doctypes.php */
+/* Location: ./application/config/doctypes.php */
\ No newline at end of file
diff --git a/application/config/foreign_chars.php b/application/config/foreign_chars.php
new file mode 100644
index 0000000..14b0d73
--- /dev/null
+++ b/application/config/foreign_chars.php
@@ -0,0 +1,64 @@
+ 'ae',
+ '/ö|œ/' => 'oe',
+ '/ü/' => 'ue',
+ '/Ä/' => 'Ae',
+ '/Ü/' => 'Ue',
+ '/Ö/' => 'Oe',
+ '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A',
+ '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a',
+ '/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
+ '/ç|ć|ĉ|ċ|č/' => 'c',
+ '/Ð|Ď|Đ/' => 'D',
+ '/ð|ď|đ/' => 'd',
+ '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E',
+ '/è|é|ê|ë|ē|ĕ|ė|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 '/Œ/' => 'OE',
+ '/ƒ/' => 'f'
+);
+
+/* End of file foreign_chars.php */
+/* Location: ./application/config/foreign_chars.php */
\ No newline at end of file
diff --git a/application/config/form_validation.php b/application/config/form_validation.php
new file mode 100644
index 0000000..7285b7f
--- /dev/null
+++ b/application/config/form_validation.php
@@ -0,0 +1,28 @@
+ array(
+ array(
+ 'field' => 'username',
+ 'label' => 'Username',
+ 'rules' => 'required|min_length[5]|max_length[12]'
+ ),
+ array(
+ 'field' => 'password',
+ 'label' => 'Password',
+ 'rules' => 'required|min_length[4]'
+ ),
+ array(
+ 'field' => 'passconf',
+ 'label' => 'Password Confirmation',
+ 'rules' => 'required|min_length[4]|matches[password]'
+ ),
+ array(
+ 'field' => 'phone',
+ 'label' => 'Phone Number',
+ 'rules' => 'required|callback_phone_check'
+ )
+ )
+);
+
+
diff --git a/application/config/hooks.php b/application/config/hooks.php
new file mode 100644
index 0000000..a4ad2be
--- /dev/null
+++ b/application/config/hooks.php
@@ -0,0 +1,16 @@
+
+
+ 403 Forbidden
+
+
+
+Directory access is forbidden.
+
+
+