From 9cabccb52d1b740937648e2ced259fbfd7cbdfb6 Mon Sep 17 00:00:00 2001 From: Zac Batog Date: Thu, 29 Jan 2015 15:25:53 -0500 Subject: [PATCH 01/10] first commit --- CMPT395A1/.gitattributes | 1 + CMPT395A1/.gitignore | 8 + CMPT395A1/CONTRIBUTING.md | 3 + CMPT395A1/app/commands/.gitkeep | 0 CMPT395A1/app/config/app.php | 194 ++++++++++++++++++ CMPT395A1/app/config/auth.php | 71 +++++++ CMPT395A1/app/config/cache.php | 89 ++++++++ CMPT395A1/app/config/compile.php | 18 ++ CMPT395A1/app/config/database.php | 124 +++++++++++ CMPT395A1/app/config/local/app.php | 18 ++ CMPT395A1/app/config/local/database.php | 47 +++++ CMPT395A1/app/config/mail.php | 124 +++++++++++ CMPT395A1/app/config/packages/.gitkeep | 0 CMPT395A1/app/config/queue.php | 85 ++++++++ CMPT395A1/app/config/remote.php | 59 ++++++ CMPT395A1/app/config/services.php | 31 +++ CMPT395A1/app/config/session.php | 140 +++++++++++++ CMPT395A1/app/config/testing/cache.php | 20 ++ CMPT395A1/app/config/testing/session.php | 21 ++ CMPT395A1/app/config/view.php | 31 +++ CMPT395A1/app/config/workbench.php | 31 +++ CMPT395A1/app/controllers/.gitkeep | 0 CMPT395A1/app/controllers/BaseController.php | 18 ++ CMPT395A1/app/controllers/HomeController.php | 23 +++ CMPT395A1/app/controllers/PagesController.php | 12 ++ CMPT395A1/app/controllers/css/basic.css | 57 +++++ CMPT395A1/app/database/.gitignore | 1 + CMPT395A1/app/database/migrations/.gitkeep | 0 CMPT395A1/app/database/seeds/.gitkeep | 0 .../app/database/seeds/DatabaseSeeder.php | 17 ++ CMPT395A1/app/filters.php | 90 ++++++++ CMPT395A1/app/lang/en/pagination.php | 20 ++ CMPT395A1/app/lang/en/reminders.php | 26 +++ CMPT395A1/app/lang/en/validation.php | 106 ++++++++++ CMPT395A1/app/models/User.php | 26 +++ CMPT395A1/app/routes.php | 13 ++ CMPT395A1/app/start/artisan.php | 13 ++ CMPT395A1/app/start/global.php | 81 ++++++++ CMPT395A1/app/start/local.php | 3 + CMPT395A1/app/storage/.gitignore | 1 + CMPT395A1/app/storage/cache/.gitignore | 2 + CMPT395A1/app/storage/logs/.gitignore | 2 + CMPT395A1/app/storage/meta/.gitignore | 2 + CMPT395A1/app/storage/sessions/.gitignore | 2 + CMPT395A1/app/storage/views/.gitignore | 2 + CMPT395A1/app/tests/ExampleTest.php | 17 ++ CMPT395A1/app/tests/TestCase.php | 19 ++ .../app/views/emails/auth/reminder.blade.php | 14 ++ CMPT395A1/app/views/home.blade.php | 13 ++ CMPT395A1/app/views/layouts/default.blade.php | 22 ++ CMPT395A1/artisan | 74 +++++++ CMPT395A1/bootstrap/autoload.php | 75 +++++++ CMPT395A1/bootstrap/paths.php | 57 +++++ CMPT395A1/bootstrap/start.php | 73 +++++++ CMPT395A1/composer.json | 37 ++++ CMPT395A1/phpunit.xml | 18 ++ CMPT395A1/public/.htaccess | 15 ++ CMPT395A1/public/css/basic.css | 57 +++++ CMPT395A1/public/favicon.ico | 0 CMPT395A1/public/index.php | 49 +++++ CMPT395A1/public/packages/.gitkeep | 0 CMPT395A1/public/robots.txt | 2 + CMPT395A1/readme.md | 25 +++ CMPT395A1/server.php | 19 ++ 64 files changed, 2218 insertions(+) create mode 100644 CMPT395A1/.gitattributes create mode 100644 CMPT395A1/.gitignore create mode 100644 CMPT395A1/CONTRIBUTING.md create mode 100644 CMPT395A1/app/commands/.gitkeep create mode 100644 CMPT395A1/app/config/app.php create mode 100644 CMPT395A1/app/config/auth.php create mode 100644 CMPT395A1/app/config/cache.php create mode 100644 CMPT395A1/app/config/compile.php create mode 100644 CMPT395A1/app/config/database.php create mode 100644 CMPT395A1/app/config/local/app.php create mode 100644 CMPT395A1/app/config/local/database.php create mode 100644 CMPT395A1/app/config/mail.php create mode 100644 CMPT395A1/app/config/packages/.gitkeep create mode 100755 CMPT395A1/app/config/queue.php create mode 100644 CMPT395A1/app/config/remote.php create mode 100644 CMPT395A1/app/config/services.php create mode 100644 CMPT395A1/app/config/session.php create mode 100644 CMPT395A1/app/config/testing/cache.php create mode 100644 CMPT395A1/app/config/testing/session.php create mode 100644 CMPT395A1/app/config/view.php create mode 100644 CMPT395A1/app/config/workbench.php create mode 100644 CMPT395A1/app/controllers/.gitkeep create mode 100644 CMPT395A1/app/controllers/BaseController.php create mode 100644 CMPT395A1/app/controllers/HomeController.php create mode 100644 CMPT395A1/app/controllers/PagesController.php create mode 100644 CMPT395A1/app/controllers/css/basic.css create mode 100644 CMPT395A1/app/database/.gitignore create mode 100644 CMPT395A1/app/database/migrations/.gitkeep create mode 100644 CMPT395A1/app/database/seeds/.gitkeep create mode 100644 CMPT395A1/app/database/seeds/DatabaseSeeder.php create mode 100644 CMPT395A1/app/filters.php create mode 100644 CMPT395A1/app/lang/en/pagination.php create mode 100644 CMPT395A1/app/lang/en/reminders.php create mode 100644 CMPT395A1/app/lang/en/validation.php create mode 100644 CMPT395A1/app/models/User.php create mode 100644 CMPT395A1/app/routes.php create mode 100644 CMPT395A1/app/start/artisan.php create mode 100644 CMPT395A1/app/start/global.php create mode 100644 CMPT395A1/app/start/local.php create mode 100644 CMPT395A1/app/storage/.gitignore create mode 100644 CMPT395A1/app/storage/cache/.gitignore create mode 100644 CMPT395A1/app/storage/logs/.gitignore create mode 100644 CMPT395A1/app/storage/meta/.gitignore create mode 100644 CMPT395A1/app/storage/sessions/.gitignore create mode 100644 CMPT395A1/app/storage/views/.gitignore create mode 100644 CMPT395A1/app/tests/ExampleTest.php create mode 100644 CMPT395A1/app/tests/TestCase.php create mode 100644 CMPT395A1/app/views/emails/auth/reminder.blade.php create mode 100644 CMPT395A1/app/views/home.blade.php create mode 100644 CMPT395A1/app/views/layouts/default.blade.php create mode 100755 CMPT395A1/artisan create mode 100644 CMPT395A1/bootstrap/autoload.php create mode 100644 CMPT395A1/bootstrap/paths.php create mode 100644 CMPT395A1/bootstrap/start.php create mode 100644 CMPT395A1/composer.json create mode 100644 CMPT395A1/phpunit.xml create mode 100644 CMPT395A1/public/.htaccess create mode 100644 CMPT395A1/public/css/basic.css create mode 100644 CMPT395A1/public/favicon.ico create mode 100644 CMPT395A1/public/index.php create mode 100644 CMPT395A1/public/packages/.gitkeep create mode 100644 CMPT395A1/public/robots.txt create mode 100644 CMPT395A1/readme.md create mode 100644 CMPT395A1/server.php diff --git a/CMPT395A1/.gitattributes b/CMPT395A1/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/CMPT395A1/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/CMPT395A1/.gitignore b/CMPT395A1/.gitignore new file mode 100644 index 0000000..b5363f0 --- /dev/null +++ b/CMPT395A1/.gitignore @@ -0,0 +1,8 @@ +/bootstrap/compiled.php +/vendor +composer.phar +composer.lock +.env.*.php +.env.php +.DS_Store +Thumbs.db diff --git a/CMPT395A1/CONTRIBUTING.md b/CMPT395A1/CONTRIBUTING.md new file mode 100644 index 0000000..6a780c4 --- /dev/null +++ b/CMPT395A1/CONTRIBUTING.md @@ -0,0 +1,3 @@ +# Contribution Guidelines + +Please submit all issues and pull requests to the [laravel/framework](http://github.com/laravel/framework) repository! diff --git a/CMPT395A1/app/commands/.gitkeep b/CMPT395A1/app/commands/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/CMPT395A1/app/config/app.php b/CMPT395A1/app/config/app.php new file mode 100644 index 0000000..4830f76 --- /dev/null +++ b/CMPT395A1/app/config/app.php @@ -0,0 +1,194 @@ + false, + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => 'http://localhost', + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is used by the Illuminate encrypter service and should be set + | to a random, 32 character string, otherwise these encrypted strings + | will not be safe. Please do this before deploying an application! + | + */ + + 'key' => 'BfRaBajHd6ZlpWAMeI2ecoKbMrLoRptw', + + 'cipher' => MCRYPT_RIJNDAEL_128, + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => array( + + 'Illuminate\Foundation\Providers\ArtisanServiceProvider', + 'Illuminate\Auth\AuthServiceProvider', + 'Illuminate\Cache\CacheServiceProvider', + 'Illuminate\Session\CommandsServiceProvider', + 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', + 'Illuminate\Routing\ControllerServiceProvider', + 'Illuminate\Cookie\CookieServiceProvider', + 'Illuminate\Database\DatabaseServiceProvider', + 'Illuminate\Encryption\EncryptionServiceProvider', + 'Illuminate\Filesystem\FilesystemServiceProvider', + 'Illuminate\Hashing\HashServiceProvider', + 'Illuminate\Html\HtmlServiceProvider', + 'Illuminate\Log\LogServiceProvider', + 'Illuminate\Mail\MailServiceProvider', + 'Illuminate\Database\MigrationServiceProvider', + 'Illuminate\Pagination\PaginationServiceProvider', + 'Illuminate\Queue\QueueServiceProvider', + 'Illuminate\Redis\RedisServiceProvider', + 'Illuminate\Remote\RemoteServiceProvider', + 'Illuminate\Auth\Reminders\ReminderServiceProvider', + 'Illuminate\Database\SeedServiceProvider', + 'Illuminate\Session\SessionServiceProvider', + 'Illuminate\Translation\TranslationServiceProvider', + 'Illuminate\Validation\ValidationServiceProvider', + 'Illuminate\View\ViewServiceProvider', + 'Illuminate\Workbench\WorkbenchServiceProvider', + + ), + + /* + |-------------------------------------------------------------------------- + | Service Provider Manifest + |-------------------------------------------------------------------------- + | + | The service provider manifest is used by Laravel to lazy load service + | providers which are not needed for each request, as well to keep a + | list of all of the services. Here, you may set its storage spot. + | + */ + + 'manifest' => storage_path().'/meta', + + /* + |-------------------------------------------------------------------------- + | Class Aliases + |-------------------------------------------------------------------------- + | + | This array of class aliases will be registered when this application + | is started. However, feel free to register as many as you wish as + | the aliases are "lazy" loaded so they don't hinder performance. + | + */ + + 'aliases' => array( + + 'App' => 'Illuminate\Support\Facades\App', + 'Artisan' => 'Illuminate\Support\Facades\Artisan', + 'Auth' => 'Illuminate\Support\Facades\Auth', + 'Blade' => 'Illuminate\Support\Facades\Blade', + 'Cache' => 'Illuminate\Support\Facades\Cache', + 'ClassLoader' => 'Illuminate\Support\ClassLoader', + 'Config' => 'Illuminate\Support\Facades\Config', + 'Controller' => 'Illuminate\Routing\Controller', + 'Cookie' => 'Illuminate\Support\Facades\Cookie', + 'Crypt' => 'Illuminate\Support\Facades\Crypt', + 'DB' => 'Illuminate\Support\Facades\DB', + 'Eloquent' => 'Illuminate\Database\Eloquent\Model', + 'Event' => 'Illuminate\Support\Facades\Event', + 'File' => 'Illuminate\Support\Facades\File', + 'Form' => 'Illuminate\Support\Facades\Form', + 'Hash' => 'Illuminate\Support\Facades\Hash', + 'HTML' => 'Illuminate\Support\Facades\HTML', + 'Input' => 'Illuminate\Support\Facades\Input', + 'Lang' => 'Illuminate\Support\Facades\Lang', + 'Log' => 'Illuminate\Support\Facades\Log', + 'Mail' => 'Illuminate\Support\Facades\Mail', + 'Paginator' => 'Illuminate\Support\Facades\Paginator', + 'Password' => 'Illuminate\Support\Facades\Password', + 'Queue' => 'Illuminate\Support\Facades\Queue', + 'Redirect' => 'Illuminate\Support\Facades\Redirect', + 'Redis' => 'Illuminate\Support\Facades\Redis', + 'Request' => 'Illuminate\Support\Facades\Request', + 'Response' => 'Illuminate\Support\Facades\Response', + 'Route' => 'Illuminate\Support\Facades\Route', + 'Schema' => 'Illuminate\Support\Facades\Schema', + 'Seeder' => 'Illuminate\Database\Seeder', + 'Session' => 'Illuminate\Support\Facades\Session', + 'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait', + 'SSH' => 'Illuminate\Support\Facades\SSH', + 'Str' => 'Illuminate\Support\Str', + 'URL' => 'Illuminate\Support\Facades\URL', + 'Validator' => 'Illuminate\Support\Facades\Validator', + 'View' => 'Illuminate\Support\Facades\View', + + ), + +); diff --git a/CMPT395A1/app/config/auth.php b/CMPT395A1/app/config/auth.php new file mode 100644 index 0000000..eacbbfa --- /dev/null +++ b/CMPT395A1/app/config/auth.php @@ -0,0 +1,71 @@ + 'eloquent', + + /* + |-------------------------------------------------------------------------- + | Authentication Model + |-------------------------------------------------------------------------- + | + | When using the "Eloquent" authentication driver, we need to know which + | Eloquent model should be used to retrieve your users. Of course, it + | is often just the "User" model but you may use whatever you like. + | + */ + + 'model' => 'User', + + /* + |-------------------------------------------------------------------------- + | Authentication Table + |-------------------------------------------------------------------------- + | + | When using the "Database" authentication driver, we need to know which + | table should be used to retrieve your users. We have chosen a basic + | default value but you may easily change it to any table you like. + | + */ + + 'table' => 'users', + + /* + |-------------------------------------------------------------------------- + | Password Reminder Settings + |-------------------------------------------------------------------------- + | + | Here you may set the settings for password reminders, including a view + | that should be used as your password reminder e-mail. You will also + | be able to set the name of the table that holds the reset tokens. + | + | The "expire" time is the number of minutes that the reminder should be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + */ + + 'reminder' => array( + + 'email' => 'emails.auth.reminder', + + 'table' => 'password_reminders', + + 'expire' => 60, + + ), + +); diff --git a/CMPT395A1/app/config/cache.php b/CMPT395A1/app/config/cache.php new file mode 100644 index 0000000..ce89842 --- /dev/null +++ b/CMPT395A1/app/config/cache.php @@ -0,0 +1,89 @@ + 'file', + + /* + |-------------------------------------------------------------------------- + | File Cache Location + |-------------------------------------------------------------------------- + | + | When using the "file" cache driver, we need a location where the cache + | files may be stored. A sensible default has been specified, but you + | are free to change it to any other place on disk that you desire. + | + */ + + 'path' => storage_path().'/cache', + + /* + |-------------------------------------------------------------------------- + | Database Cache Connection + |-------------------------------------------------------------------------- + | + | When using the "database" cache driver you may specify the connection + | that should be used to store the cached items. When this option is + | null the default database connection will be utilized for cache. + | + */ + + 'connection' => null, + + /* + |-------------------------------------------------------------------------- + | Database Cache Table + |-------------------------------------------------------------------------- + | + | When using the "database" cache driver we need to know the table that + | should be used to store the cached items. A default table name has + | been provided but you're free to change it however you deem fit. + | + */ + + 'table' => 'cache', + + /* + |-------------------------------------------------------------------------- + | Memcached Servers + |-------------------------------------------------------------------------- + | + | Now you may specify an array of your Memcached servers that should be + | used when utilizing the Memcached cache driver. All of the servers + | should contain a value for "host", "port", and "weight" options. + | + */ + + 'memcached' => array( + + array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), + + ), + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing a RAM based store such as APC or Memcached, there might + | be other applications utilizing the same cache. So, we'll specify a + | value to get prefixed to all our keys so we can avoid collisions. + | + */ + + 'prefix' => 'laravel', + +); diff --git a/CMPT395A1/app/config/compile.php b/CMPT395A1/app/config/compile.php new file mode 100644 index 0000000..d5e5518 --- /dev/null +++ b/CMPT395A1/app/config/compile.php @@ -0,0 +1,18 @@ + PDO::FETCH_CLASS, + + /* + |-------------------------------------------------------------------------- + | Default Database Connection Name + |-------------------------------------------------------------------------- + | + | Here you may specify which of the database connections below you wish + | to use as your default connection for all database work. Of course + | you may use many connections at once using the Database library. + | + */ + + 'default' => 'mysql', + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Here are each of the database connections setup for your application. + | Of course, examples of configuring each database platform that is + | supported by Laravel is shown below to make development simple. + | + | + | All database work in Laravel is done through the PHP PDO facilities + | so make sure you have the driver for your particular database of + | choice installed on your machine before you begin development. + | + */ + + 'connections' => array( + + 'sqlite' => array( + 'driver' => 'sqlite', + 'database' => __DIR__.'/../database/production.sqlite', + 'prefix' => '', + ), + + 'mysql' => array( + 'driver' => 'mysql', + 'host' => 'localhost', + 'database' => 'forge', + 'username' => 'forge', + 'password' => '', + 'charset' => 'utf8', + 'collation' => 'utf8_unicode_ci', + 'prefix' => '', + ), + + 'pgsql' => array( + 'driver' => 'pgsql', + 'host' => 'localhost', + 'database' => 'forge', + 'username' => 'forge', + 'password' => '', + 'charset' => 'utf8', + 'prefix' => '', + 'schema' => 'public', + ), + + 'sqlsrv' => array( + 'driver' => 'sqlsrv', + 'host' => 'localhost', + 'database' => 'database', + 'username' => 'root', + 'password' => '', + 'prefix' => '', + ), + + ), + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run in the database. + | + */ + + 'migrations' => 'migrations', + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer set of commands than a typical key-value systems + | such as APC or Memcached. Laravel makes it easy to dig right in. + | + */ + + 'redis' => array( + + 'cluster' => false, + + 'default' => array( + 'host' => '127.0.0.1', + 'port' => 6379, + 'database' => 0, + ), + + ), + +); diff --git a/CMPT395A1/app/config/local/app.php b/CMPT395A1/app/config/local/app.php new file mode 100644 index 0000000..c56fcb9 --- /dev/null +++ b/CMPT395A1/app/config/local/app.php @@ -0,0 +1,18 @@ + true, + +); diff --git a/CMPT395A1/app/config/local/database.php b/CMPT395A1/app/config/local/database.php new file mode 100644 index 0000000..fbcb95a --- /dev/null +++ b/CMPT395A1/app/config/local/database.php @@ -0,0 +1,47 @@ + array( + + 'mysql' => array( + 'driver' => 'mysql', + 'host' => 'localhost', + 'database' => 'homestead', + 'username' => 'homestead', + 'password' => 'secret', + 'charset' => 'utf8', + 'collation' => 'utf8_unicode_ci', + 'prefix' => '', + ), + + 'pgsql' => array( + 'driver' => 'pgsql', + 'host' => 'localhost', + 'database' => 'homestead', + 'username' => 'homestead', + 'password' => 'secret', + 'charset' => 'utf8', + 'prefix' => '', + 'schema' => 'public', + ), + + ), + +); diff --git a/CMPT395A1/app/config/mail.php b/CMPT395A1/app/config/mail.php new file mode 100644 index 0000000..76fd9e4 --- /dev/null +++ b/CMPT395A1/app/config/mail.php @@ -0,0 +1,124 @@ + 'smtp', + + /* + |-------------------------------------------------------------------------- + | SMTP Host Address + |-------------------------------------------------------------------------- + | + | Here you may provide the host address of the SMTP server used by your + | applications. A default option is provided that is compatible with + | the Mailgun mail service which will provide reliable deliveries. + | + */ + + 'host' => 'smtp.mailgun.org', + + /* + |-------------------------------------------------------------------------- + | SMTP Host Port + |-------------------------------------------------------------------------- + | + | This is the SMTP port used by your application to deliver e-mails to + | users of the application. Like the host we have set this value to + | stay compatible with the Mailgun e-mail application by default. + | + */ + + 'port' => 587, + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => array('address' => null, 'name' => null), + + /* + |-------------------------------------------------------------------------- + | E-Mail Encryption Protocol + |-------------------------------------------------------------------------- + | + | Here you may specify the encryption protocol that should be used when + | the application send e-mail messages. A sensible default using the + | transport layer security protocol should provide great security. + | + */ + + 'encryption' => 'tls', + + /* + |-------------------------------------------------------------------------- + | SMTP Server Username + |-------------------------------------------------------------------------- + | + | If your SMTP server requires a username for authentication, you should + | set it here. This will get used to authenticate with your server on + | connection. You may also set the "password" value below this one. + | + */ + + 'username' => null, + + /* + |-------------------------------------------------------------------------- + | SMTP Server Password + |-------------------------------------------------------------------------- + | + | Here you may set the password required by your SMTP server to send out + | messages from your application. This will be given to the server on + | connection so that the application will be able to send messages. + | + */ + + 'password' => null, + + /* + |-------------------------------------------------------------------------- + | Sendmail System Path + |-------------------------------------------------------------------------- + | + | When using the "sendmail" driver to send e-mails, we will need to know + | the path to where Sendmail lives on this server. A default path has + | been provided here, which will work well on most of your systems. + | + */ + + 'sendmail' => '/usr/sbin/sendmail -bs', + + /* + |-------------------------------------------------------------------------- + | Mail "Pretend" + |-------------------------------------------------------------------------- + | + | When this option is enabled, e-mail will not actually be sent over the + | web and will instead be written to your application's logs files so + | you may inspect the message. This is great for local development. + | + */ + + 'pretend' => false, + +); diff --git a/CMPT395A1/app/config/packages/.gitkeep b/CMPT395A1/app/config/packages/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/CMPT395A1/app/config/queue.php b/CMPT395A1/app/config/queue.php new file mode 100755 index 0000000..940a4cd --- /dev/null +++ b/CMPT395A1/app/config/queue.php @@ -0,0 +1,85 @@ + 'sync', + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection information for each server that + | is used by your application. A default configuration has been added + | for each back-end shipped with Laravel. You are free to add more. + | + */ + + 'connections' => array( + + 'sync' => array( + 'driver' => 'sync', + ), + + 'beanstalkd' => array( + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'ttr' => 60, + ), + + 'sqs' => array( + 'driver' => 'sqs', + 'key' => 'your-public-key', + 'secret' => 'your-secret-key', + 'queue' => 'your-queue-url', + 'region' => 'us-east-1', + ), + + 'iron' => array( + 'driver' => 'iron', + 'host' => 'mq-aws-us-east-1.iron.io', + 'token' => 'your-token', + 'project' => 'your-project-id', + 'queue' => 'your-queue-name', + 'encrypt' => true, + ), + + 'redis' => array( + 'driver' => 'redis', + 'queue' => 'default', + ), + + ), + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control which database and table are used to store the jobs that + | have failed. You may change them to any database / table you wish. + | + */ + + 'failed' => array( + + 'database' => 'mysql', 'table' => 'failed_jobs', + + ), + +); diff --git a/CMPT395A1/app/config/remote.php b/CMPT395A1/app/config/remote.php new file mode 100644 index 0000000..2169c43 --- /dev/null +++ b/CMPT395A1/app/config/remote.php @@ -0,0 +1,59 @@ + 'production', + + /* + |-------------------------------------------------------------------------- + | Remote Server Connections + |-------------------------------------------------------------------------- + | + | These are the servers that will be accessible via the SSH task runner + | facilities of Laravel. This feature radically simplifies executing + | tasks on your servers, such as deploying out these applications. + | + */ + + 'connections' => array( + + 'production' => array( + 'host' => '', + 'username' => '', + 'password' => '', + 'key' => '', + 'keyphrase' => '', + 'root' => '/var/www', + ), + + ), + + /* + |-------------------------------------------------------------------------- + | Remote Server Groups + |-------------------------------------------------------------------------- + | + | Here you may list connections under a single group name, which allows + | you to easily access all of the servers at once using a short name + | that is extremely easy to remember, such as "web" or "database". + | + */ + + 'groups' => array( + + 'web' => array('production') + + ), + +); diff --git a/CMPT395A1/app/config/services.php b/CMPT395A1/app/config/services.php new file mode 100644 index 0000000..c8aba2a --- /dev/null +++ b/CMPT395A1/app/config/services.php @@ -0,0 +1,31 @@ + array( + 'domain' => '', + 'secret' => '', + ), + + 'mandrill' => array( + 'secret' => '', + ), + + 'stripe' => array( + 'model' => 'User', + 'secret' => '', + ), + +); diff --git a/CMPT395A1/app/config/session.php b/CMPT395A1/app/config/session.php new file mode 100644 index 0000000..ae34302 --- /dev/null +++ b/CMPT395A1/app/config/session.php @@ -0,0 +1,140 @@ + 'file', + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to immediately expire on the browser closing, set that option. + | + */ + + 'lifetime' => 120, + + 'expire_on_close' => false, + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When using the native session driver, we need a location where session + | files may be stored. A default has been set for you but a different + | location may be specified. This is only needed for file sessions. + | + */ + + 'files' => storage_path().'/sessions', + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => null, + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table we + | should use to manage the sessions. Of course, a sensible default is + | provided for you; however, you are free to change this as needed. + | + */ + + 'table' => 'sessions', + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => array(2, 100), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the cookie used to identify a session + | instance by ID. The name specified here will get used every time a + | new session cookie is created by the framework for every driver. + | + */ + + 'cookie' => 'laravel_session', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => null, + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you if it can not be done securely. + | + */ + + 'secure' => false, + +); diff --git a/CMPT395A1/app/config/testing/cache.php b/CMPT395A1/app/config/testing/cache.php new file mode 100644 index 0000000..66a8a39 --- /dev/null +++ b/CMPT395A1/app/config/testing/cache.php @@ -0,0 +1,20 @@ + 'array', + +); diff --git a/CMPT395A1/app/config/testing/session.php b/CMPT395A1/app/config/testing/session.php new file mode 100644 index 0000000..0364b63 --- /dev/null +++ b/CMPT395A1/app/config/testing/session.php @@ -0,0 +1,21 @@ + 'array', + +); diff --git a/CMPT395A1/app/config/view.php b/CMPT395A1/app/config/view.php new file mode 100644 index 0000000..34b8f38 --- /dev/null +++ b/CMPT395A1/app/config/view.php @@ -0,0 +1,31 @@ + array(__DIR__.'/../views'), + + /* + |-------------------------------------------------------------------------- + | Pagination View + |-------------------------------------------------------------------------- + | + | This view will be used to render the pagination link output, and can + | be easily customized here to show any view you like. A clean view + | compatible with Twitter's Bootstrap is given to you by default. + | + */ + + 'pagination' => 'pagination::slider-3', + +); diff --git a/CMPT395A1/app/config/workbench.php b/CMPT395A1/app/config/workbench.php new file mode 100644 index 0000000..87c5e38 --- /dev/null +++ b/CMPT395A1/app/config/workbench.php @@ -0,0 +1,31 @@ + '', + + /* + |-------------------------------------------------------------------------- + | Workbench Author E-Mail Address + |-------------------------------------------------------------------------- + | + | Like the option above, your e-mail address is used when generating new + | workbench packages. The e-mail is placed in your composer.json file + | automatically after the package is created by the workbench tool. + | + */ + + 'email' => '', + +); diff --git a/CMPT395A1/app/controllers/.gitkeep b/CMPT395A1/app/controllers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/CMPT395A1/app/controllers/BaseController.php b/CMPT395A1/app/controllers/BaseController.php new file mode 100644 index 0000000..2bee464 --- /dev/null +++ b/CMPT395A1/app/controllers/BaseController.php @@ -0,0 +1,18 @@ +layout)) + { + $this->layout = View::make($this->layout); + } + } + +} diff --git a/CMPT395A1/app/controllers/HomeController.php b/CMPT395A1/app/controllers/HomeController.php new file mode 100644 index 0000000..ede41a7 --- /dev/null +++ b/CMPT395A1/app/controllers/HomeController.php @@ -0,0 +1,23 @@ +call('UserTableSeeder'); + } + +} diff --git a/CMPT395A1/app/filters.php b/CMPT395A1/app/filters.php new file mode 100644 index 0000000..97a9468 --- /dev/null +++ b/CMPT395A1/app/filters.php @@ -0,0 +1,90 @@ + '« Previous', + + 'next' => 'Next »', + +); diff --git a/CMPT395A1/app/lang/en/reminders.php b/CMPT395A1/app/lang/en/reminders.php new file mode 100644 index 0000000..e2e24e5 --- /dev/null +++ b/CMPT395A1/app/lang/en/reminders.php @@ -0,0 +1,26 @@ + "Passwords must be at least six characters and match the confirmation.", + + "user" => "We can't find a user with that e-mail address.", + + "token" => "This password reset token is invalid.", + + "sent" => "Password reminder sent!", + + "reset" => "Password has been reset!", + +); diff --git a/CMPT395A1/app/lang/en/validation.php b/CMPT395A1/app/lang/en/validation.php new file mode 100644 index 0000000..648516e --- /dev/null +++ b/CMPT395A1/app/lang/en/validation.php @@ -0,0 +1,106 @@ + "The :attribute must be accepted.", + "active_url" => "The :attribute is not a valid URL.", + "after" => "The :attribute must be a date after :date.", + "alpha" => "The :attribute may only contain letters.", + "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", + "alpha_num" => "The :attribute may only contain letters and numbers.", + "array" => "The :attribute must be an array.", + "before" => "The :attribute must be a date before :date.", + "between" => array( + "numeric" => "The :attribute must be between :min and :max.", + "file" => "The :attribute must be between :min and :max kilobytes.", + "string" => "The :attribute must be between :min and :max characters.", + "array" => "The :attribute must have between :min and :max items.", + ), + "boolean" => "The :attribute field must be true or false.", + "confirmed" => "The :attribute confirmation does not match.", + "date" => "The :attribute is not a valid date.", + "date_format" => "The :attribute does not match the format :format.", + "different" => "The :attribute and :other must be different.", + "digits" => "The :attribute must be :digits digits.", + "digits_between" => "The :attribute must be between :min and :max digits.", + "email" => "The :attribute must be a valid email address.", + "exists" => "The selected :attribute is invalid.", + "image" => "The :attribute must be an image.", + "in" => "The selected :attribute is invalid.", + "integer" => "The :attribute must be an integer.", + "ip" => "The :attribute must be a valid IP address.", + "max" => array( + "numeric" => "The :attribute may not be greater than :max.", + "file" => "The :attribute may not be greater than :max kilobytes.", + "string" => "The :attribute may not be greater than :max characters.", + "array" => "The :attribute may not have more than :max items.", + ), + "mimes" => "The :attribute must be a file of type: :values.", + "min" => array( + "numeric" => "The :attribute must be at least :min.", + "file" => "The :attribute must be at least :min kilobytes.", + "string" => "The :attribute must be at least :min characters.", + "array" => "The :attribute must have at least :min items.", + ), + "not_in" => "The selected :attribute is invalid.", + "numeric" => "The :attribute must be a number.", + "regex" => "The :attribute format is invalid.", + "required" => "The :attribute field is required.", + "required_if" => "The :attribute field is required when :other is :value.", + "required_with" => "The :attribute field is required when :values is present.", + "required_with_all" => "The :attribute field is required when :values is present.", + "required_without" => "The :attribute field is required when :values is not present.", + "required_without_all" => "The :attribute field is required when none of :values are present.", + "same" => "The :attribute and :other must match.", + "size" => array( + "numeric" => "The :attribute must be :size.", + "file" => "The :attribute must be :size kilobytes.", + "string" => "The :attribute must be :size characters.", + "array" => "The :attribute must contain :size items.", + ), + "unique" => "The :attribute has already been taken.", + "url" => "The :attribute format is invalid.", + "timezone" => "The :attribute must be a valid zone.", + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => array( + 'attribute-name' => array( + 'rule-name' => 'custom-message', + ), + ), + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap attribute place-holders + | with something more reader friendly such as E-Mail Address instead + | of "email". This simply helps us make messages a little cleaner. + | + */ + + 'attributes' => array(), + +); diff --git a/CMPT395A1/app/models/User.php b/CMPT395A1/app/models/User.php new file mode 100644 index 0000000..af00a49 --- /dev/null +++ b/CMPT395A1/app/models/User.php @@ -0,0 +1,26 @@ +client->request('GET', '/'); + + $this->assertTrue($this->client->getResponse()->isOk()); + } + +} diff --git a/CMPT395A1/app/tests/TestCase.php b/CMPT395A1/app/tests/TestCase.php new file mode 100644 index 0000000..d367fe5 --- /dev/null +++ b/CMPT395A1/app/tests/TestCase.php @@ -0,0 +1,19 @@ + + + + + + +

Password Reset

+ +
+ To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
+ This link will expire in {{ Config::get('auth.reminder.expire', 60) }} minutes. +
+ + diff --git a/CMPT395A1/app/views/home.blade.php b/CMPT395A1/app/views/home.blade.php new file mode 100644 index 0000000..2bcada0 --- /dev/null +++ b/CMPT395A1/app/views/home.blade.php @@ -0,0 +1,13 @@ +@extends('layouts.default') + +@section('title') + HTML Rul3z D00d - Home +@stop + +@section('navigation') +
  • Log-In
  • +@stop + +@section('content') +

    Welcome

    +@stop diff --git a/CMPT395A1/app/views/layouts/default.blade.php b/CMPT395A1/app/views/layouts/default.blade.php new file mode 100644 index 0000000..56212f0 --- /dev/null +++ b/CMPT395A1/app/views/layouts/default.blade.php @@ -0,0 +1,22 @@ + + + + + @yield('title') + + + + +
    HTML Rul3z D00d
    + + +@yield('content') + + + diff --git a/CMPT395A1/artisan b/CMPT395A1/artisan new file mode 100755 index 0000000..5c408ad --- /dev/null +++ b/CMPT395A1/artisan @@ -0,0 +1,74 @@ +#!/usr/bin/env php +setRequestForConsoleEnvironment(); + +$artisan = Illuminate\Console\Application::start($app); + +/* +|-------------------------------------------------------------------------- +| Run The Artisan Application +|-------------------------------------------------------------------------- +| +| When we run the console application, the current CLI command will be +| executed in this console and the response sent back to a terminal +| or another output device for the developers. Here goes nothing! +| +*/ + +$status = $artisan->run(); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running. We will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$app->shutdown(); + +exit($status); diff --git a/CMPT395A1/bootstrap/autoload.php b/CMPT395A1/bootstrap/autoload.php new file mode 100644 index 0000000..6b32931 --- /dev/null +++ b/CMPT395A1/bootstrap/autoload.php @@ -0,0 +1,75 @@ + __DIR__.'/../app', + + /* + |-------------------------------------------------------------------------- + | Public Path + |-------------------------------------------------------------------------- + | + | The public path contains the assets for your web application, such as + | your JavaScript and CSS files, and also contains the primary entry + | point for web requests into these applications from the outside. + | + */ + + 'public' => __DIR__.'/../public', + + /* + |-------------------------------------------------------------------------- + | Base Path + |-------------------------------------------------------------------------- + | + | The base path is the root of the Laravel installation. Most likely you + | will not need to change this value. But, if for some wild reason it + | is necessary you will do so here, just proceed with some caution. + | + */ + + 'base' => __DIR__.'/..', + + /* + |-------------------------------------------------------------------------- + | Storage Path + |-------------------------------------------------------------------------- + | + | The storage path is used by Laravel to store cached Blade views, logs + | and other pieces of information. You may modify the path here when + | you want to change the location of this directory for your apps. + | + */ + + 'storage' => __DIR__.'/../app/storage', + +); diff --git a/CMPT395A1/bootstrap/start.php b/CMPT395A1/bootstrap/start.php new file mode 100644 index 0000000..84559be --- /dev/null +++ b/CMPT395A1/bootstrap/start.php @@ -0,0 +1,73 @@ +detectEnvironment(array( + + 'local' => array('homestead'), + +)); + +/* +|-------------------------------------------------------------------------- +| Bind Paths +|-------------------------------------------------------------------------- +| +| Here we are binding the paths configured in paths.php to the app. You +| should not be changing these here. If you need to change these you +| may do so within the paths.php file and they will be bound here. +| +*/ + +$app->bindInstallPaths(require __DIR__.'/paths.php'); + +/* +|-------------------------------------------------------------------------- +| Load The Application +|-------------------------------------------------------------------------- +| +| Here we will load this Illuminate application. We will keep this in a +| separate location so we can isolate the creation of an application +| from the actual running of the application with a given request. +| +*/ + +$framework = $app['path.base']. + '/vendor/laravel/framework/src'; + +require $framework.'/Illuminate/Foundation/start.php'; + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/CMPT395A1/composer.json b/CMPT395A1/composer.json new file mode 100644 index 0000000..e53e401 --- /dev/null +++ b/CMPT395A1/composer.json @@ -0,0 +1,37 @@ +{ + "name": "laravel/laravel", + "description": "The Laravel Framework.", + "keywords": ["framework", "laravel"], + "license": "MIT", + "type": "project", + "require": { + "laravel/framework": "4.2.*" + }, + "autoload": { + "classmap": [ + "app/commands", + "app/controllers", + "app/models", + "app/database/migrations", + "app/database/seeds", + "app/tests/TestCase.php" + ] + }, + "scripts": { + "post-install-cmd": [ + "php artisan clear-compiled", + "php artisan optimize" + ], + "post-update-cmd": [ + "php artisan clear-compiled", + "php artisan optimize" + ], + "post-create-project-cmd": [ + "php artisan key:generate" + ] + }, + "config": { + "preferred-install": "dist" + }, + "minimum-stability": "stable" +} diff --git a/CMPT395A1/phpunit.xml b/CMPT395A1/phpunit.xml new file mode 100644 index 0000000..c330420 --- /dev/null +++ b/CMPT395A1/phpunit.xml @@ -0,0 +1,18 @@ + + + + + ./app/tests/ + + + diff --git a/CMPT395A1/public/.htaccess b/CMPT395A1/public/.htaccess new file mode 100644 index 0000000..77827ae --- /dev/null +++ b/CMPT395A1/public/.htaccess @@ -0,0 +1,15 @@ + + + Options -MultiViews + + + RewriteEngine On + + # Redirect Trailing Slashes... + RewriteRule ^(.*)/$ /$1 [L,R=301] + + # Handle Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/CMPT395A1/public/css/basic.css b/CMPT395A1/public/css/basic.css new file mode 100644 index 0000000..15d953b --- /dev/null +++ b/CMPT395A1/public/css/basic.css @@ -0,0 +1,57 @@ +body { + font-family:Arial,Helvetica,sans-serif; + color:black; + background:darkred; + font-size:150%; +} + +.title { + color:black; + font-size:200%; + padding-left:20px; + padding-top:10px; +} + +#nav { + background: black; + height: 34px; +} + +#nav ul li { + color:orange; + float: left; + padding: 0 15px; + padding-top: 2px; + margin: 2px 0; + border-left: 1px solid silver; +} + +#nav ul { + list-style:none; +} + +#nav ul li:first-child { + padding-left: 0; + margin-left: 0; + border-left: 0; +} + +#nav ul li:last-child { + border-right: 1px solid silver; +} + +#nav ul li a { + text-decoration: none; +} + +#nav ul li a:link { + color: silver; +} + +#nav ul li a:hover { + color: #fff; +} + +#nav ul li a:visited { + color: silver; +} diff --git a/CMPT395A1/public/favicon.ico b/CMPT395A1/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/CMPT395A1/public/index.php b/CMPT395A1/public/index.php new file mode 100644 index 0000000..f08822d --- /dev/null +++ b/CMPT395A1/public/index.php @@ -0,0 +1,49 @@ + + */ + +/* +|-------------------------------------------------------------------------- +| Register The Auto Loader +|-------------------------------------------------------------------------- +| +| Composer provides a convenient, automatically generated class loader +| for our application. We just need to utilize it! We'll require it +| into the script here so that we do not have to worry about the +| loading of any our classes "manually". Feels great to relax. +| +*/ + +require __DIR__.'/../bootstrap/autoload.php'; + +/* +|-------------------------------------------------------------------------- +| Turn On The Lights +|-------------------------------------------------------------------------- +| +| We need to illuminate PHP development, so let's turn on the lights. +| This bootstraps the framework and gets it ready for use, then it +| will load up this application so that we can run it and send +| the responses back to the browser and delight these users. +| +*/ + +$app = require_once __DIR__.'/../bootstrap/start.php'; + +/* +|-------------------------------------------------------------------------- +| Run The Application +|-------------------------------------------------------------------------- +| +| Once we have the application, we can simply call the run method, +| which will execute the request and send the response back to +| the client's browser allowing them to enjoy the creative +| and wonderful application we have whipped up for them. +| +*/ + +$app->run(); diff --git a/CMPT395A1/public/packages/.gitkeep b/CMPT395A1/public/packages/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/CMPT395A1/public/robots.txt b/CMPT395A1/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/CMPT395A1/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/CMPT395A1/readme.md b/CMPT395A1/readme.md new file mode 100644 index 0000000..40ea7ee --- /dev/null +++ b/CMPT395A1/readme.md @@ -0,0 +1,25 @@ +## Laravel PHP Framework + +[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework) +[![Total Downloads](https://poser.pugx.org/laravel/framework/downloads.svg)](https://packagist.org/packages/laravel/framework) +[![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework) +[![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework) +[![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework) + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching. + +Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality. Happy developers make the best code. To this end, we've attempted to combine the very best of what we have seen in other web frameworks, including frameworks implemented in other languages, such as Ruby on Rails, ASP.NET MVC, and Sinatra. + +Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked. + +## Official Documentation + +Documentation for the entire framework can be found on the [Laravel website](http://laravel.com/docs). + +### Contributing To Laravel + +**All issues and pull requests should be filed on the [laravel/framework](http://github.com/laravel/framework) repository.** + +### License + +The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT) diff --git a/CMPT395A1/server.php b/CMPT395A1/server.php new file mode 100644 index 0000000..5f187f3 --- /dev/null +++ b/CMPT395A1/server.php @@ -0,0 +1,19 @@ + Date: Thu, 29 Jan 2015 23:14:59 -0500 Subject: [PATCH 02/10] Fixed css path and added create account page --- CMPT395A1/app/controllers/PagesController.php | 4 -- .../app/controllers/SessionsController.php | 9 +++ CMPT395A1/app/controllers/css/basic.css | 57 ------------------- CMPT395A1/app/routes.php | 5 ++ CMPT395A1/app/views/home.blade.php | 6 +- CMPT395A1/app/views/layouts/default.blade.php | 7 ++- CMPT395A1/app/views/sessions/create.blade.php | 23 ++++++++ CMPT395A1/public/css/basic.css | 8 +-- 8 files changed, 46 insertions(+), 73 deletions(-) create mode 100644 CMPT395A1/app/controllers/SessionsController.php delete mode 100644 CMPT395A1/app/controllers/css/basic.css create mode 100644 CMPT395A1/app/views/sessions/create.blade.php diff --git a/CMPT395A1/app/controllers/PagesController.php b/CMPT395A1/app/controllers/PagesController.php index f34e30f..2e40d84 100644 --- a/CMPT395A1/app/controllers/PagesController.php +++ b/CMPT395A1/app/controllers/PagesController.php @@ -5,8 +5,4 @@ class PagesController extends BaseController { public function home() { return View::make('home'); } - - public function login() { - return View::make('login'); - } } diff --git a/CMPT395A1/app/controllers/SessionsController.php b/CMPT395A1/app/controllers/SessionsController.php new file mode 100644 index 0000000..475153d --- /dev/null +++ b/CMPT395A1/app/controllers/SessionsController.php @@ -0,0 +1,9 @@ +Log-In + Home @stop @section('content') diff --git a/CMPT395A1/app/views/layouts/default.blade.php b/CMPT395A1/app/views/layouts/default.blade.php index 56212f0..e20e332 100644 --- a/CMPT395A1/app/views/layouts/default.blade.php +++ b/CMPT395A1/app/views/layouts/default.blade.php @@ -2,7 +2,7 @@ - @yield('title') + HTML Rul3z D00d - @yield('title') @@ -11,8 +11,9 @@ diff --git a/CMPT395A1/app/views/sessions/create.blade.php b/CMPT395A1/app/views/sessions/create.blade.php new file mode 100644 index 0000000..41aa046 --- /dev/null +++ b/CMPT395A1/app/views/sessions/create.blade.php @@ -0,0 +1,23 @@ +@extends('layouts.default') + +@section('title') + Create Account +@stop + +@section('content') +

    Create Account

    + + {{ Form::open() }} + +
    + {{ Form::label('email', 'Email:') }} + {{ Form::email('email') }} +
    + +
    + {{ Form::label('password', 'Password:') }} + {{ Form::password('password') }} +
    + + {{ Form::close() }} +@stop diff --git a/CMPT395A1/public/css/basic.css b/CMPT395A1/public/css/basic.css index 15d953b..958e7de 100644 --- a/CMPT395A1/public/css/basic.css +++ b/CMPT395A1/public/css/basic.css @@ -1,7 +1,7 @@ body { font-family:Arial,Helvetica,sans-serif; - color:black; - background:darkred; + color:orange; + background:purple; font-size:150%; } @@ -49,9 +49,9 @@ body { } #nav ul li a:hover { - color: #fff; + color: orange; } #nav ul li a:visited { - color: silver; + color: white; } From bf56a192423d90d85d0291f5aad1e432a0a3e67b Mon Sep 17 00:00:00 2001 From: Zac Batog Date: Fri, 30 Jan 2015 14:53:23 -0500 Subject: [PATCH 03/10] Log-In page runs, but not connected to DB. Create Account page needs to be connected to DB before it will work --- CMPT395A1/app/config/app.php | 2 +- .../app/controllers/SessionsController.php | 4 ++- CMPT395A1/app/controllers/UsersController.php | 8 ++++++ CMPT395A1/app/routes.php | 1 + CMPT395A1/app/views/layouts/default.blade.php | 10 +++---- CMPT395A1/app/views/sessions/create.blade.php | 8 ++++-- CMPT395A1/app/views/users/nAccnt.blade.php | 28 +++++++++++++++++++ 7 files changed, 51 insertions(+), 10 deletions(-) create mode 100644 CMPT395A1/app/controllers/UsersController.php create mode 100644 CMPT395A1/app/views/users/nAccnt.blade.php diff --git a/CMPT395A1/app/config/app.php b/CMPT395A1/app/config/app.php index 4830f76..3a082b5 100644 --- a/CMPT395A1/app/config/app.php +++ b/CMPT395A1/app/config/app.php @@ -13,7 +13,7 @@ | */ - 'debug' => false, + 'debug' => true, /* |-------------------------------------------------------------------------- diff --git a/CMPT395A1/app/controllers/SessionsController.php b/CMPT395A1/app/controllers/SessionsController.php index 475153d..9eaeb5f 100644 --- a/CMPT395A1/app/controllers/SessionsController.php +++ b/CMPT395A1/app/controllers/SessionsController.php @@ -2,8 +2,10 @@ class SessionsController extends BaseController { - public function create(){ + public function create() { return View::make('sessions.create'); } + + } diff --git a/CMPT395A1/app/controllers/UsersController.php b/CMPT395A1/app/controllers/UsersController.php new file mode 100644 index 0000000..f79be1e --- /dev/null +++ b/CMPT395A1/app/controllers/UsersController.php @@ -0,0 +1,8 @@ + - - HTML Rul3z D00d - @yield('title') - + HTML Rul3z D00d - @yield('title') + +
    HTML Rul3z D00d
    diff --git a/CMPT395A1/app/views/sessions/create.blade.php b/CMPT395A1/app/views/sessions/create.blade.php index 41aa046..b538cb1 100644 --- a/CMPT395A1/app/views/sessions/create.blade.php +++ b/CMPT395A1/app/views/sessions/create.blade.php @@ -1,13 +1,13 @@ @extends('layouts.default') @section('title') - Create Account + Log-In @stop @section('content') -

    Create Account

    +

    Log-In

    - {{ Form::open() }} + {{ Form::open([]) }}
    {{ Form::label('email', 'Email:') }} @@ -19,5 +19,7 @@ {{ Form::password('password') }}
    +
    {{ Form::submit('Log-In') }}
    + {{ Form::close() }} @stop diff --git a/CMPT395A1/app/views/users/nAccnt.blade.php b/CMPT395A1/app/views/users/nAccnt.blade.php new file mode 100644 index 0000000..39921c1 --- /dev/null +++ b/CMPT395A1/app/views/users/nAccnt.blade.php @@ -0,0 +1,28 @@ +@extends('layouts.default') + +@section('title') + Create Account +@stop + +@section('content') +

    Create Account

    + + {{ Form::open() }} + +
    + {{ Form::label('username', 'Username:') }} + {{ Form::uname('username') }} +
    + +
    + {{ Form::label('email', 'Email:') }} + {{ Form::email('email') }} +
    + +
    + {{ Form::label('password', 'Password:') }} + {{ Form::password('password') }} +
    + + {{ Form::close() }} +@stop From b2c69e9edcf86618cd9d1184af2b406e79f676c6 Mon Sep 17 00:00:00 2001 From: Zac Batog Date: Fri, 30 Jan 2015 15:28:14 -0500 Subject: [PATCH 04/10] 'Edit Account Info' view created without DB connections. Routes still need to connect to the file. --- CMPT395A1/app/views/users/eAccnt.blade.php | 37 ++++++++++++++++++++++ CMPT395A1/app/views/users/nAccnt.blade.php | 14 ++++++++ 2 files changed, 51 insertions(+) create mode 100644 CMPT395A1/app/views/users/eAccnt.blade.php diff --git a/CMPT395A1/app/views/users/eAccnt.blade.php b/CMPT395A1/app/views/users/eAccnt.blade.php new file mode 100644 index 0000000..048113b --- /dev/null +++ b/CMPT395A1/app/views/users/eAccnt.blade.php @@ -0,0 +1,37 @@ +@extends('layouts.default') + +@section('title') + Edit Account Info +@stop + +@section('content') +

    Edit Account Info

    + + {{ Form::open() }} + +
    + {{ Form::label('email', 'Email:') }} + {{ Form::email('email') }} +
    + +
    + {{ Form::label('password', 'Password:') }} + {{ Form::password('password') }} +
    + +
    + {{ Form::label('phone', 'Phone #:') }} + {{ Form::phone('phone') }} +
    + +
    + {{ Form::label('name', 'Real Name:') }} + {{ Form::name('name') }} +
    + +
    + {{ Form::submit('Save') }} +
    + + {{ Form::close() }} +@stop diff --git a/CMPT395A1/app/views/users/nAccnt.blade.php b/CMPT395A1/app/views/users/nAccnt.blade.php index 39921c1..352cb27 100644 --- a/CMPT395A1/app/views/users/nAccnt.blade.php +++ b/CMPT395A1/app/views/users/nAccnt.blade.php @@ -24,5 +24,19 @@ {{ Form::password('password') }} +
    + {{ Form::label('phone', 'Phone #:') }} + {{ Form::phone('phone') }} +
    + +
    + {{ Form::label('name', 'Real Name:') }} + {{ Form::name('name') }} +
    + +
    + {{ Form::submit() }} +
    + {{ Form::close() }} @stop From 41f3ce8e19abcfd3e263a41f587335049631d236 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 30 Jan 2015 22:00:04 -0500 Subject: [PATCH 05/10] added database functionality with the website. Now displays user's info when user name is clicked. Fixed Create Account Page not working. --- CMPT395A1/app/config/database.php | 6 +-- .../app/controllers/SessionsController.php | 13 +++++- CMPT395A1/app/controllers/UsersController.php | 42 ++++++++++++++++++- CMPT395A1/app/routes.php | 11 +++-- CMPT395A1/app/views/users/create.blade.php | 20 +++++++++ CMPT395A1/app/views/users/index.blade.php | 14 +++++++ CMPT395A1/app/views/users/show.blade.php | 5 +++ 7 files changed, 103 insertions(+), 8 deletions(-) create mode 100644 CMPT395A1/app/views/users/create.blade.php create mode 100644 CMPT395A1/app/views/users/index.blade.php create mode 100644 CMPT395A1/app/views/users/show.blade.php diff --git a/CMPT395A1/app/config/database.php b/CMPT395A1/app/config/database.php index 3498fa8..882dc52 100644 --- a/CMPT395A1/app/config/database.php +++ b/CMPT395A1/app/config/database.php @@ -55,9 +55,9 @@ 'mysql' => array( 'driver' => 'mysql', 'host' => 'localhost', - 'database' => 'forge', - 'username' => 'forge', - 'password' => '', + 'database' => 'cmpt395a1', + 'username' => 'jharvard', + 'password' => 'crimson', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', diff --git a/CMPT395A1/app/controllers/SessionsController.php b/CMPT395A1/app/controllers/SessionsController.php index 9eaeb5f..575b79b 100644 --- a/CMPT395A1/app/controllers/SessionsController.php +++ b/CMPT395A1/app/controllers/SessionsController.php @@ -6,6 +6,17 @@ public function create() { return View::make('sessions.create'); } - + public function store() { + if (Auth::attempt(Input::only('email', 'password'))) { + return "Welcome" . Auth::user()->username; + } + + return Redirect::back()->withInput(); + } + + public function destroy() { + Auth::logout(); + return Redirect::route('sessions.create'); + } } diff --git a/CMPT395A1/app/controllers/UsersController.php b/CMPT395A1/app/controllers/UsersController.php index f79be1e..2b7ecb4 100644 --- a/CMPT395A1/app/controllers/UsersController.php +++ b/CMPT395A1/app/controllers/UsersController.php @@ -1,8 +1,48 @@ user = $user; } + + public function index() { + $users = $this->user->all(); + + return View::make('users.index', ['users' => $users]); + } + + + + public function show($username) { + $user = $this->user->whereUsername($username)->first(); //grab the first username that matches USERNAME + + return View::make('users.show', ['user' => $user]); + } + + + public function create() { + return View::make('users.create'); + } + + + public function store() { + + $input = Input::all(); + + if (!$this->user->fill($input)->isValid()) { + return Redirect::back()->withInput()->withErrors($this->user->messages); + } + + $this->user->save(); + + return Redirect::route('users.index'); + } + } diff --git a/CMPT395A1/app/routes.php b/CMPT395A1/app/routes.php index 8e0b115..6b9fae4 100644 --- a/CMPT395A1/app/routes.php +++ b/CMPT395A1/app/routes.php @@ -10,10 +10,15 @@ | and give it the Closure to execute when that URI is requested. | */ + +#Route::get('users', 'UsersController@index'); +#Route::get('users/{username}', 'UsersController@show'); + Route::get('/', 'PagesController@home'); -Route::get('/sessions/create', 'SessionsController@create'); -Route::get('/users/nAccnt', 'UsersController@nAccnt'); +#Route::get('/sessions/create', 'SessionsController@create'); +#Route::get('/users/nAccnt', 'UsersController@nAccnt'); +Route::resource('users', 'UsersController'); -Route::resource('sessions', 'SessionsController'); +#Route::resource('sessions', 'SessionsController'); diff --git a/CMPT395A1/app/views/users/create.blade.php b/CMPT395A1/app/views/users/create.blade.php new file mode 100644 index 0000000..ca86dd0 --- /dev/null +++ b/CMPT395A1/app/views/users/create.blade.php @@ -0,0 +1,20 @@ +@extends('layouts.default') + +@section('content') +

    Create New User

    + {{ Form::open(['route' => 'users.store']) }} +
    + {{ Form::label('username', 'Username: ') }} + {{ Form::text('username') }} + {{ $errors->first('username') }} +
    + +
    + {{ Form::label('password', 'Password: ') }} + {{ Form::password('password') }} + {{ $errors->first('password') }} +
    + +
    {{ Form::submit('Create User') }}
    + {{ Form::close() }} +@stop diff --git a/CMPT395A1/app/views/users/index.blade.php b/CMPT395A1/app/views/users/index.blade.php new file mode 100644 index 0000000..e064d62 --- /dev/null +++ b/CMPT395A1/app/views/users/index.blade.php @@ -0,0 +1,14 @@ +@extends('layouts.default') + +@section('content') +

    All Users

    + + @if ($users->count()) + @foreach ($users as $user) +
  • {{ link_to("/users/{$user->username}", $user->username) }}
  • + + @endforeach + @else +

    Unfortunately, there are no users.

    + @endif +@stop diff --git a/CMPT395A1/app/views/users/show.blade.php b/CMPT395A1/app/views/users/show.blade.php new file mode 100644 index 0000000..f5e3632 --- /dev/null +++ b/CMPT395A1/app/views/users/show.blade.php @@ -0,0 +1,5 @@ +@extends('layouts.default') + +@section ('content') +

    Hello, {{ $user->username }}

    +@stop From 645d0d22f315c7ddeddc493ecba658f9c252156f Mon Sep 17 00:00:00 2001 From: David Date: Fri, 30 Jan 2015 23:13:34 -0500 Subject: [PATCH 06/10] added members link to header bar. added database readme. fixed user model and changed background of the website --- CMPT395A1/app/models/User.php | 24 ++++++++- CMPT395A1/app/routes.php | 7 +-- CMPT395A1/app/views/home.blade.php | 3 ++ CMPT395A1/app/views/layouts/default.blade.php | 3 +- CMPT395A1/app/views/users/create.blade.php | 50 +++++++++++++------ CMPT395A1/app/views/users/nAccnt.blade.php | 42 ---------------- CMPT395A1/database_readme | 11 ++++ CMPT395A1/public/css/basic.css | 2 +- 8 files changed, 78 insertions(+), 64 deletions(-) delete mode 100644 CMPT395A1/app/views/users/nAccnt.blade.php create mode 100644 CMPT395A1/database_readme diff --git a/CMPT395A1/app/models/User.php b/CMPT395A1/app/models/User.php index af00a49..797ab55 100644 --- a/CMPT395A1/app/models/User.php +++ b/CMPT395A1/app/models/User.php @@ -8,7 +8,17 @@ class User extends Eloquent implements UserInterface, RemindableInterface { use UserTrait, RemindableTrait; - + + public $timestamps = false; + + protected $fillable = ['username', 'email', 'password']; + + public static $rules = [ + 'username' => 'required', + 'password' => 'required' + ]; + + public $messages; /** * The database table used by the model. * @@ -22,5 +32,17 @@ class User extends Eloquent implements UserInterface, RemindableInterface { * @var array */ protected $hidden = array('password', 'remember_token'); + + public function isValid() { + $validation = Validator::make($this->attributes, static::$rules); + + if ($validation->passes()) { + return true; + } + + $this->messages = $validation->messages(); + + return false; + } } diff --git a/CMPT395A1/app/routes.php b/CMPT395A1/app/routes.php index 6b9fae4..34e063b 100644 --- a/CMPT395A1/app/routes.php +++ b/CMPT395A1/app/routes.php @@ -11,14 +11,11 @@ | */ -#Route::get('users', 'UsersController@index'); -#Route::get('users/{username}', 'UsersController@show'); Route::get('/', 'PagesController@home'); -#Route::get('/sessions/create', 'SessionsController@create'); -#Route::get('/users/nAccnt', 'UsersController@nAccnt'); +Route::get('/sessions/create', 'SessionsController@create'); Route::resource('users', 'UsersController'); -#Route::resource('sessions', 'SessionsController'); +Route::resource('sessions', 'SessionsController'); diff --git a/CMPT395A1/app/views/home.blade.php b/CMPT395A1/app/views/home.blade.php index 97a2a03..5e74fd1 100644 --- a/CMPT395A1/app/views/home.blade.php +++ b/CMPT395A1/app/views/home.blade.php @@ -6,4 +6,7 @@ @section('content')

    Welcome

    +

    This is a website entirely devoted to the admiration of the HTML code. Here, you can find members who all love and constantly use HTML.

    +

    If you already are part of this awesome website, you can log in by clicking the login button at the top. Those of you who are not yet part of this community, you can create your account by clicking on the create account button.

    +

    You can check out all the members of this cool website by clicking on the Members button

    @stop diff --git a/CMPT395A1/app/views/layouts/default.blade.php b/CMPT395A1/app/views/layouts/default.blade.php index 1ae4323..333c906 100644 --- a/CMPT395A1/app/views/layouts/default.blade.php +++ b/CMPT395A1/app/views/layouts/default.blade.php @@ -13,7 +13,8 @@
  • Home
  • Log-In
  • -
  • Create Account
  • +
  • Create Account
  • +
  • Members
  • diff --git a/CMPT395A1/app/views/users/create.blade.php b/CMPT395A1/app/views/users/create.blade.php index ca86dd0..352cb27 100644 --- a/CMPT395A1/app/views/users/create.blade.php +++ b/CMPT395A1/app/views/users/create.blade.php @@ -1,20 +1,42 @@ @extends('layouts.default') +@section('title') + Create Account +@stop + @section('content') -

    Create New User

    - {{ Form::open(['route' => 'users.store']) }} +

    Create Account

    + + {{ Form::open() }} + +
    + {{ Form::label('username', 'Username:') }} + {{ Form::uname('username') }} +
    + +
    + {{ Form::label('email', 'Email:') }} + {{ Form::email('email') }} +
    + +
    + {{ Form::label('password', 'Password:') }} + {{ Form::password('password') }} +
    + +
    + {{ Form::label('phone', 'Phone #:') }} + {{ Form::phone('phone') }} +
    + +
    + {{ Form::label('name', 'Real Name:') }} + {{ Form::name('name') }} +
    +
    - {{ Form::label('username', 'Username: ') }} - {{ Form::text('username') }} - {{ $errors->first('username') }} -
    - -
    - {{ Form::label('password', 'Password: ') }} - {{ Form::password('password') }} - {{ $errors->first('password') }} -
    - -
    {{ Form::submit('Create User') }}
    + {{ Form::submit() }} + + {{ Form::close() }} @stop diff --git a/CMPT395A1/app/views/users/nAccnt.blade.php b/CMPT395A1/app/views/users/nAccnt.blade.php deleted file mode 100644 index 352cb27..0000000 --- a/CMPT395A1/app/views/users/nAccnt.blade.php +++ /dev/null @@ -1,42 +0,0 @@ -@extends('layouts.default') - -@section('title') - Create Account -@stop - -@section('content') -

    Create Account

    - - {{ Form::open() }} - -
    - {{ Form::label('username', 'Username:') }} - {{ Form::uname('username') }} -
    - -
    - {{ Form::label('email', 'Email:') }} - {{ Form::email('email') }} -
    - -
    - {{ Form::label('password', 'Password:') }} - {{ Form::password('password') }} -
    - -
    - {{ Form::label('phone', 'Phone #:') }} - {{ Form::phone('phone') }} -
    - -
    - {{ Form::label('name', 'Real Name:') }} - {{ Form::name('name') }} -
    - -
    - {{ Form::submit() }} -
    - - {{ Form::close() }} -@stop diff --git a/CMPT395A1/database_readme b/CMPT395A1/database_readme new file mode 100644 index 0000000..f17931e --- /dev/null +++ b/CMPT395A1/database_readme @@ -0,0 +1,11 @@ +To start up mysql type: mysql -u root -p +type in the password for root + +To create the table users, which is used in our website: +CREATE TABLE users (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, phone VARCHAR(50), name VARCHAR(50)); + +To insert users into the database: +INSERT INTO users (id, username, email, password, phone, name) VALUES (NULL, "johncasserole", "johncasserole@gmail.com", "12345", "456-321-5678", "John"); + +INSERT INTO users (id, username, email, password, phone, name) VALUES (NULL, "davidsol", "dude@gmail.com", "12345", " ", "David"); + diff --git a/CMPT395A1/public/css/basic.css b/CMPT395A1/public/css/basic.css index 958e7de..75ae714 100644 --- a/CMPT395A1/public/css/basic.css +++ b/CMPT395A1/public/css/basic.css @@ -1,7 +1,7 @@ body { font-family:Arial,Helvetica,sans-serif; color:orange; - background:purple; + background:steelblue; font-size:150%; } From e465a74698631571dc1c2fe01d1615ba3a2c31a5 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 30 Jan 2015 23:52:55 -0500 Subject: [PATCH 07/10] Fixed issues with accessing create account page --- CMPT395A1/app/controllers/UsersController.php | 2 -- CMPT395A1/app/views/users/create.blade.php | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMPT395A1/app/controllers/UsersController.php b/CMPT395A1/app/controllers/UsersController.php index 2b7ecb4..633ece4 100644 --- a/CMPT395A1/app/controllers/UsersController.php +++ b/CMPT395A1/app/controllers/UsersController.php @@ -17,8 +17,6 @@ public function index() { return View::make('users.index', ['users' => $users]); } - - public function show($username) { $user = $this->user->whereUsername($username)->first(); //grab the first username that matches USERNAME diff --git a/CMPT395A1/app/views/users/create.blade.php b/CMPT395A1/app/views/users/create.blade.php index 352cb27..b3354e3 100644 --- a/CMPT395A1/app/views/users/create.blade.php +++ b/CMPT395A1/app/views/users/create.blade.php @@ -11,7 +11,7 @@
    {{ Form::label('username', 'Username:') }} - {{ Form::uname('username') }} + {{ Form::text('username') }}
    @@ -26,12 +26,12 @@
    {{ Form::label('phone', 'Phone #:') }} - {{ Form::phone('phone') }} + {{ Form::text('phone') }}
    {{ Form::label('name', 'Real Name:') }} - {{ Form::name('name') }} + {{ Form::text('name') }}
    From b6e4158a2b6b67a4afb8bc3af8baf73a3c6b090e Mon Sep 17 00:00:00 2001 From: Zac Batog Date: Fri, 6 Feb 2015 14:10:01 -0500 Subject: [PATCH 08/10] Add Zac Batog --- 395labw15 | 1 + CMPT395A1/.gitattributes | 1 - CMPT395A1/.gitignore | 8 - CMPT395A1/CONTRIBUTING.md | 3 - CMPT395A1/app/commands/.gitkeep | 0 CMPT395A1/app/config/app.php | 194 ------------------ CMPT395A1/app/config/auth.php | 71 ------- CMPT395A1/app/config/cache.php | 89 -------- CMPT395A1/app/config/compile.php | 18 -- CMPT395A1/app/config/database.php | 124 ----------- CMPT395A1/app/config/local/app.php | 18 -- CMPT395A1/app/config/local/database.php | 47 ----- CMPT395A1/app/config/mail.php | 124 ----------- CMPT395A1/app/config/packages/.gitkeep | 0 CMPT395A1/app/config/queue.php | 85 -------- CMPT395A1/app/config/remote.php | 59 ------ CMPT395A1/app/config/services.php | 31 --- CMPT395A1/app/config/session.php | 140 ------------- CMPT395A1/app/config/testing/cache.php | 20 -- CMPT395A1/app/config/testing/session.php | 21 -- CMPT395A1/app/config/view.php | 31 --- CMPT395A1/app/config/workbench.php | 31 --- CMPT395A1/app/controllers/.gitkeep | 0 CMPT395A1/app/controllers/BaseController.php | 18 -- CMPT395A1/app/controllers/HomeController.php | 23 --- CMPT395A1/app/controllers/PagesController.php | 8 - .../app/controllers/SessionsController.php | 22 -- CMPT395A1/app/controllers/UsersController.php | 46 ----- CMPT395A1/app/database/.gitignore | 1 - CMPT395A1/app/database/migrations/.gitkeep | 0 CMPT395A1/app/database/seeds/.gitkeep | 0 .../app/database/seeds/DatabaseSeeder.php | 17 -- CMPT395A1/app/filters.php | 90 -------- CMPT395A1/app/lang/en/pagination.php | 20 -- CMPT395A1/app/lang/en/reminders.php | 26 --- CMPT395A1/app/lang/en/validation.php | 106 ---------- CMPT395A1/app/models/User.php | 48 ----- CMPT395A1/app/routes.php | 21 -- CMPT395A1/app/start/artisan.php | 13 -- CMPT395A1/app/start/global.php | 81 -------- CMPT395A1/app/start/local.php | 3 - CMPT395A1/app/storage/.gitignore | 1 - CMPT395A1/app/storage/cache/.gitignore | 2 - CMPT395A1/app/storage/logs/.gitignore | 2 - CMPT395A1/app/storage/meta/.gitignore | 2 - CMPT395A1/app/storage/sessions/.gitignore | 2 - CMPT395A1/app/storage/views/.gitignore | 2 - CMPT395A1/app/tests/ExampleTest.php | 17 -- CMPT395A1/app/tests/TestCase.php | 19 -- .../app/views/emails/auth/reminder.blade.php | 14 -- CMPT395A1/app/views/home.blade.php | 12 -- CMPT395A1/app/views/layouts/default.blade.php | 24 --- CMPT395A1/app/views/sessions/create.blade.php | 25 --- CMPT395A1/app/views/users/create.blade.php | 42 ---- CMPT395A1/app/views/users/eAccnt.blade.php | 37 ---- CMPT395A1/app/views/users/index.blade.php | 14 -- CMPT395A1/app/views/users/show.blade.php | 5 - CMPT395A1/artisan | 74 ------- CMPT395A1/bootstrap/autoload.php | 75 ------- CMPT395A1/bootstrap/paths.php | 57 ----- CMPT395A1/bootstrap/start.php | 73 ------- CMPT395A1/composer.json | 37 ---- CMPT395A1/database_readme | 11 - CMPT395A1/phpunit.xml | 18 -- CMPT395A1/public/.htaccess | 15 -- CMPT395A1/public/css/basic.css | 57 ----- CMPT395A1/public/favicon.ico | 0 CMPT395A1/public/index.php | 49 ----- CMPT395A1/public/packages/.gitkeep | 0 CMPT395A1/public/robots.txt | 2 - CMPT395A1/readme.md | 25 --- CMPT395A1/server.php | 19 -- 72 files changed, 1 insertion(+), 2390 deletions(-) create mode 160000 395labw15 delete mode 100644 CMPT395A1/.gitattributes delete mode 100644 CMPT395A1/.gitignore delete mode 100644 CMPT395A1/CONTRIBUTING.md delete mode 100644 CMPT395A1/app/commands/.gitkeep delete mode 100644 CMPT395A1/app/config/app.php delete mode 100644 CMPT395A1/app/config/auth.php delete mode 100644 CMPT395A1/app/config/cache.php delete mode 100644 CMPT395A1/app/config/compile.php delete mode 100644 CMPT395A1/app/config/database.php delete mode 100644 CMPT395A1/app/config/local/app.php delete mode 100644 CMPT395A1/app/config/local/database.php delete mode 100644 CMPT395A1/app/config/mail.php delete mode 100644 CMPT395A1/app/config/packages/.gitkeep delete mode 100755 CMPT395A1/app/config/queue.php delete mode 100644 CMPT395A1/app/config/remote.php delete mode 100644 CMPT395A1/app/config/services.php delete mode 100644 CMPT395A1/app/config/session.php delete mode 100644 CMPT395A1/app/config/testing/cache.php delete mode 100644 CMPT395A1/app/config/testing/session.php delete mode 100644 CMPT395A1/app/config/view.php delete mode 100644 CMPT395A1/app/config/workbench.php delete mode 100644 CMPT395A1/app/controllers/.gitkeep delete mode 100644 CMPT395A1/app/controllers/BaseController.php delete mode 100644 CMPT395A1/app/controllers/HomeController.php delete mode 100644 CMPT395A1/app/controllers/PagesController.php delete mode 100644 CMPT395A1/app/controllers/SessionsController.php delete mode 100644 CMPT395A1/app/controllers/UsersController.php delete mode 100644 CMPT395A1/app/database/.gitignore delete mode 100644 CMPT395A1/app/database/migrations/.gitkeep delete mode 100644 CMPT395A1/app/database/seeds/.gitkeep delete mode 100644 CMPT395A1/app/database/seeds/DatabaseSeeder.php delete mode 100644 CMPT395A1/app/filters.php delete mode 100644 CMPT395A1/app/lang/en/pagination.php delete mode 100644 CMPT395A1/app/lang/en/reminders.php delete mode 100644 CMPT395A1/app/lang/en/validation.php delete mode 100644 CMPT395A1/app/models/User.php delete mode 100644 CMPT395A1/app/routes.php delete mode 100644 CMPT395A1/app/start/artisan.php delete mode 100644 CMPT395A1/app/start/global.php delete mode 100644 CMPT395A1/app/start/local.php delete mode 100644 CMPT395A1/app/storage/.gitignore delete mode 100644 CMPT395A1/app/storage/cache/.gitignore delete mode 100644 CMPT395A1/app/storage/logs/.gitignore delete mode 100644 CMPT395A1/app/storage/meta/.gitignore delete mode 100644 CMPT395A1/app/storage/sessions/.gitignore delete mode 100644 CMPT395A1/app/storage/views/.gitignore delete mode 100644 CMPT395A1/app/tests/ExampleTest.php delete mode 100644 CMPT395A1/app/tests/TestCase.php delete mode 100644 CMPT395A1/app/views/emails/auth/reminder.blade.php delete mode 100644 CMPT395A1/app/views/home.blade.php delete mode 100644 CMPT395A1/app/views/layouts/default.blade.php delete mode 100644 CMPT395A1/app/views/sessions/create.blade.php delete mode 100644 CMPT395A1/app/views/users/create.blade.php delete mode 100644 CMPT395A1/app/views/users/eAccnt.blade.php delete mode 100644 CMPT395A1/app/views/users/index.blade.php delete mode 100644 CMPT395A1/app/views/users/show.blade.php delete mode 100755 CMPT395A1/artisan delete mode 100644 CMPT395A1/bootstrap/autoload.php delete mode 100644 CMPT395A1/bootstrap/paths.php delete mode 100644 CMPT395A1/bootstrap/start.php delete mode 100644 CMPT395A1/composer.json delete mode 100644 CMPT395A1/database_readme delete mode 100644 CMPT395A1/phpunit.xml delete mode 100644 CMPT395A1/public/.htaccess delete mode 100644 CMPT395A1/public/css/basic.css delete mode 100644 CMPT395A1/public/favicon.ico delete mode 100644 CMPT395A1/public/index.php delete mode 100644 CMPT395A1/public/packages/.gitkeep delete mode 100644 CMPT395A1/public/robots.txt delete mode 100644 CMPT395A1/readme.md delete mode 100644 CMPT395A1/server.php diff --git a/395labw15 b/395labw15 new file mode 160000 index 0000000..c821d5f --- /dev/null +++ b/395labw15 @@ -0,0 +1 @@ +Subproject commit c821d5f5198b72f7aa343b11d07b2ffb8b240e2c diff --git a/CMPT395A1/.gitattributes b/CMPT395A1/.gitattributes deleted file mode 100644 index 176a458..0000000 --- a/CMPT395A1/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/CMPT395A1/.gitignore b/CMPT395A1/.gitignore deleted file mode 100644 index b5363f0..0000000 --- a/CMPT395A1/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -/bootstrap/compiled.php -/vendor -composer.phar -composer.lock -.env.*.php -.env.php -.DS_Store -Thumbs.db diff --git a/CMPT395A1/CONTRIBUTING.md b/CMPT395A1/CONTRIBUTING.md deleted file mode 100644 index 6a780c4..0000000 --- a/CMPT395A1/CONTRIBUTING.md +++ /dev/null @@ -1,3 +0,0 @@ -# Contribution Guidelines - -Please submit all issues and pull requests to the [laravel/framework](http://github.com/laravel/framework) repository! diff --git a/CMPT395A1/app/commands/.gitkeep b/CMPT395A1/app/commands/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/CMPT395A1/app/config/app.php b/CMPT395A1/app/config/app.php deleted file mode 100644 index 3a082b5..0000000 --- a/CMPT395A1/app/config/app.php +++ /dev/null @@ -1,194 +0,0 @@ - true, - - /* - |-------------------------------------------------------------------------- - | Application URL - |-------------------------------------------------------------------------- - | - | This URL is used by the console to properly generate URLs when using - | the Artisan command line tool. You should set this to the root of - | your application so that it is used when running Artisan tasks. - | - */ - - 'url' => 'http://localhost', - - /* - |-------------------------------------------------------------------------- - | Application Timezone - |-------------------------------------------------------------------------- - | - | Here you may specify the default timezone for your application, which - | will be used by the PHP date and date-time functions. We have gone - | ahead and set this to a sensible default for you out of the box. - | - */ - - 'timezone' => 'UTC', - - /* - |-------------------------------------------------------------------------- - | Application Locale Configuration - |-------------------------------------------------------------------------- - | - | The application locale determines the default locale that will be used - | by the translation service provider. You are free to set this value - | to any of the locales which will be supported by the application. - | - */ - - 'locale' => 'en', - - /* - |-------------------------------------------------------------------------- - | Application Fallback Locale - |-------------------------------------------------------------------------- - | - | The fallback locale determines the locale to use when the current one - | is not available. You may change the value to correspond to any of - | the language folders that are provided through your application. - | - */ - - 'fallback_locale' => 'en', - - /* - |-------------------------------------------------------------------------- - | Encryption Key - |-------------------------------------------------------------------------- - | - | This key is used by the Illuminate encrypter service and should be set - | to a random, 32 character string, otherwise these encrypted strings - | will not be safe. Please do this before deploying an application! - | - */ - - 'key' => 'BfRaBajHd6ZlpWAMeI2ecoKbMrLoRptw', - - 'cipher' => MCRYPT_RIJNDAEL_128, - - /* - |-------------------------------------------------------------------------- - | Autoloaded Service Providers - |-------------------------------------------------------------------------- - | - | The service providers listed here will be automatically loaded on the - | request to your application. Feel free to add your own services to - | this array to grant expanded functionality to your applications. - | - */ - - 'providers' => array( - - 'Illuminate\Foundation\Providers\ArtisanServiceProvider', - 'Illuminate\Auth\AuthServiceProvider', - 'Illuminate\Cache\CacheServiceProvider', - 'Illuminate\Session\CommandsServiceProvider', - 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', - 'Illuminate\Routing\ControllerServiceProvider', - 'Illuminate\Cookie\CookieServiceProvider', - 'Illuminate\Database\DatabaseServiceProvider', - 'Illuminate\Encryption\EncryptionServiceProvider', - 'Illuminate\Filesystem\FilesystemServiceProvider', - 'Illuminate\Hashing\HashServiceProvider', - 'Illuminate\Html\HtmlServiceProvider', - 'Illuminate\Log\LogServiceProvider', - 'Illuminate\Mail\MailServiceProvider', - 'Illuminate\Database\MigrationServiceProvider', - 'Illuminate\Pagination\PaginationServiceProvider', - 'Illuminate\Queue\QueueServiceProvider', - 'Illuminate\Redis\RedisServiceProvider', - 'Illuminate\Remote\RemoteServiceProvider', - 'Illuminate\Auth\Reminders\ReminderServiceProvider', - 'Illuminate\Database\SeedServiceProvider', - 'Illuminate\Session\SessionServiceProvider', - 'Illuminate\Translation\TranslationServiceProvider', - 'Illuminate\Validation\ValidationServiceProvider', - 'Illuminate\View\ViewServiceProvider', - 'Illuminate\Workbench\WorkbenchServiceProvider', - - ), - - /* - |-------------------------------------------------------------------------- - | Service Provider Manifest - |-------------------------------------------------------------------------- - | - | The service provider manifest is used by Laravel to lazy load service - | providers which are not needed for each request, as well to keep a - | list of all of the services. Here, you may set its storage spot. - | - */ - - 'manifest' => storage_path().'/meta', - - /* - |-------------------------------------------------------------------------- - | Class Aliases - |-------------------------------------------------------------------------- - | - | This array of class aliases will be registered when this application - | is started. However, feel free to register as many as you wish as - | the aliases are "lazy" loaded so they don't hinder performance. - | - */ - - 'aliases' => array( - - 'App' => 'Illuminate\Support\Facades\App', - 'Artisan' => 'Illuminate\Support\Facades\Artisan', - 'Auth' => 'Illuminate\Support\Facades\Auth', - 'Blade' => 'Illuminate\Support\Facades\Blade', - 'Cache' => 'Illuminate\Support\Facades\Cache', - 'ClassLoader' => 'Illuminate\Support\ClassLoader', - 'Config' => 'Illuminate\Support\Facades\Config', - 'Controller' => 'Illuminate\Routing\Controller', - 'Cookie' => 'Illuminate\Support\Facades\Cookie', - 'Crypt' => 'Illuminate\Support\Facades\Crypt', - 'DB' => 'Illuminate\Support\Facades\DB', - 'Eloquent' => 'Illuminate\Database\Eloquent\Model', - 'Event' => 'Illuminate\Support\Facades\Event', - 'File' => 'Illuminate\Support\Facades\File', - 'Form' => 'Illuminate\Support\Facades\Form', - 'Hash' => 'Illuminate\Support\Facades\Hash', - 'HTML' => 'Illuminate\Support\Facades\HTML', - 'Input' => 'Illuminate\Support\Facades\Input', - 'Lang' => 'Illuminate\Support\Facades\Lang', - 'Log' => 'Illuminate\Support\Facades\Log', - 'Mail' => 'Illuminate\Support\Facades\Mail', - 'Paginator' => 'Illuminate\Support\Facades\Paginator', - 'Password' => 'Illuminate\Support\Facades\Password', - 'Queue' => 'Illuminate\Support\Facades\Queue', - 'Redirect' => 'Illuminate\Support\Facades\Redirect', - 'Redis' => 'Illuminate\Support\Facades\Redis', - 'Request' => 'Illuminate\Support\Facades\Request', - 'Response' => 'Illuminate\Support\Facades\Response', - 'Route' => 'Illuminate\Support\Facades\Route', - 'Schema' => 'Illuminate\Support\Facades\Schema', - 'Seeder' => 'Illuminate\Database\Seeder', - 'Session' => 'Illuminate\Support\Facades\Session', - 'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait', - 'SSH' => 'Illuminate\Support\Facades\SSH', - 'Str' => 'Illuminate\Support\Str', - 'URL' => 'Illuminate\Support\Facades\URL', - 'Validator' => 'Illuminate\Support\Facades\Validator', - 'View' => 'Illuminate\Support\Facades\View', - - ), - -); diff --git a/CMPT395A1/app/config/auth.php b/CMPT395A1/app/config/auth.php deleted file mode 100644 index eacbbfa..0000000 --- a/CMPT395A1/app/config/auth.php +++ /dev/null @@ -1,71 +0,0 @@ - 'eloquent', - - /* - |-------------------------------------------------------------------------- - | Authentication Model - |-------------------------------------------------------------------------- - | - | When using the "Eloquent" authentication driver, we need to know which - | Eloquent model should be used to retrieve your users. Of course, it - | is often just the "User" model but you may use whatever you like. - | - */ - - 'model' => 'User', - - /* - |-------------------------------------------------------------------------- - | Authentication Table - |-------------------------------------------------------------------------- - | - | When using the "Database" authentication driver, we need to know which - | table should be used to retrieve your users. We have chosen a basic - | default value but you may easily change it to any table you like. - | - */ - - 'table' => 'users', - - /* - |-------------------------------------------------------------------------- - | Password Reminder Settings - |-------------------------------------------------------------------------- - | - | Here you may set the settings for password reminders, including a view - | that should be used as your password reminder e-mail. You will also - | be able to set the name of the table that holds the reset tokens. - | - | The "expire" time is the number of minutes that the reminder should be - | considered valid. This security feature keeps tokens short-lived so - | they have less time to be guessed. You may change this as needed. - | - */ - - 'reminder' => array( - - 'email' => 'emails.auth.reminder', - - 'table' => 'password_reminders', - - 'expire' => 60, - - ), - -); diff --git a/CMPT395A1/app/config/cache.php b/CMPT395A1/app/config/cache.php deleted file mode 100644 index ce89842..0000000 --- a/CMPT395A1/app/config/cache.php +++ /dev/null @@ -1,89 +0,0 @@ - 'file', - - /* - |-------------------------------------------------------------------------- - | File Cache Location - |-------------------------------------------------------------------------- - | - | When using the "file" cache driver, we need a location where the cache - | files may be stored. A sensible default has been specified, but you - | are free to change it to any other place on disk that you desire. - | - */ - - 'path' => storage_path().'/cache', - - /* - |-------------------------------------------------------------------------- - | Database Cache Connection - |-------------------------------------------------------------------------- - | - | When using the "database" cache driver you may specify the connection - | that should be used to store the cached items. When this option is - | null the default database connection will be utilized for cache. - | - */ - - 'connection' => null, - - /* - |-------------------------------------------------------------------------- - | Database Cache Table - |-------------------------------------------------------------------------- - | - | When using the "database" cache driver we need to know the table that - | should be used to store the cached items. A default table name has - | been provided but you're free to change it however you deem fit. - | - */ - - 'table' => 'cache', - - /* - |-------------------------------------------------------------------------- - | Memcached Servers - |-------------------------------------------------------------------------- - | - | Now you may specify an array of your Memcached servers that should be - | used when utilizing the Memcached cache driver. All of the servers - | should contain a value for "host", "port", and "weight" options. - | - */ - - 'memcached' => array( - - array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), - - ), - - /* - |-------------------------------------------------------------------------- - | Cache Key Prefix - |-------------------------------------------------------------------------- - | - | When utilizing a RAM based store such as APC or Memcached, there might - | be other applications utilizing the same cache. So, we'll specify a - | value to get prefixed to all our keys so we can avoid collisions. - | - */ - - 'prefix' => 'laravel', - -); diff --git a/CMPT395A1/app/config/compile.php b/CMPT395A1/app/config/compile.php deleted file mode 100644 index d5e5518..0000000 --- a/CMPT395A1/app/config/compile.php +++ /dev/null @@ -1,18 +0,0 @@ - PDO::FETCH_CLASS, - - /* - |-------------------------------------------------------------------------- - | Default Database Connection Name - |-------------------------------------------------------------------------- - | - | Here you may specify which of the database connections below you wish - | to use as your default connection for all database work. Of course - | you may use many connections at once using the Database library. - | - */ - - 'default' => 'mysql', - - /* - |-------------------------------------------------------------------------- - | Database Connections - |-------------------------------------------------------------------------- - | - | Here are each of the database connections setup for your application. - | Of course, examples of configuring each database platform that is - | supported by Laravel is shown below to make development simple. - | - | - | All database work in Laravel is done through the PHP PDO facilities - | so make sure you have the driver for your particular database of - | choice installed on your machine before you begin development. - | - */ - - 'connections' => array( - - 'sqlite' => array( - 'driver' => 'sqlite', - 'database' => __DIR__.'/../database/production.sqlite', - 'prefix' => '', - ), - - 'mysql' => array( - 'driver' => 'mysql', - 'host' => 'localhost', - 'database' => 'cmpt395a1', - 'username' => 'jharvard', - 'password' => 'crimson', - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - ), - - 'pgsql' => array( - 'driver' => 'pgsql', - 'host' => 'localhost', - 'database' => 'forge', - 'username' => 'forge', - 'password' => '', - 'charset' => 'utf8', - 'prefix' => '', - 'schema' => 'public', - ), - - 'sqlsrv' => array( - 'driver' => 'sqlsrv', - 'host' => 'localhost', - 'database' => 'database', - 'username' => 'root', - 'password' => '', - 'prefix' => '', - ), - - ), - - /* - |-------------------------------------------------------------------------- - | Migration Repository Table - |-------------------------------------------------------------------------- - | - | This table keeps track of all the migrations that have already run for - | your application. Using this information, we can determine which of - | the migrations on disk haven't actually been run in the database. - | - */ - - 'migrations' => 'migrations', - - /* - |-------------------------------------------------------------------------- - | Redis Databases - |-------------------------------------------------------------------------- - | - | Redis is an open source, fast, and advanced key-value store that also - | provides a richer set of commands than a typical key-value systems - | such as APC or Memcached. Laravel makes it easy to dig right in. - | - */ - - 'redis' => array( - - 'cluster' => false, - - 'default' => array( - 'host' => '127.0.0.1', - 'port' => 6379, - 'database' => 0, - ), - - ), - -); diff --git a/CMPT395A1/app/config/local/app.php b/CMPT395A1/app/config/local/app.php deleted file mode 100644 index c56fcb9..0000000 --- a/CMPT395A1/app/config/local/app.php +++ /dev/null @@ -1,18 +0,0 @@ - true, - -); diff --git a/CMPT395A1/app/config/local/database.php b/CMPT395A1/app/config/local/database.php deleted file mode 100644 index fbcb95a..0000000 --- a/CMPT395A1/app/config/local/database.php +++ /dev/null @@ -1,47 +0,0 @@ - array( - - 'mysql' => array( - 'driver' => 'mysql', - 'host' => 'localhost', - 'database' => 'homestead', - 'username' => 'homestead', - 'password' => 'secret', - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - ), - - 'pgsql' => array( - 'driver' => 'pgsql', - 'host' => 'localhost', - 'database' => 'homestead', - 'username' => 'homestead', - 'password' => 'secret', - 'charset' => 'utf8', - 'prefix' => '', - 'schema' => 'public', - ), - - ), - -); diff --git a/CMPT395A1/app/config/mail.php b/CMPT395A1/app/config/mail.php deleted file mode 100644 index 76fd9e4..0000000 --- a/CMPT395A1/app/config/mail.php +++ /dev/null @@ -1,124 +0,0 @@ - 'smtp', - - /* - |-------------------------------------------------------------------------- - | SMTP Host Address - |-------------------------------------------------------------------------- - | - | Here you may provide the host address of the SMTP server used by your - | applications. A default option is provided that is compatible with - | the Mailgun mail service which will provide reliable deliveries. - | - */ - - 'host' => 'smtp.mailgun.org', - - /* - |-------------------------------------------------------------------------- - | SMTP Host Port - |-------------------------------------------------------------------------- - | - | This is the SMTP port used by your application to deliver e-mails to - | users of the application. Like the host we have set this value to - | stay compatible with the Mailgun e-mail application by default. - | - */ - - 'port' => 587, - - /* - |-------------------------------------------------------------------------- - | Global "From" Address - |-------------------------------------------------------------------------- - | - | You may wish for all e-mails sent by your application to be sent from - | the same address. Here, you may specify a name and address that is - | used globally for all e-mails that are sent by your application. - | - */ - - 'from' => array('address' => null, 'name' => null), - - /* - |-------------------------------------------------------------------------- - | E-Mail Encryption Protocol - |-------------------------------------------------------------------------- - | - | Here you may specify the encryption protocol that should be used when - | the application send e-mail messages. A sensible default using the - | transport layer security protocol should provide great security. - | - */ - - 'encryption' => 'tls', - - /* - |-------------------------------------------------------------------------- - | SMTP Server Username - |-------------------------------------------------------------------------- - | - | If your SMTP server requires a username for authentication, you should - | set it here. This will get used to authenticate with your server on - | connection. You may also set the "password" value below this one. - | - */ - - 'username' => null, - - /* - |-------------------------------------------------------------------------- - | SMTP Server Password - |-------------------------------------------------------------------------- - | - | Here you may set the password required by your SMTP server to send out - | messages from your application. This will be given to the server on - | connection so that the application will be able to send messages. - | - */ - - 'password' => null, - - /* - |-------------------------------------------------------------------------- - | Sendmail System Path - |-------------------------------------------------------------------------- - | - | When using the "sendmail" driver to send e-mails, we will need to know - | the path to where Sendmail lives on this server. A default path has - | been provided here, which will work well on most of your systems. - | - */ - - 'sendmail' => '/usr/sbin/sendmail -bs', - - /* - |-------------------------------------------------------------------------- - | Mail "Pretend" - |-------------------------------------------------------------------------- - | - | When this option is enabled, e-mail will not actually be sent over the - | web and will instead be written to your application's logs files so - | you may inspect the message. This is great for local development. - | - */ - - 'pretend' => false, - -); diff --git a/CMPT395A1/app/config/packages/.gitkeep b/CMPT395A1/app/config/packages/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/CMPT395A1/app/config/queue.php b/CMPT395A1/app/config/queue.php deleted file mode 100755 index 940a4cd..0000000 --- a/CMPT395A1/app/config/queue.php +++ /dev/null @@ -1,85 +0,0 @@ - 'sync', - - /* - |-------------------------------------------------------------------------- - | Queue Connections - |-------------------------------------------------------------------------- - | - | Here you may configure the connection information for each server that - | is used by your application. A default configuration has been added - | for each back-end shipped with Laravel. You are free to add more. - | - */ - - 'connections' => array( - - 'sync' => array( - 'driver' => 'sync', - ), - - 'beanstalkd' => array( - 'driver' => 'beanstalkd', - 'host' => 'localhost', - 'queue' => 'default', - 'ttr' => 60, - ), - - 'sqs' => array( - 'driver' => 'sqs', - 'key' => 'your-public-key', - 'secret' => 'your-secret-key', - 'queue' => 'your-queue-url', - 'region' => 'us-east-1', - ), - - 'iron' => array( - 'driver' => 'iron', - 'host' => 'mq-aws-us-east-1.iron.io', - 'token' => 'your-token', - 'project' => 'your-project-id', - 'queue' => 'your-queue-name', - 'encrypt' => true, - ), - - 'redis' => array( - 'driver' => 'redis', - 'queue' => 'default', - ), - - ), - - /* - |-------------------------------------------------------------------------- - | Failed Queue Jobs - |-------------------------------------------------------------------------- - | - | These options configure the behavior of failed queue job logging so you - | can control which database and table are used to store the jobs that - | have failed. You may change them to any database / table you wish. - | - */ - - 'failed' => array( - - 'database' => 'mysql', 'table' => 'failed_jobs', - - ), - -); diff --git a/CMPT395A1/app/config/remote.php b/CMPT395A1/app/config/remote.php deleted file mode 100644 index 2169c43..0000000 --- a/CMPT395A1/app/config/remote.php +++ /dev/null @@ -1,59 +0,0 @@ - 'production', - - /* - |-------------------------------------------------------------------------- - | Remote Server Connections - |-------------------------------------------------------------------------- - | - | These are the servers that will be accessible via the SSH task runner - | facilities of Laravel. This feature radically simplifies executing - | tasks on your servers, such as deploying out these applications. - | - */ - - 'connections' => array( - - 'production' => array( - 'host' => '', - 'username' => '', - 'password' => '', - 'key' => '', - 'keyphrase' => '', - 'root' => '/var/www', - ), - - ), - - /* - |-------------------------------------------------------------------------- - | Remote Server Groups - |-------------------------------------------------------------------------- - | - | Here you may list connections under a single group name, which allows - | you to easily access all of the servers at once using a short name - | that is extremely easy to remember, such as "web" or "database". - | - */ - - 'groups' => array( - - 'web' => array('production') - - ), - -); diff --git a/CMPT395A1/app/config/services.php b/CMPT395A1/app/config/services.php deleted file mode 100644 index c8aba2a..0000000 --- a/CMPT395A1/app/config/services.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'domain' => '', - 'secret' => '', - ), - - 'mandrill' => array( - 'secret' => '', - ), - - 'stripe' => array( - 'model' => 'User', - 'secret' => '', - ), - -); diff --git a/CMPT395A1/app/config/session.php b/CMPT395A1/app/config/session.php deleted file mode 100644 index ae34302..0000000 --- a/CMPT395A1/app/config/session.php +++ /dev/null @@ -1,140 +0,0 @@ - 'file', - - /* - |-------------------------------------------------------------------------- - | Session Lifetime - |-------------------------------------------------------------------------- - | - | Here you may specify the number of minutes that you wish the session - | to be allowed to remain idle before it expires. If you want them - | to immediately expire on the browser closing, set that option. - | - */ - - 'lifetime' => 120, - - 'expire_on_close' => false, - - /* - |-------------------------------------------------------------------------- - | Session File Location - |-------------------------------------------------------------------------- - | - | When using the native session driver, we need a location where session - | files may be stored. A default has been set for you but a different - | location may be specified. This is only needed for file sessions. - | - */ - - 'files' => storage_path().'/sessions', - - /* - |-------------------------------------------------------------------------- - | Session Database Connection - |-------------------------------------------------------------------------- - | - | When using the "database" or "redis" session drivers, you may specify a - | connection that should be used to manage these sessions. This should - | correspond to a connection in your database configuration options. - | - */ - - 'connection' => null, - - /* - |-------------------------------------------------------------------------- - | Session Database Table - |-------------------------------------------------------------------------- - | - | When using the "database" session driver, you may specify the table we - | should use to manage the sessions. Of course, a sensible default is - | provided for you; however, you are free to change this as needed. - | - */ - - 'table' => 'sessions', - - /* - |-------------------------------------------------------------------------- - | Session Sweeping Lottery - |-------------------------------------------------------------------------- - | - | Some session drivers must manually sweep their storage location to get - | rid of old sessions from storage. Here are the chances that it will - | happen on a given request. By default, the odds are 2 out of 100. - | - */ - - 'lottery' => array(2, 100), - - /* - |-------------------------------------------------------------------------- - | Session Cookie Name - |-------------------------------------------------------------------------- - | - | Here you may change the name of the cookie used to identify a session - | instance by ID. The name specified here will get used every time a - | new session cookie is created by the framework for every driver. - | - */ - - 'cookie' => 'laravel_session', - - /* - |-------------------------------------------------------------------------- - | Session Cookie Path - |-------------------------------------------------------------------------- - | - | The session cookie path determines the path for which the cookie will - | be regarded as available. Typically, this will be the root path of - | your application but you are free to change this when necessary. - | - */ - - 'path' => '/', - - /* - |-------------------------------------------------------------------------- - | Session Cookie Domain - |-------------------------------------------------------------------------- - | - | Here you may change the domain of the cookie used to identify a session - | in your application. This will determine which domains the cookie is - | available to in your application. A sensible default has been set. - | - */ - - 'domain' => null, - - /* - |-------------------------------------------------------------------------- - | HTTPS Only Cookies - |-------------------------------------------------------------------------- - | - | By setting this option to true, session cookies will only be sent back - | to the server if the browser has a HTTPS connection. This will keep - | the cookie from being sent to you if it can not be done securely. - | - */ - - 'secure' => false, - -); diff --git a/CMPT395A1/app/config/testing/cache.php b/CMPT395A1/app/config/testing/cache.php deleted file mode 100644 index 66a8a39..0000000 --- a/CMPT395A1/app/config/testing/cache.php +++ /dev/null @@ -1,20 +0,0 @@ - 'array', - -); diff --git a/CMPT395A1/app/config/testing/session.php b/CMPT395A1/app/config/testing/session.php deleted file mode 100644 index 0364b63..0000000 --- a/CMPT395A1/app/config/testing/session.php +++ /dev/null @@ -1,21 +0,0 @@ - 'array', - -); diff --git a/CMPT395A1/app/config/view.php b/CMPT395A1/app/config/view.php deleted file mode 100644 index 34b8f38..0000000 --- a/CMPT395A1/app/config/view.php +++ /dev/null @@ -1,31 +0,0 @@ - array(__DIR__.'/../views'), - - /* - |-------------------------------------------------------------------------- - | Pagination View - |-------------------------------------------------------------------------- - | - | This view will be used to render the pagination link output, and can - | be easily customized here to show any view you like. A clean view - | compatible with Twitter's Bootstrap is given to you by default. - | - */ - - 'pagination' => 'pagination::slider-3', - -); diff --git a/CMPT395A1/app/config/workbench.php b/CMPT395A1/app/config/workbench.php deleted file mode 100644 index 87c5e38..0000000 --- a/CMPT395A1/app/config/workbench.php +++ /dev/null @@ -1,31 +0,0 @@ - '', - - /* - |-------------------------------------------------------------------------- - | Workbench Author E-Mail Address - |-------------------------------------------------------------------------- - | - | Like the option above, your e-mail address is used when generating new - | workbench packages. The e-mail is placed in your composer.json file - | automatically after the package is created by the workbench tool. - | - */ - - 'email' => '', - -); diff --git a/CMPT395A1/app/controllers/.gitkeep b/CMPT395A1/app/controllers/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/CMPT395A1/app/controllers/BaseController.php b/CMPT395A1/app/controllers/BaseController.php deleted file mode 100644 index 2bee464..0000000 --- a/CMPT395A1/app/controllers/BaseController.php +++ /dev/null @@ -1,18 +0,0 @@ -layout)) - { - $this->layout = View::make($this->layout); - } - } - -} diff --git a/CMPT395A1/app/controllers/HomeController.php b/CMPT395A1/app/controllers/HomeController.php deleted file mode 100644 index ede41a7..0000000 --- a/CMPT395A1/app/controllers/HomeController.php +++ /dev/null @@ -1,23 +0,0 @@ -username; - } - - return Redirect::back()->withInput(); - } - - public function destroy() { - Auth::logout(); - - return Redirect::route('sessions.create'); - } -} diff --git a/CMPT395A1/app/controllers/UsersController.php b/CMPT395A1/app/controllers/UsersController.php deleted file mode 100644 index 633ece4..0000000 --- a/CMPT395A1/app/controllers/UsersController.php +++ /dev/null @@ -1,46 +0,0 @@ -user = $user; - } - - public function index() { - $users = $this->user->all(); - - return View::make('users.index', ['users' => $users]); - } - - public function show($username) { - $user = $this->user->whereUsername($username)->first(); //grab the first username that matches USERNAME - - return View::make('users.show', ['user' => $user]); - } - - - public function create() { - return View::make('users.create'); - } - - - public function store() { - - $input = Input::all(); - - if (!$this->user->fill($input)->isValid()) { - return Redirect::back()->withInput()->withErrors($this->user->messages); - } - - $this->user->save(); - - return Redirect::route('users.index'); - } - -} diff --git a/CMPT395A1/app/database/.gitignore b/CMPT395A1/app/database/.gitignore deleted file mode 100644 index 9b1dffd..0000000 --- a/CMPT395A1/app/database/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.sqlite diff --git a/CMPT395A1/app/database/migrations/.gitkeep b/CMPT395A1/app/database/migrations/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/CMPT395A1/app/database/seeds/.gitkeep b/CMPT395A1/app/database/seeds/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/CMPT395A1/app/database/seeds/DatabaseSeeder.php b/CMPT395A1/app/database/seeds/DatabaseSeeder.php deleted file mode 100644 index 1989252..0000000 --- a/CMPT395A1/app/database/seeds/DatabaseSeeder.php +++ /dev/null @@ -1,17 +0,0 @@ -call('UserTableSeeder'); - } - -} diff --git a/CMPT395A1/app/filters.php b/CMPT395A1/app/filters.php deleted file mode 100644 index 97a9468..0000000 --- a/CMPT395A1/app/filters.php +++ /dev/null @@ -1,90 +0,0 @@ - '« Previous', - - 'next' => 'Next »', - -); diff --git a/CMPT395A1/app/lang/en/reminders.php b/CMPT395A1/app/lang/en/reminders.php deleted file mode 100644 index e2e24e5..0000000 --- a/CMPT395A1/app/lang/en/reminders.php +++ /dev/null @@ -1,26 +0,0 @@ - "Passwords must be at least six characters and match the confirmation.", - - "user" => "We can't find a user with that e-mail address.", - - "token" => "This password reset token is invalid.", - - "sent" => "Password reminder sent!", - - "reset" => "Password has been reset!", - -); diff --git a/CMPT395A1/app/lang/en/validation.php b/CMPT395A1/app/lang/en/validation.php deleted file mode 100644 index 648516e..0000000 --- a/CMPT395A1/app/lang/en/validation.php +++ /dev/null @@ -1,106 +0,0 @@ - "The :attribute must be accepted.", - "active_url" => "The :attribute is not a valid URL.", - "after" => "The :attribute must be a date after :date.", - "alpha" => "The :attribute may only contain letters.", - "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", - "alpha_num" => "The :attribute may only contain letters and numbers.", - "array" => "The :attribute must be an array.", - "before" => "The :attribute must be a date before :date.", - "between" => array( - "numeric" => "The :attribute must be between :min and :max.", - "file" => "The :attribute must be between :min and :max kilobytes.", - "string" => "The :attribute must be between :min and :max characters.", - "array" => "The :attribute must have between :min and :max items.", - ), - "boolean" => "The :attribute field must be true or false.", - "confirmed" => "The :attribute confirmation does not match.", - "date" => "The :attribute is not a valid date.", - "date_format" => "The :attribute does not match the format :format.", - "different" => "The :attribute and :other must be different.", - "digits" => "The :attribute must be :digits digits.", - "digits_between" => "The :attribute must be between :min and :max digits.", - "email" => "The :attribute must be a valid email address.", - "exists" => "The selected :attribute is invalid.", - "image" => "The :attribute must be an image.", - "in" => "The selected :attribute is invalid.", - "integer" => "The :attribute must be an integer.", - "ip" => "The :attribute must be a valid IP address.", - "max" => array( - "numeric" => "The :attribute may not be greater than :max.", - "file" => "The :attribute may not be greater than :max kilobytes.", - "string" => "The :attribute may not be greater than :max characters.", - "array" => "The :attribute may not have more than :max items.", - ), - "mimes" => "The :attribute must be a file of type: :values.", - "min" => array( - "numeric" => "The :attribute must be at least :min.", - "file" => "The :attribute must be at least :min kilobytes.", - "string" => "The :attribute must be at least :min characters.", - "array" => "The :attribute must have at least :min items.", - ), - "not_in" => "The selected :attribute is invalid.", - "numeric" => "The :attribute must be a number.", - "regex" => "The :attribute format is invalid.", - "required" => "The :attribute field is required.", - "required_if" => "The :attribute field is required when :other is :value.", - "required_with" => "The :attribute field is required when :values is present.", - "required_with_all" => "The :attribute field is required when :values is present.", - "required_without" => "The :attribute field is required when :values is not present.", - "required_without_all" => "The :attribute field is required when none of :values are present.", - "same" => "The :attribute and :other must match.", - "size" => array( - "numeric" => "The :attribute must be :size.", - "file" => "The :attribute must be :size kilobytes.", - "string" => "The :attribute must be :size characters.", - "array" => "The :attribute must contain :size items.", - ), - "unique" => "The :attribute has already been taken.", - "url" => "The :attribute format is invalid.", - "timezone" => "The :attribute must be a valid zone.", - - /* - |-------------------------------------------------------------------------- - | Custom Validation Language Lines - |-------------------------------------------------------------------------- - | - | Here you may specify custom validation messages for attributes using the - | convention "attribute.rule" to name the lines. This makes it quick to - | specify a specific custom language line for a given attribute rule. - | - */ - - 'custom' => array( - 'attribute-name' => array( - 'rule-name' => 'custom-message', - ), - ), - - /* - |-------------------------------------------------------------------------- - | Custom Validation Attributes - |-------------------------------------------------------------------------- - | - | The following language lines are used to swap attribute place-holders - | with something more reader friendly such as E-Mail Address instead - | of "email". This simply helps us make messages a little cleaner. - | - */ - - 'attributes' => array(), - -); diff --git a/CMPT395A1/app/models/User.php b/CMPT395A1/app/models/User.php deleted file mode 100644 index 797ab55..0000000 --- a/CMPT395A1/app/models/User.php +++ /dev/null @@ -1,48 +0,0 @@ - 'required', - 'password' => 'required' - ]; - - public $messages; - /** - * The database table used by the model. - * - * @var string - */ - protected $table = 'users'; - - /** - * The attributes excluded from the model's JSON form. - * - * @var array - */ - protected $hidden = array('password', 'remember_token'); - - public function isValid() { - $validation = Validator::make($this->attributes, static::$rules); - - if ($validation->passes()) { - return true; - } - - $this->messages = $validation->messages(); - - return false; - } - -} diff --git a/CMPT395A1/app/routes.php b/CMPT395A1/app/routes.php deleted file mode 100644 index 34e063b..0000000 --- a/CMPT395A1/app/routes.php +++ /dev/null @@ -1,21 +0,0 @@ -client->request('GET', '/'); - - $this->assertTrue($this->client->getResponse()->isOk()); - } - -} diff --git a/CMPT395A1/app/tests/TestCase.php b/CMPT395A1/app/tests/TestCase.php deleted file mode 100644 index d367fe5..0000000 --- a/CMPT395A1/app/tests/TestCase.php +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - -

    Password Reset

    - -
    - To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
    - This link will expire in {{ Config::get('auth.reminder.expire', 60) }} minutes. -
    - - diff --git a/CMPT395A1/app/views/home.blade.php b/CMPT395A1/app/views/home.blade.php deleted file mode 100644 index 5e74fd1..0000000 --- a/CMPT395A1/app/views/home.blade.php +++ /dev/null @@ -1,12 +0,0 @@ -@extends('layouts.default') - -@section('title') - Home -@stop - -@section('content') -

    Welcome

    -

    This is a website entirely devoted to the admiration of the HTML code. Here, you can find members who all love and constantly use HTML.

    -

    If you already are part of this awesome website, you can log in by clicking the login button at the top. Those of you who are not yet part of this community, you can create your account by clicking on the create account button.

    -

    You can check out all the members of this cool website by clicking on the Members button

    -@stop diff --git a/CMPT395A1/app/views/layouts/default.blade.php b/CMPT395A1/app/views/layouts/default.blade.php deleted file mode 100644 index 333c906..0000000 --- a/CMPT395A1/app/views/layouts/default.blade.php +++ /dev/null @@ -1,24 +0,0 @@ - - - - HTML Rul3z D00d - @yield('title') - - - - - -
    HTML Rul3z D00d
    - - -@yield('content') - - - diff --git a/CMPT395A1/app/views/sessions/create.blade.php b/CMPT395A1/app/views/sessions/create.blade.php deleted file mode 100644 index b538cb1..0000000 --- a/CMPT395A1/app/views/sessions/create.blade.php +++ /dev/null @@ -1,25 +0,0 @@ -@extends('layouts.default') - -@section('title') - Log-In -@stop - -@section('content') -

    Log-In

    - - {{ Form::open([]) }} - -
    - {{ Form::label('email', 'Email:') }} - {{ Form::email('email') }} -
    - -
    - {{ Form::label('password', 'Password:') }} - {{ Form::password('password') }} -
    - -
    {{ Form::submit('Log-In') }}
    - - {{ Form::close() }} -@stop diff --git a/CMPT395A1/app/views/users/create.blade.php b/CMPT395A1/app/views/users/create.blade.php deleted file mode 100644 index b3354e3..0000000 --- a/CMPT395A1/app/views/users/create.blade.php +++ /dev/null @@ -1,42 +0,0 @@ -@extends('layouts.default') - -@section('title') - Create Account -@stop - -@section('content') -

    Create Account

    - - {{ Form::open() }} - -
    - {{ Form::label('username', 'Username:') }} - {{ Form::text('username') }} -
    - -
    - {{ Form::label('email', 'Email:') }} - {{ Form::email('email') }} -
    - -
    - {{ Form::label('password', 'Password:') }} - {{ Form::password('password') }} -
    - -
    - {{ Form::label('phone', 'Phone #:') }} - {{ Form::text('phone') }} -
    - -
    - {{ Form::label('name', 'Real Name:') }} - {{ Form::text('name') }} -
    - -
    - {{ Form::submit() }} -
    - - {{ Form::close() }} -@stop diff --git a/CMPT395A1/app/views/users/eAccnt.blade.php b/CMPT395A1/app/views/users/eAccnt.blade.php deleted file mode 100644 index 048113b..0000000 --- a/CMPT395A1/app/views/users/eAccnt.blade.php +++ /dev/null @@ -1,37 +0,0 @@ -@extends('layouts.default') - -@section('title') - Edit Account Info -@stop - -@section('content') -

    Edit Account Info

    - - {{ Form::open() }} - -
    - {{ Form::label('email', 'Email:') }} - {{ Form::email('email') }} -
    - -
    - {{ Form::label('password', 'Password:') }} - {{ Form::password('password') }} -
    - -
    - {{ Form::label('phone', 'Phone #:') }} - {{ Form::phone('phone') }} -
    - -
    - {{ Form::label('name', 'Real Name:') }} - {{ Form::name('name') }} -
    - -
    - {{ Form::submit('Save') }} -
    - - {{ Form::close() }} -@stop diff --git a/CMPT395A1/app/views/users/index.blade.php b/CMPT395A1/app/views/users/index.blade.php deleted file mode 100644 index e064d62..0000000 --- a/CMPT395A1/app/views/users/index.blade.php +++ /dev/null @@ -1,14 +0,0 @@ -@extends('layouts.default') - -@section('content') -

    All Users

    - - @if ($users->count()) - @foreach ($users as $user) -
  • {{ link_to("/users/{$user->username}", $user->username) }}
  • - - @endforeach - @else -

    Unfortunately, there are no users.

    - @endif -@stop diff --git a/CMPT395A1/app/views/users/show.blade.php b/CMPT395A1/app/views/users/show.blade.php deleted file mode 100644 index f5e3632..0000000 --- a/CMPT395A1/app/views/users/show.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.default') - -@section ('content') -

    Hello, {{ $user->username }}

    -@stop diff --git a/CMPT395A1/artisan b/CMPT395A1/artisan deleted file mode 100755 index 5c408ad..0000000 --- a/CMPT395A1/artisan +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env php -setRequestForConsoleEnvironment(); - -$artisan = Illuminate\Console\Application::start($app); - -/* -|-------------------------------------------------------------------------- -| Run The Artisan Application -|-------------------------------------------------------------------------- -| -| When we run the console application, the current CLI command will be -| executed in this console and the response sent back to a terminal -| or another output device for the developers. Here goes nothing! -| -*/ - -$status = $artisan->run(); - -/* -|-------------------------------------------------------------------------- -| Shutdown The Application -|-------------------------------------------------------------------------- -| -| Once Artisan has finished running. We will fire off the shutdown events -| so that any final work may be done by the application before we shut -| down the process. This is the last thing to happen to the request. -| -*/ - -$app->shutdown(); - -exit($status); diff --git a/CMPT395A1/bootstrap/autoload.php b/CMPT395A1/bootstrap/autoload.php deleted file mode 100644 index 6b32931..0000000 --- a/CMPT395A1/bootstrap/autoload.php +++ /dev/null @@ -1,75 +0,0 @@ - __DIR__.'/../app', - - /* - |-------------------------------------------------------------------------- - | Public Path - |-------------------------------------------------------------------------- - | - | The public path contains the assets for your web application, such as - | your JavaScript and CSS files, and also contains the primary entry - | point for web requests into these applications from the outside. - | - */ - - 'public' => __DIR__.'/../public', - - /* - |-------------------------------------------------------------------------- - | Base Path - |-------------------------------------------------------------------------- - | - | The base path is the root of the Laravel installation. Most likely you - | will not need to change this value. But, if for some wild reason it - | is necessary you will do so here, just proceed with some caution. - | - */ - - 'base' => __DIR__.'/..', - - /* - |-------------------------------------------------------------------------- - | Storage Path - |-------------------------------------------------------------------------- - | - | The storage path is used by Laravel to store cached Blade views, logs - | and other pieces of information. You may modify the path here when - | you want to change the location of this directory for your apps. - | - */ - - 'storage' => __DIR__.'/../app/storage', - -); diff --git a/CMPT395A1/bootstrap/start.php b/CMPT395A1/bootstrap/start.php deleted file mode 100644 index 84559be..0000000 --- a/CMPT395A1/bootstrap/start.php +++ /dev/null @@ -1,73 +0,0 @@ -detectEnvironment(array( - - 'local' => array('homestead'), - -)); - -/* -|-------------------------------------------------------------------------- -| Bind Paths -|-------------------------------------------------------------------------- -| -| Here we are binding the paths configured in paths.php to the app. You -| should not be changing these here. If you need to change these you -| may do so within the paths.php file and they will be bound here. -| -*/ - -$app->bindInstallPaths(require __DIR__.'/paths.php'); - -/* -|-------------------------------------------------------------------------- -| Load The Application -|-------------------------------------------------------------------------- -| -| Here we will load this Illuminate application. We will keep this in a -| separate location so we can isolate the creation of an application -| from the actual running of the application with a given request. -| -*/ - -$framework = $app['path.base']. - '/vendor/laravel/framework/src'; - -require $framework.'/Illuminate/Foundation/start.php'; - -/* -|-------------------------------------------------------------------------- -| Return The Application -|-------------------------------------------------------------------------- -| -| This script returns the application instance. The instance is given to -| the calling script so we can separate the building of the instances -| from the actual running of the application and sending responses. -| -*/ - -return $app; diff --git a/CMPT395A1/composer.json b/CMPT395A1/composer.json deleted file mode 100644 index e53e401..0000000 --- a/CMPT395A1/composer.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "laravel/laravel", - "description": "The Laravel Framework.", - "keywords": ["framework", "laravel"], - "license": "MIT", - "type": "project", - "require": { - "laravel/framework": "4.2.*" - }, - "autoload": { - "classmap": [ - "app/commands", - "app/controllers", - "app/models", - "app/database/migrations", - "app/database/seeds", - "app/tests/TestCase.php" - ] - }, - "scripts": { - "post-install-cmd": [ - "php artisan clear-compiled", - "php artisan optimize" - ], - "post-update-cmd": [ - "php artisan clear-compiled", - "php artisan optimize" - ], - "post-create-project-cmd": [ - "php artisan key:generate" - ] - }, - "config": { - "preferred-install": "dist" - }, - "minimum-stability": "stable" -} diff --git a/CMPT395A1/database_readme b/CMPT395A1/database_readme deleted file mode 100644 index f17931e..0000000 --- a/CMPT395A1/database_readme +++ /dev/null @@ -1,11 +0,0 @@ -To start up mysql type: mysql -u root -p -type in the password for root - -To create the table users, which is used in our website: -CREATE TABLE users (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, phone VARCHAR(50), name VARCHAR(50)); - -To insert users into the database: -INSERT INTO users (id, username, email, password, phone, name) VALUES (NULL, "johncasserole", "johncasserole@gmail.com", "12345", "456-321-5678", "John"); - -INSERT INTO users (id, username, email, password, phone, name) VALUES (NULL, "davidsol", "dude@gmail.com", "12345", " ", "David"); - diff --git a/CMPT395A1/phpunit.xml b/CMPT395A1/phpunit.xml deleted file mode 100644 index c330420..0000000 --- a/CMPT395A1/phpunit.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - ./app/tests/ - - - diff --git a/CMPT395A1/public/.htaccess b/CMPT395A1/public/.htaccess deleted file mode 100644 index 77827ae..0000000 --- a/CMPT395A1/public/.htaccess +++ /dev/null @@ -1,15 +0,0 @@ - - - Options -MultiViews - - - RewriteEngine On - - # Redirect Trailing Slashes... - RewriteRule ^(.*)/$ /$1 [L,R=301] - - # Handle Front Controller... - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^ index.php [L] - diff --git a/CMPT395A1/public/css/basic.css b/CMPT395A1/public/css/basic.css deleted file mode 100644 index 75ae714..0000000 --- a/CMPT395A1/public/css/basic.css +++ /dev/null @@ -1,57 +0,0 @@ -body { - font-family:Arial,Helvetica,sans-serif; - color:orange; - background:steelblue; - font-size:150%; -} - -.title { - color:black; - font-size:200%; - padding-left:20px; - padding-top:10px; -} - -#nav { - background: black; - height: 34px; -} - -#nav ul li { - color:orange; - float: left; - padding: 0 15px; - padding-top: 2px; - margin: 2px 0; - border-left: 1px solid silver; -} - -#nav ul { - list-style:none; -} - -#nav ul li:first-child { - padding-left: 0; - margin-left: 0; - border-left: 0; -} - -#nav ul li:last-child { - border-right: 1px solid silver; -} - -#nav ul li a { - text-decoration: none; -} - -#nav ul li a:link { - color: silver; -} - -#nav ul li a:hover { - color: orange; -} - -#nav ul li a:visited { - color: white; -} diff --git a/CMPT395A1/public/favicon.ico b/CMPT395A1/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/CMPT395A1/public/index.php b/CMPT395A1/public/index.php deleted file mode 100644 index f08822d..0000000 --- a/CMPT395A1/public/index.php +++ /dev/null @@ -1,49 +0,0 @@ - - */ - -/* -|-------------------------------------------------------------------------- -| Register The Auto Loader -|-------------------------------------------------------------------------- -| -| Composer provides a convenient, automatically generated class loader -| for our application. We just need to utilize it! We'll require it -| into the script here so that we do not have to worry about the -| loading of any our classes "manually". Feels great to relax. -| -*/ - -require __DIR__.'/../bootstrap/autoload.php'; - -/* -|-------------------------------------------------------------------------- -| Turn On The Lights -|-------------------------------------------------------------------------- -| -| We need to illuminate PHP development, so let's turn on the lights. -| This bootstraps the framework and gets it ready for use, then it -| will load up this application so that we can run it and send -| the responses back to the browser and delight these users. -| -*/ - -$app = require_once __DIR__.'/../bootstrap/start.php'; - -/* -|-------------------------------------------------------------------------- -| Run The Application -|-------------------------------------------------------------------------- -| -| Once we have the application, we can simply call the run method, -| which will execute the request and send the response back to -| the client's browser allowing them to enjoy the creative -| and wonderful application we have whipped up for them. -| -*/ - -$app->run(); diff --git a/CMPT395A1/public/packages/.gitkeep b/CMPT395A1/public/packages/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/CMPT395A1/public/robots.txt b/CMPT395A1/public/robots.txt deleted file mode 100644 index eb05362..0000000 --- a/CMPT395A1/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: diff --git a/CMPT395A1/readme.md b/CMPT395A1/readme.md deleted file mode 100644 index 40ea7ee..0000000 --- a/CMPT395A1/readme.md +++ /dev/null @@ -1,25 +0,0 @@ -## Laravel PHP Framework - -[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework) -[![Total Downloads](https://poser.pugx.org/laravel/framework/downloads.svg)](https://packagist.org/packages/laravel/framework) -[![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework) -[![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework) -[![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework) - -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching. - -Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality. Happy developers make the best code. To this end, we've attempted to combine the very best of what we have seen in other web frameworks, including frameworks implemented in other languages, such as Ruby on Rails, ASP.NET MVC, and Sinatra. - -Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked. - -## Official Documentation - -Documentation for the entire framework can be found on the [Laravel website](http://laravel.com/docs). - -### Contributing To Laravel - -**All issues and pull requests should be filed on the [laravel/framework](http://github.com/laravel/framework) repository.** - -### License - -The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT) diff --git a/CMPT395A1/server.php b/CMPT395A1/server.php deleted file mode 100644 index 5f187f3..0000000 --- a/CMPT395A1/server.php +++ /dev/null @@ -1,19 +0,0 @@ - Date: Fri, 6 Feb 2015 14:48:28 -0500 Subject: [PATCH 09/10] fixed directory --- students.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/students.txt b/students.txt index 29406f8..2ba7e9c 100644 --- a/students.txt +++ b/students.txt @@ -1 +1,2 @@ Cam Macdonell - cmacdonell +Zac Batog - batogz From 342fecf7014895c3f72f9409c3bb61368e415f73 Mon Sep 17 00:00:00 2001 From: Zac Batog Date: Fri, 6 Feb 2015 15:14:45 -0500 Subject: [PATCH 10/10] fixed conflict in students.txt --- students.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/students.txt b/students.txt index ab0efd4..d20f56c 100644 --- a/students.txt +++ b/students.txt @@ -1,6 +1,3 @@ Cam Macdonell - cmacdonell -<<<<<<< HEAD -Zac Batog - batogz -======= David Brookwell-Reuber - brookwellreuber ->>>>>>> upstream/master +Zac Batog - batogz