Permalink
Browse files

First commit.

  • Loading branch information...
0 parents commit f7c8be874f23bf1494d0b2241688cc18fa9c2045 Anton Lindqvist committed Nov 22, 2010
Showing with 47,750 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +116 −0 application/config/autoload.php
  3. +42 −0 application/config/constants.php
  4. +55 −0 application/config/database.php
  5. +15 −0 application/config/doctypes.php
  6. +16 −0 application/config/hooks.php
  7. +10 −0 application/config/index.html
  8. +105 −0 application/config/mimes.php
  9. +49 −0 application/config/routes.php
  10. +66 −0 application/config/smileys.php
  11. +175 −0 application/config/user_agents.php
  12. +10 −0 application/controllers/index.html
  13. +86 −0 application/controllers/sessions.php
  14. +110 −0 application/controllers/tracks.php
  15. +29 −0 application/controllers/users.php
  16. +12 −0 application/controllers/welcome.php
  17. +34 −0 application/errors/error_404.php
  18. +34 −0 application/errors/error_db.php
  19. +34 −0 application/errors/error_general.php
  20. +10 −0 application/errors/error_php.php
  21. +10 −0 application/errors/index.html
  22. +10 −0 application/helpers/index.html
  23. +10 −0 application/hooks/index.html
  24. +10 −0 application/language/english/index.html
  25. +142 −0 application/libraries/MY_Controller.php
  26. +50 −0 application/libraries/MY_Input.php
  27. +2,941 −0 application/libraries/Predis.php
  28. +722 −0 application/libraries/Soundcloud.php
  29. +146 −0 application/libraries/Soundcloud/Exception.php
  30. +22 −0 application/libraries/Soundcloud/Version.php
  31. +10 −0 application/libraries/index.html
  32. +10 −0 application/models/index.html
  33. +66 −0 application/models/user.php
  34. +10 −0 application/views/index.html
  35. +15 −0 application/views/layouts/footer.php
  36. +21 −0 application/views/layouts/header.php
  37. +9 −0 application/views/sessions/connect.php
  38. +12 −0 application/views/sessions/refresh.php
  39. 0 application/views/tracks/index.php
  40. +2 −0 application/views/tracks/new.php
  41. +34 −0 application/views/users/show.php
  42. 0 application/views/views/index.php
  43. +2 −0 application/views/welcome/index.php
  44. +105 −0 index.php
  45. BIN public/images/body.png
  46. BIN public/images/connect.png
  47. BIN public/images/current-user.png
  48. BIN public/images/disconnect.png
  49. BIN public/images/soundcloud.png
  50. +44 −0 public/javascripts/jquery.application.js
  51. +7 −0 public/stylesheets/reset.css
  52. +215 −0 public/stylesheets/style.css
  53. +69 −0 system/codeigniter/Base4.php
  54. +56 −0 system/codeigniter/Base5.php
  55. +280 −0 system/codeigniter/CodeIgniter.php
  56. +421 −0 system/codeigniter/Common.php
  57. +93 −0 system/codeigniter/Compat.php
  58. +146 −0 system/database/DB.php
  59. +1,820 −0 system/database/DB_active_rec.php
  60. +195 −0 system/database/DB_cache.php
  61. +1,366 −0 system/database/DB_driver.php
  62. +375 −0 system/database/DB_forge.php
  63. +342 −0 system/database/DB_result.php
  64. +389 −0 system/database/DB_utility.php
  65. +667 −0 system/database/drivers/mssql/mssql_driver.php
  66. +248 −0 system/database/drivers/mssql/mssql_forge.php
  67. +169 −0 system/database/drivers/mssql/mssql_result.php
  68. +123 −0 system/database/drivers/mssql/mssql_utility.php
  69. +670 −0 system/database/drivers/mysql/mysql_driver.php
  70. +254 −0 system/database/drivers/mysql/mysql_forge.php
  71. +169 −0 system/database/drivers/mysql/mysql_result.php
  72. +245 −0 system/database/drivers/mysql/mysql_utility.php
  73. +671 −0 system/database/drivers/mysqli/mysqli_driver.php
  74. +254 −0 system/database/drivers/mysqli/mysqli_forge.php
  75. +169 −0 system/database/drivers/mysqli/mysqli_result.php
  76. +123 −0 system/database/drivers/mysqli/mysqli_utility.php
  77. +780 −0 system/database/drivers/oci8/oci8_driver.php
  78. +248 −0 system/database/drivers/oci8/oci8_forge.php
  79. +249 −0 system/database/drivers/oci8/oci8_result.php
  80. +122 −0 system/database/drivers/oci8/oci8_utility.php
  81. +639 −0 system/database/drivers/odbc/odbc_driver.php
  82. +266 −0 system/database/drivers/odbc/odbc_forge.php
  83. +228 −0 system/database/drivers/odbc/odbc_result.php
  84. +148 −0 system/database/drivers/odbc/odbc_utility.php
  85. +684 −0 system/database/drivers/postgre/postgre_driver.php
  86. +248 −0 system/database/drivers/postgre/postgre_forge.php
  87. +169 −0 system/database/drivers/postgre/postgre_result.php
  88. +124 −0 system/database/drivers/postgre/postgre_utility.php
  89. +657 −0 system/database/drivers/sqlite/sqlite_driver.php
  90. +265 −0 system/database/drivers/sqlite/sqlite_forge.php
  91. +179 −0 system/database/drivers/sqlite/sqlite_result.php
  92. +141 −0 system/database/drivers/sqlite/sqlite_utility.php
  93. BIN system/fonts/texb.ttf
  94. +78 −0 system/helpers/array_helper.php
  95. +498 −0 system/helpers/compatibility_helper.php
  96. +144 −0 system/helpers/cookie_helper.php
  97. +611 −0 system/helpers/date_helper.php
  98. +84 −0 system/helpers/directory_helper.php
  99. +100 −0 system/helpers/download_helper.php
  100. +62 −0 system/helpers/email_helper.php
  101. +464 −0 system/helpers/file_helper.php
  102. +1,025 −0 system/helpers/form_helper.php
  103. +489 −0 system/helpers/html_helper.php
  104. +171 −0 system/helpers/inflector_helper.php
  105. +58 −0 system/helpers/language_helper.php
  106. +75 −0 system/helpers/number_helper.php
  107. +72 −0 system/helpers/path_helper.php
  108. +126 −0 system/helpers/security_helper.php
  109. +273 −0 system/helpers/smiley_helper.php
  110. +273 −0 system/helpers/string_helper.php
  111. +462 −0 system/helpers/text_helper.php
  112. +71 −0 system/helpers/typography_helper.php
  113. +601 −0 system/helpers/url_helper.php
  114. +62 −0 system/helpers/xml_helper.php
  115. +51 −0 system/language/english/calendar_lang.php
  116. +60 −0 system/language/english/date_lang.php
  117. +28 −0 system/language/english/db_lang.php
  118. +24 −0 system/language/english/email_lang.php
  119. +24 −0 system/language/english/form_validation_lang.php
  120. +17 −0 system/language/english/ftp_lang.php
  121. +24 −0 system/language/english/imglib_lang.php
  122. +10 −0 system/language/english/number_lang.php
  123. +19 −0 system/language/english/profiler_lang.php
  124. +17 −0 system/language/english/scaffolding_lang.php
  125. +24 −0 system/language/english/unit_test_lang.php
  126. +22 −0 system/language/english/upload_lang.php
  127. +24 −0 system/language/english/validation_lang.php
  128. +113 −0 system/libraries/Benchmark.php
  129. +477 −0 system/libraries/Calendar.php
  130. +550 −0 system/libraries/Cart.php
  131. +244 −0 system/libraries/Config.php
  132. +127 −0 system/libraries/Controller.php
  133. +2,041 −0 system/libraries/Email.php
  134. +484 −0 system/libraries/Encrypt.php
  135. +174 −0 system/libraries/Exceptions.php
  136. +1,278 −0 system/libraries/Form_validation.php
  137. +618 −0 system/libraries/Ftp.php
  138. +226 −0 system/libraries/Hooks.php
  139. +1,544 −0 system/libraries/Image_lib.php
  140. +1,073 −0 system/libraries/Input.php
  141. +123 −0 system/libraries/Language.php
  142. +1,085 −0 system/libraries/Loader.php
  143. +118 −0 system/libraries/Log.php
  144. +83 −0 system/libraries/Model.php
  145. +412 −0 system/libraries/Output.php
  146. +244 −0 system/libraries/Pagination.php
  147. +173 −0 system/libraries/Parser.php
  148. +392 −0 system/libraries/Profiler.php
  149. +389 −0 system/libraries/Router.php
  150. +758 −0 system/libraries/Session.php
  151. +251 −0 system/libraries/Sha1.php
  152. +440 −0 system/libraries/Table.php
  153. +547 −0 system/libraries/Trackback.php
  154. +406 −0 system/libraries/Typography.php
  155. +586 −0 system/libraries/URI.php
  156. +347 −0 system/libraries/Unit_test.php
  157. +949 −0 system/libraries/Upload.php
  158. +502 −0 system/libraries/User_agent.php
  159. +875 −0 system/libraries/Validation.php
  160. +1,421 −0 system/libraries/Xmlrpc.php
  161. +536 −0 system/libraries/Xmlrpcs.php
  162. +359 −0 system/libraries/Zip.php
  163. +356 −0 system/plugins/captcha_pi.php
  164. +629 −0 system/plugins/js_calendar_pi.php
  165. +291 −0 system/scaffolding/Scaffolding.php
  166. BIN system/scaffolding/images/background.jpg
  167. BIN system/scaffolding/images/logo.jpg
  168. +32 −0 system/scaffolding/views/add.php
  169. +9 −0 system/scaffolding/views/delete.php
  170. +33 −0 system/scaffolding/views/edit.php
  171. +10 −0 system/scaffolding/views/footer.php
  172. +29 −0 system/scaffolding/views/header.php
  173. +8 −0 system/scaffolding/views/no_data.php
  174. +143 −0 system/scaffolding/views/stylesheet.css
  175. +27 −0 system/scaffolding/views/view.php
@@ -0,0 +1 @@
+application/config/config.php
@@ -0,0 +1,116 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/*
+| -------------------------------------------------------------------
+| AUTO-LOADER
+| -------------------------------------------------------------------
+| This file specifies which systems should be loaded by default.
+|
+| In order to keep the framework as light-weight as possible only the
+| absolute minimal resources are loaded by default. For example,
+| the database is not connected to automatically since no assumption
+| is made regarding whether you intend to use it. This file lets
+| you globally define which systems you would like loaded with every
+| request.
+|
+| -------------------------------------------------------------------
+| Instructions
+| -------------------------------------------------------------------
+|
+| These are the things you can load automatically:
+|
+| 1. Libraries
+| 2. Helper files
+| 3. Plugins
+| 4. Custom config files
+| 5. Language files
+| 6. Models
+|
+*/
+
+/*
+| -------------------------------------------------------------------
+| Auto-load Libraries
+| -------------------------------------------------------------------
+| These are the classes located in the system/libraries folder
+| or in your system/application/libraries folder.
+|
+| Prototype:
+|
+| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
+*/
+
+$autoload['libraries'] = array();
+
+
+/*
+| -------------------------------------------------------------------
+| Auto-load Helper Files
+| -------------------------------------------------------------------
+| Prototype:
+|
+| $autoload['helper'] = array('url', 'file');
+*/
+
+$autoload['helper'] = array('cookie', 'url');
+
+
+/*
+| -------------------------------------------------------------------
+| Auto-load Plugins
+| -------------------------------------------------------------------
+| Prototype:
+|
+| $autoload['plugin'] = array('captcha', 'js_calendar');
+*/
+
+$autoload['plugin'] = array();
+
+
+/*
+| -------------------------------------------------------------------
+| Auto-load Config files
+| -------------------------------------------------------------------
+| Prototype:
+|
+| $autoload['config'] = array('config1', 'config2');
+|
+| NOTE: This item is intended for use ONLY if you have created custom
+| config files. Otherwise, leave it blank.
+|
+*/
+
+$autoload['config'] = array();
+
+
+/*
+| -------------------------------------------------------------------
+| Auto-load Language files
+| -------------------------------------------------------------------
+| Prototype:
+|
+| $autoload['language'] = array('lang1', 'lang2');
+|
+| NOTE: Do not include the "_lang" part of your file. For example
+| "codeigniter_lang.php" would be referenced as array('codeigniter');
+|
+*/
+
+$autoload['language'] = array();
+
+
+/*
+| -------------------------------------------------------------------
+| Auto-load Models
+| -------------------------------------------------------------------
+| Prototype:
+|
+| $autoload['model'] = array('model1', 'model2');
+|
+*/
+
+$autoload['model'] = array('user');
+
+
+
+/* End of file autoload.php */
+/* Location: ./system/application/config/autoload.php */
@@ -0,0 +1,42 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+
+/*
+|--------------------------------------------------------------------------
+| File and Directory Modes
+|--------------------------------------------------------------------------
+|
+| These prefs are used when checking and setting modes when working
+| with the file system. The defaults are fine on servers with proper
+| security, but you may wish (or even need) to change the values in
+| certain environments (Apache running a separate process for each
+| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
+| always be used to set the mode correctly.
+|
+*/
+define('FILE_READ_MODE', 0644);
+define('FILE_WRITE_MODE', 0666);
+define('DIR_READ_MODE', 0755);
+define('DIR_WRITE_MODE', 0777);
+
+/*
+|--------------------------------------------------------------------------
+| File Stream Modes
+|--------------------------------------------------------------------------
+|
+| These modes are used when working with fopen()/popen()
+|
+*/
+
+define('FOPEN_READ', 'rb');
+define('FOPEN_READ_WRITE', 'r+b');
+define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
+define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
+define('FOPEN_WRITE_CREATE', 'ab');
+define('FOPEN_READ_WRITE_CREATE', 'a+b');
+define('FOPEN_WRITE_CREATE_STRICT', 'xb');
+define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
+
+define('ENV', (array_key_exists('ENVIRONMENT', $_SERVER)) ? $_SERVER['ENVIRONMENT'] : 'development');
+
+/* End of file constants.php */
+/* Location: ./system/application/config/constants.php */
@@ -0,0 +1,55 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/*
+| -------------------------------------------------------------------
+| DATABASE CONNECTIVITY SETTINGS
+| -------------------------------------------------------------------
+| This file will contain the settings needed to access your database.
+|
+| For complete instructions please consult the "Database Connection"
+| page of the User Guide.
+|
+| -------------------------------------------------------------------
+| EXPLANATION OF VARIABLES
+| -------------------------------------------------------------------
+|
+| ['hostname'] The hostname of your database server.
+| ['username'] The username used to connect to the database
+| ['password'] The password used to connect to the database
+| ['database'] The name of the database you want to connect to
+| ['dbdriver'] The database type. ie: mysql. Currently supported:
+ mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
+| ['dbprefix'] You can add an optional prefix, which will be added
+| to the table name when using the Active Record class
+| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
+| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
+| ['cache_on'] TRUE/FALSE - Enables/disables query caching
+| ['cachedir'] The path to the folder where cache files should be stored
+| ['char_set'] The character set used in communicating with the database
+| ['dbcollat'] The character collation used in communicating with the database
+|
+| The $active_group variable lets you choose which connection group to
+| make active. By default there is only one group (the "default" group).
+|
+| The $active_record variables lets you determine whether or not to load
+| the active record class
+*/
+
+$active_group = "default";
+$active_record = TRUE;
+
+$db['default']['hostname'] = "localhost";
+$db['default']['username'] = "";
+$db['default']['password'] = "";
+$db['default']['database'] = "";
+$db['default']['dbdriver'] = "mysql";
+$db['default']['dbprefix'] = "";
+$db['default']['pconnect'] = TRUE;
+$db['default']['db_debug'] = TRUE;
+$db['default']['cache_on'] = FALSE;
+$db['default']['cachedir'] = "";
+$db['default']['char_set'] = "utf8";
+$db['default']['dbcollat'] = "utf8_general_ci";
+
+
+/* End of file database.php */
+/* Location: ./system/application/config/database.php */
@@ -0,0 +1,15 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+
+$_doctypes = array(
+ 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
+ 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
+ 'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
+ 'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
+ 'html5' => '<!DOCTYPE html>',
+ 'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
+ 'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
+ 'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'
+ );
+
+/* End of file doctypes.php */
+/* Location: application/config/doctypes.php */
@@ -0,0 +1,16 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/*
+| -------------------------------------------------------------------------
+| Hooks
+| -------------------------------------------------------------------------
+| This file lets you define "hooks" to extend CI without hacking the core
+| files. Please see the user guide for info:
+|
+| http://codeigniter.com/user_guide/general/hooks.html
+|
+*/
+
+
+
+/* End of file hooks.php */
+/* Location: ./system/application/config/hooks.php */
@@ -0,0 +1,10 @@
+<html>
+<head>
+ <title>403 Forbidden</title>
+</head>
+<body>
+
+<p>Directory access is forbidden.</p>
+
+</body>
+</html>
@@ -0,0 +1,105 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/*
+| -------------------------------------------------------------------
+| MIME TYPES
+| -------------------------------------------------------------------
+| This file contains an array of mime types. It is used by the
+| Upload class to help identify allowed file types.
+|
+*/
+
+$mimes = array( 'hqx' => 'application/mac-binhex40',
+ 'cpt' => 'application/mac-compactpro',
+ 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
+ 'bin' => 'application/macbinary',
+ 'dms' => 'application/octet-stream',
+ 'lha' => 'application/octet-stream',
+ 'lzh' => 'application/octet-stream',
+ 'exe' => 'application/octet-stream',
+ 'class' => 'application/octet-stream',
+ 'psd' => 'application/x-photoshop',
+ 'so' => 'application/octet-stream',
+ 'sea' => 'application/octet-stream',
+ 'dll' => 'application/octet-stream',
+ 'oda' => 'application/oda',
+ 'pdf' => array('application/pdf', 'application/x-download'),
+ 'ai' => 'application/postscript',
+ 'eps' => 'application/postscript',
+ 'ps' => 'application/postscript',
+ 'smi' => 'application/smil',
+ 'smil' => 'application/smil',
+ 'mif' => 'application/vnd.mif',
+ 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
+ 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
+ 'wbxml' => 'application/wbxml',
+ 'wmlc' => 'application/wmlc',
+ 'dcr' => 'application/x-director',
+ 'dir' => 'application/x-director',
+ 'dxr' => 'application/x-director',
+ 'dvi' => 'application/x-dvi',
+ 'gtar' => 'application/x-gtar',
+ 'gz' => 'application/x-gzip',
+ 'php' => 'application/x-httpd-php',
+ 'php4' => 'application/x-httpd-php',
+ 'php3' => 'application/x-httpd-php',
+ 'phtml' => 'application/x-httpd-php',
+ 'phps' => 'application/x-httpd-php-source',
+ 'js' => 'application/x-javascript',
+ 'swf' => 'application/x-shockwave-flash',
+ 'sit' => 'application/x-stuffit',
+ 'tar' => 'application/x-tar',
+ 'tgz' => 'application/x-tar',
+ 'xhtml' => 'application/xhtml+xml',
+ 'xht' => 'application/xhtml+xml',
+ 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
+ 'mid' => 'audio/midi',
+ 'midi' => 'audio/midi',
+ 'mpga' => 'audio/mpeg',
+ 'mp2' => 'audio/mpeg',
+ 'mp3' => array('audio/mpeg', 'audio/mpg'),
+ 'aif' => 'audio/x-aiff',
+ 'aiff' => 'audio/x-aiff',
+ 'aifc' => 'audio/x-aiff',
+ 'ram' => 'audio/x-pn-realaudio',
+ 'rm' => 'audio/x-pn-realaudio',
+ 'rpm' => 'audio/x-pn-realaudio-plugin',
+ 'ra' => 'audio/x-realaudio',
+ 'rv' => 'video/vnd.rn-realvideo',
+ 'wav' => 'audio/x-wav',
+ 'bmp' => 'image/bmp',
+ 'gif' => 'image/gif',
+ 'jpeg' => array('image/jpeg', 'image/pjpeg'),
+ 'jpg' => array('image/jpeg', 'image/pjpeg'),
+ 'jpe' => array('image/jpeg', 'image/pjpeg'),
+ 'png' => array('image/png', 'image/x-png'),
+ 'tiff' => 'image/tiff',
+ 'tif' => 'image/tiff',
+ 'css' => 'text/css',
+ 'html' => 'text/html',
+ 'htm' => 'text/html',
+ 'shtml' => 'text/html',
+ 'txt' => 'text/plain',
+ 'text' => 'text/plain',
+ 'log' => array('text/plain', 'text/x-log'),
+ 'rtx' => 'text/richtext',
+ 'rtf' => 'text/rtf',
+ 'xml' => 'text/xml',
+ 'xsl' => 'text/xml',
+ 'mpeg' => 'video/mpeg',
+ 'mpg' => 'video/mpeg',
+ 'mpe' => 'video/mpeg',
+ 'qt' => 'video/quicktime',
+ 'mov' => 'video/quicktime',
+ 'avi' => 'video/x-msvideo',
+ 'movie' => 'video/x-sgi-movie',
+ 'doc' => 'application/msword',
+ 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
+ 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
+ 'word' => array('application/msword', 'application/octet-stream'),
+ 'xl' => 'application/excel',
+ 'eml' => 'message/rfc822'
+ );
+
+
+/* End of file mimes.php */
+/* Location: ./system/application/config/mimes.php */
Oops, something went wrong.

0 comments on commit f7c8be8

Please sign in to comment.