Permalink
Browse files

init

  • Loading branch information...
0 parents commit 50f72cdaa4e1108dc4db5859aff82f390eaf65f6 @ianlandsman committed Jan 16, 2012
Showing with 20,738 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +42 −0 application/bundle.php
  3. +1 −0 application/config/.gitignore
  4. +171 −0 application/config/application.php
  5. +68 −0 application/config/auth.php
  6. +71 −0 application/config/cache.php
  7. +90 −0 application/config/database.php
  8. +69 −0 application/config/error.php
  9. +97 −0 application/config/mimes.php
  10. +117 −0 application/config/session.php
  11. +119 −0 application/config/strings.php
  12. +19 −0 application/language/en/pagination.php
  13. +75 −0 application/language/en/validation.php
  14. 0 application/libraries/.gitignore
  15. +85 −0 application/libraries/helpers.php
  16. +2,932 −0 application/libraries/markdown.php
  17. 0 application/migrations/.gitignore
  18. 0 application/models/.gitignore
  19. +101 −0 application/routes.php
  20. 0 application/tasks/.gitignore
  21. +103 −0 application/views/error/404.php
  22. +103 −0 application/views/error/500.php
  23. +59 −0 application/views/layout.blade.php
  24. +13 −0 application/views/partials/archive.blade.php
  25. +15 −0 application/views/partials/article.blade.php
  26. +34 −0 application/views/partials/home.blade.php
  27. +14 −0 application/views/partials/pages.blade.php
  28. +25 −0 application/views/rss.blade.php
  29. +44 −0 artisan
  30. 0 bundles/.gitignore
  31. +1 −0 content/drafts/.gitignore
  32. +1 −0 content/pages/.gitignore
  33. +1 −0 content/publish/.gitignore
  34. +1 −0 content/published/.gitignore
  35. +65 −0 kudos-example.php
  36. +20 −0 kudos.license.txt
  37. +20 −0 laravel.license.txt
  38. +319 −0 laravel/asset.php
  39. +228 −0 laravel/auth.php
  40. +152 −0 laravel/autoloader.php
  41. +151 −0 laravel/blade.php
  42. +284 −0 laravel/bundle.php
  43. +86 −0 laravel/cache.php
  44. +77 −0 laravel/cache/drivers/apc.php
  45. +113 −0 laravel/cache/drivers/database.php
  46. +101 −0 laravel/cache/drivers/driver.php
  47. +87 −0 laravel/cache/drivers/file.php
  48. +85 −0 laravel/cache/drivers/memcached.php
  49. +79 −0 laravel/cache/drivers/redis.php
  50. +86 −0 laravel/cli/artisan.php
  51. +105 −0 laravel/cli/command.php
  52. +114 −0 laravel/cli/tasks/bundle/installer.php
  53. +27 −0 laravel/cli/tasks/bundle/providers/github.php
  54. +13 −0 laravel/cli/tasks/bundle/providers/provider.php
  55. +29 −0 laravel/cli/tasks/bundle/repository.php
  56. +107 −0 laravel/cli/tasks/migrate/database.php
  57. +233 −0 laravel/cli/tasks/migrate/migrator.php
  58. +159 −0 laravel/cli/tasks/migrate/resolver.php
  59. +25 −0 laravel/cli/tasks/migrate/stub.php
  60. +24 −0 laravel/cli/tasks/task.php
  61. +192 −0 laravel/config.php
  62. +150 −0 laravel/cookie.php
  63. +136 −0 laravel/core.php
  64. +87 −0 laravel/crypter.php
  65. +129 −0 laravel/database.php
  66. +281 −0 laravel/database/connection.php
  67. +41 −0 laravel/database/connectors/connector.php
  68. +41 −0 laravel/database/connectors/mysql.php
  69. +41 −0 laravel/database/connectors/postgres.php
  70. +32 −0 laravel/database/connectors/sqlite.php
  71. +38 −0 laravel/database/connectors/sqlserver.php
  72. +43 −0 laravel/database/expression.php
  73. +108 −0 laravel/database/grammar.php
  74. +795 −0 laravel/database/query.php
  75. +382 −0 laravel/database/query/grammars/grammar.php
  76. +12 −0 laravel/database/query/grammars/mysql.php
  77. +139 −0 laravel/database/query/grammars/sqlserver.php
  78. +119 −0 laravel/database/schema.php
  79. +38 −0 laravel/database/schema/grammars/grammar.php
  80. +380 −0 laravel/database/schema/grammars/mysql.php
  81. +375 −0 laravel/database/schema/grammars/postgres.php
  82. +344 −0 laravel/database/schema/grammars/sqlite.php
  83. +396 −0 laravel/database/schema/grammars/sqlserver.php
  84. +371 −0 laravel/database/schema/table.php
  85. +73 −0 laravel/event.php
  86. +173 −0 laravel/file.php
  87. +80 −0 laravel/fluent.php
  88. +545 −0 laravel/form.php
  89. +62 −0 laravel/hash.php
  90. +236 −0 laravel/helpers.php
  91. +375 −0 laravel/html.php
  92. +209 −0 laravel/input.php
  93. +137 −0 laravel/ioc.php
  94. +198 −0 laravel/lang.php
  95. +235 −0 laravel/laravel.php
  96. +65 −0 laravel/log.php
  97. +74 −0 laravel/memcached.php
  98. +152 −0 laravel/messages.php
  99. +423 −0 laravel/paginator.php
  100. +146 −0 laravel/redirect.php
  101. +267 −0 laravel/redis.php
  102. +151 −0 laravel/request.php
  103. +311 −0 laravel/response.php
  104. +293 −0 laravel/routing/controller.php
  105. +309 −0 laravel/routing/filter.php
  106. +225 −0 laravel/routing/route.php
  107. +293 −0 laravel/routing/router.php
  108. +98 −0 laravel/section.php
  109. +117 −0 laravel/session.php
  110. +60 −0 laravel/session/drivers/apc.php
  111. +60 −0 laravel/session/drivers/cookie.php
  112. +107 −0 laravel/session/drivers/database.php
  113. +33 −0 laravel/session/drivers/driver.php
  114. +83 −0 laravel/session/drivers/file.php
  115. +60 −0 laravel/session/drivers/memcached.php
  116. +60 −0 laravel/session/drivers/redis.php
  117. +13 −0 laravel/session/drivers/sweeper.php
  118. +341 −0 laravel/session/payload.php
  119. +297 −0 laravel/str.php
  120. +101 −0 laravel/uri.php
  121. +191 −0 laravel/url.php
  122. +764 −0 laravel/validator.php
  123. +366 −0 laravel/view.php
  124. +8 −0 public/.htaccess
  125. 0 public/css/.gitignore
  126. +177 −0 public/css/html5reset.css
  127. +108 −0 public/css/kudos.css
  128. 0 public/img/.gitignore
  129. +44 −0 public/index.php
  130. 0 public/js/.gitignore
  131. +40 −0 readme.md
  132. 0 storage/cache/.gitignore
  133. +148 −0 storage/cache/6666cd76f96956469e7be39d750cc7d9
  134. +66 −0 storage/cache/980164acb81d915a67f770d165e86364
  135. +250 −0 storage/cache/de973113ae301c0c5868f2c133fcb284
  136. +1 −0 storage/database/.gitignore
  137. 0 storage/logs/.gitignore
  138. 0 storage/sessions/.gitignore
  139. 0 storage/views/.gitignore
  140. +15 −0 storage/views/1309c779af5432193392587011c50e2b
  141. +25 −0 storage/views/3d8d248d4d2aac1f7175bf7d476fd904
  142. +59 −0 storage/views/5c65424714a76c9f211461d4ddc6804c
  143. +13 −0 storage/views/646dc373853fd9b2a218544f42bfd25f
  144. +14 −0 storage/views/aa52bdcec5b0844c7cc9ad7564ea098b
  145. +34 −0 storage/views/b36bef4246f29d70016c20be39b2895e
  146. +3 −0 storage/views/bd243304ef324577b9d14012033db6d6
  147. +18 −0 storage/views/f74c0ef830f331654d86cd3cbe872611
@@ -0,0 +1,2 @@
+kudos.php
+.DS_Store
@@ -0,0 +1,42 @@
+<?php
+
+/*
+|--------------------------------------------------------------------------
+| Auto-Loader PSR-0 Directories
+|--------------------------------------------------------------------------
+|
+| The Laravel auto-loader can search directories for files using the PSR-0
+| naming convention. This convention basically organizes classes by using
+| the class namespace to indicate the directory structure.
+|
+| So you don't have to manually map all of your models, we've added the
+| models and libraries directories for you. So, you can model away and
+| the auto-loader will take care of the rest.
+|
+*/
+
+Autoloader::psr(array(
+ APP_PATH.'models',
+ APP_PATH.'libraries',
+));
+
+/*
+|--------------------------------------------------------------------------
+| Auto-Loader Mappings
+|--------------------------------------------------------------------------
+|
+| Laravel uses a simple array of class to path mappings to drive the class
+| auto-loader. This simple approach helps avoid the performance problems
+| of searching through directories by some kind of convention. It also
+| gives you the freedom to organize your application how you want.
+|
+| Registering a mapping couldn't be easier. Just pass an array of class
+| to path maps into the "map" function of Autoloader. Then, when you
+| want to use that class, just use it. It's a piece of cake.
+|
+*/
+
+Autoloader::map(array(
+ //'User' => APP_PATH.'models/user.php',
+ //'Role' => APP_PATH.'models/role.php',
+));
@@ -0,0 +1 @@
+local/*
@@ -0,0 +1,171 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application URL
+ |--------------------------------------------------------------------------
+ |
+ | The URL used to access your application without a trailing slash. The URL
+ | does nto have to be set. If it isn't we'll try our best to guess the URL
+ | of your application.
+ |
+ */
+
+ 'url' => '',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Index
+ |--------------------------------------------------------------------------
+ |
+ | If you are including the "index.php" in your URLs, you can ignore this.
+ |
+ | However, if you are using mod_rewrite to get cleaner URLs, just set
+ | this option to an empty string and we'll take care of the rest.
+ |
+ */
+
+ 'index' => '',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Key
+ |--------------------------------------------------------------------------
+ |
+ | This key is used by the encryption and cookie classes to generate secure
+ | encrypted strings and hashes. It is extremely important that this key
+ | remain secret and should not be shared with anyone. Make it about 32
+ | characters of random gibberish.
+ |
+ */
+
+ 'key' => '',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Character Encoding
+ |--------------------------------------------------------------------------
+ |
+ | The default character encoding used by your application. This encoding
+ | will be used by the Str, Text, Form, and any other classes that need
+ | to know what type of encoding to use for your awesome application.
+ |
+ */
+
+ 'encoding' => 'UTF-8',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Language
+ |--------------------------------------------------------------------------
+ |
+ | The default language of your application. This language will be used by
+ | Lang library as the default language when doing string localization.
+ |
+ */
+
+ 'language' => 'en',
+
+ /*
+ |--------------------------------------------------------------------------
+ | SSL Link Generation
+ |--------------------------------------------------------------------------
+ |
+ | Many sites use SSL to protect their users data. However, you may not
+ | always be able to use SSL on your development machine, meaning all HTTPS
+ | will be broken during development.
+ |
+ | For this reason, you may wish to disable the generation of HTTPS links
+ | throughout your application. This option does just that. All attempts to
+ | generate HTTPS links will generate regular HTTP links instead.
+ |
+ */
+
+ 'ssl' => true,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Timezone
+ |--------------------------------------------------------------------------
+ |
+ | The default timezone of your application. This timezone will be used when
+ | Laravel needs a date, such as when writing to a log file or travelling
+ | to a distant star at warp speed.
+ |
+ */
+
+ 'timezone' => 'UTC',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Autoloaded Bundles
+ |--------------------------------------------------------------------------
+ |
+ | Bundles can provide a ton of awesome drop-in functionality for your web
+ | application. Everything from Twitter integration to an admin backend.
+ |
+ | Here you may specify the bundles that should be automatically started
+ | on every request to your application.
+ |
+ */
+
+ 'bundles' => array(),
+
+ /*
+ |--------------------------------------------------------------------------
+ | Class Aliases
+ |--------------------------------------------------------------------------
+ |
+ | Here, you can specify any class aliases that you would like registered
+ | when Laravel loads. Aliases are lazy-loaded, so add as many as you want.
+ |
+ | Aliases make it more convenient to use namespaced classes. Instead of
+ | referring to the class using its full namespace, you may simply use
+ | the alias defined here.
+ |
+ | We have already aliased common Laravel classes to make your life easier.
+ |
+ */
+
+ 'aliases' => array(
+ 'Auth' => 'Laravel\\Auth',
+ 'Asset' => 'Laravel\\Asset',
+ 'Autoloader' => 'Laravel\\Autoloader',
+ 'Bundle' => 'Laravel\\Bundle',
+ 'Cache' => 'Laravel\\Cache',
+ 'Config' => 'Laravel\\Config',
+ 'Controller' => 'Laravel\\Routing\\Controller',
+ 'Cookie' => 'Laravel\\Cookie',
+ 'Crypter' => 'Laravel\\Crypter',
+ 'DB' => 'Laravel\\Database',
+ 'Event' => 'Laravel\\Event',
+ 'File' => 'Laravel\\File',
+ 'Filter' => 'Laravel\\Routing\\Filter',
+ 'Form' => 'Laravel\\Form',
+ 'Hash' => 'Laravel\\Hash',
+ 'HTML' => 'Laravel\\HTML',
+ 'Input' => 'Laravel\\Input',
+ 'IoC' => 'Laravel\\IoC',
+ 'Lang' => 'Laravel\\Lang',
+ 'Log' => 'Laravel\\Log',
+ 'Memcached' => 'Laravel\\Memcached',
+ 'Paginator' => 'Laravel\\Paginator',
+ 'URL' => 'Laravel\\URL',
+ 'Redirect' => 'Laravel\\Redirect',
+ 'Redis' => 'Laravel\\Redis',
+ 'Request' => 'Laravel\\Request',
+ 'Response' => 'Laravel\\Response',
+ 'Router' => 'Laravel\\Routing\\Router',
+ 'Schema' => 'Laravel\\Database\\Schema',
+ 'Section' => 'Laravel\\Section',
+ 'Session' => 'Laravel\\Session',
+ 'Str' => 'Laravel\\Str',
+ 'Task' => 'Laravel\\CLI\\Tasks\\Task',
+ 'URI' => 'Laravel\\URI',
+ 'Validator' => 'Laravel\\Validator',
+ 'View' => 'Laravel\\View',
+ ),
+
+);
@@ -0,0 +1,68 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Retrieve The Current User
+ |--------------------------------------------------------------------------
+ |
+ | This closure is called by the Auth class' "user" method when trying to
+ | retrieve a user by the ID that is stored in their session. If you find
+ | the user, just return the user object, but make sure it has an "id"
+ | property. If you can't find the user, just return null.
+ |
+ | Of course, a simple and elegant authentication solution has already
+ | been provided for you using the query builder and hashing engine.
+ | We love making your life as easy as possible.
+ |
+ */
+
+ 'user' => function($id)
+ {
+ if (filter_var($id, FILTER_VALIDATE_INT) !== false)
+ {
+ return DB::table('users')->find($id);
+ }
+ },
+
+ /*
+ |--------------------------------------------------------------------------
+ | Authenticate User Credentials
+ |--------------------------------------------------------------------------
+ |
+ | This closure is called by the Auth::attempt() method when attempting to
+ | authenticate a user that is logging into your application. It's like a
+ | super buff bouncer to your application.
+ |
+ | If the provided credentials are correct, simply return an object that
+ | represents the user being authenticated. As long as it has a property
+ | for the "id", any object will work. If the credentials are not valid,
+ | you don't meed to return anything.
+ |
+ */
+
+ 'attempt' => function($username, $password)
+ {
+ $user = DB::table('users')->where_username($username)->first();
+
+ if ( ! is_null($user) and Hash::check($password, $user->password))
+ {
+ return $user;
+ }
+ },
+
+ /*
+ |--------------------------------------------------------------------------
+ | Logout The Current User
+ |--------------------------------------------------------------------------
+ |
+ | Here you may do anything that needs to be done when a user logs out of
+ | your application, such as call the logout method on a third-party API
+ | you are using for authentication or anything else you desire.
+ |
+ */
+
+ 'logout' => function($user) {}
+
+);
@@ -0,0 +1,71 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Cache Driver
+ |--------------------------------------------------------------------------
+ |
+ | The name of the default cache driver for your application. Caching can
+ | be used to increase the performance of your application by storing any
+ | commonly accessed data in memory, a file, or some other storage.
+ |
+ | A variety of awesome drivers are available for you to use with Laravel.
+ | Some, like APC, are extremely fast. However, if that isn't an option
+ | in your environment, try file or database caching.
+ |
+ | Drivers: 'file', 'memcached', 'apc', 'redis', 'database'.
+ |
+ */
+
+ 'driver' => 'file',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Cache Key
+ |--------------------------------------------------------------------------
+ |
+ | This key will be prepended to item keys stored using Memcached and APC
+ | to prevent collisions with other applications on the server. Since the
+ | memory based stores could be shared by other applications, we need to
+ | be polite and use a prefix to uniquely identifier our items.
+ |
+ */
+
+ 'key' => 'laravel',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Cache Database
+ |--------------------------------------------------------------------------
+ |
+ | When using the database cache driver, this database table will be used
+ | to store the cached item. You may also add a "connection" option to
+ | the array to specify which database connection should be used.
+ |
+ */
+
+ 'database' => array('table' => 'laravel_cache'),
+
+ /*
+ |--------------------------------------------------------------------------
+ | Memcached Servers
+ |--------------------------------------------------------------------------
+ |
+ | The Memcached servers used by your application. Memcached is a free and
+ | open source, high-performance, distributed memory caching system. It is
+ | generic in nature but intended for use in speeding up web applications
+ | by alleviating database load.
+ |
+ | For more information, check out: http://memcached.org
+ |
+ */
+
+ 'memcached' => array(
+
+ array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
+
+ ),
+
+);
Oops, something went wrong.

0 comments on commit 50f72cd

Please sign in to comment.