├── .gitignore ├── README ├── license ├── schema ├── README ├── autoresponders.sql ├── autoresponders_log.sql ├── ci_sessions.sql ├── countries.sql ├── data │ ├── required │ │ ├── countries.sql │ │ └── us_states.sql │ └── sample │ │ └── users.sql ├── us_states.sql ├── users.sql └── users_password_reset.sql └── web ├── .htaccess ├── _ ├── css │ └── style.css ├── img │ └── icons │ │ ├── add.png │ │ ├── cancelbutton.gif │ │ ├── delete.gif │ │ ├── error.png │ │ ├── green_tick.gif │ │ ├── medium_load.gif │ │ └── report_edit.png └── js │ ├── libs │ ├── jquery-1.7.1.min.js │ └── modernizr-2.0.6.min.js │ ├── mylibs │ ├── .gitignore │ └── json.js │ ├── plugins.js │ └── script.js ├── application ├── .htaccess ├── cache │ ├── .htaccess │ └── index.html ├── config │ ├── autoload.php │ ├── autoresponderlib_config.php-default │ ├── config.php │ ├── constants.php │ ├── database.php-default │ ├── database_tables.php │ ├── doctypes.php │ ├── environment_settings.php-default │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── migration.php │ ├── mimes.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ ├── templatelib_config.php │ └── user_agents.php ├── controllers │ ├── error.php │ ├── index.html │ └── welcome.php ├── core │ ├── MY_Router.php │ ├── MY_URI.php │ └── index.html ├── errors │ ├── error_404.php │ ├── error_db.php │ ├── error_general.php │ ├── error_php.php │ └── index.html ├── helpers │ ├── MY_form_helper.php │ ├── MY_url_helper.php │ ├── debug_helper.php │ ├── index.html │ ├── page_helper.php │ ├── tax_helper.php │ └── time_helper.php ├── hooks │ └── index.html ├── index.html ├── language │ └── english │ │ ├── flash_messages_lang.php │ │ ├── form_validation_lang.php │ │ └── index.html ├── libraries │ ├── Admin_Controller.php │ ├── Frontend_Controller.php │ ├── Links_library.php │ ├── MY_Controller.php │ ├── MY_Form_validation.php │ ├── MY_Log.php │ ├── MY_Session.php │ ├── RSSParser.php │ ├── SimpleLoginSecure.php │ ├── autoresponder.php │ ├── index.html │ ├── phpass-0.1 │ │ ├── PasswordHash.php │ │ ├── c │ │ │ ├── Makefile │ │ │ └── crypt_private.c │ │ └── test.php │ └── template.php ├── logs │ └── index.html ├── migrations │ └── index.html ├── models │ ├── autoresponder_model.php │ ├── index.html │ ├── password_reset_model.php │ └── users_model.php ├── third_party │ └── index.html └── views │ ├── error │ └── error_404.php │ ├── index.html │ ├── templates │ └── page │ │ └── default │ │ ├── base.php │ │ ├── footer.php │ │ ├── footer_js.php │ │ ├── head.php │ │ └── header.php │ └── welcome │ └── welcome_index.php ├── crossdomain.xml ├── index.php ├── license.txt ├── robots.txt └── system ├── .htaccess ├── core ├── Benchmark.php ├── CodeIgniter.php ├── Common.php ├── Config.php ├── Controller.php ├── Exceptions.php ├── Hooks.php ├── Input.php ├── Lang.php ├── Loader.php ├── Model.php ├── Output.php ├── Router.php ├── Security.php ├── URI.php ├── Utf8.php └── index.html ├── database ├── DB.php ├── DB_active_rec.php ├── DB_cache.php ├── DB_driver.php ├── DB_forge.php ├── DB_result.php ├── DB_utility.php ├── drivers │ ├── cubrid │ │ ├── cubrid_driver.php │ │ ├── cubrid_forge.php │ │ ├── cubrid_result.php │ │ ├── cubrid_utility.php │ │ └── index.html │ ├── index.html │ ├── mssql │ │ ├── index.html │ │ ├── mssql_driver.php │ │ ├── mssql_forge.php │ │ ├── mssql_result.php │ │ └── mssql_utility.php │ ├── mysql │ │ ├── index.html │ │ ├── mysql_driver.php │ │ ├── mysql_forge.php │ │ ├── mysql_result.php │ │ └── mysql_utility.php │ ├── mysqli │ │ ├── index.html │ │ ├── mysqli_driver.php │ │ ├── mysqli_forge.php │ │ ├── mysqli_result.php │ │ └── mysqli_utility.php │ ├── oci8 │ │ ├── index.html │ │ ├── oci8_driver.php │ │ ├── oci8_forge.php │ │ ├── oci8_result.php │ │ └── oci8_utility.php │ ├── odbc │ │ ├── index.html │ │ ├── odbc_driver.php │ │ ├── odbc_forge.php │ │ ├── odbc_result.php │ │ └── odbc_utility.php │ ├── pdo │ │ ├── index.html │ │ ├── pdo_driver.php │ │ ├── pdo_forge.php │ │ ├── pdo_result.php │ │ └── pdo_utility.php │ ├── postgre │ │ ├── index.html │ │ ├── postgre_driver.php │ │ ├── postgre_forge.php │ │ ├── postgre_result.php │ │ └── postgre_utility.php │ ├── sqlite │ │ ├── index.html │ │ ├── sqlite_driver.php │ │ ├── sqlite_forge.php │ │ ├── sqlite_result.php │ │ └── sqlite_utility.php │ └── sqlsrv │ │ ├── index.html │ │ ├── sqlsrv_driver.php │ │ ├── sqlsrv_forge.php │ │ ├── sqlsrv_result.php │ │ └── sqlsrv_utility.php └── index.html ├── fonts ├── index.html └── texb.ttf ├── helpers ├── array_helper.php ├── captcha_helper.php ├── cookie_helper.php ├── date_helper.php ├── directory_helper.php ├── download_helper.php ├── email_helper.php ├── file_helper.php ├── form_helper.php ├── html_helper.php ├── index.html ├── inflector_helper.php ├── language_helper.php ├── number_helper.php ├── path_helper.php ├── security_helper.php ├── smiley_helper.php ├── string_helper.php ├── text_helper.php ├── typography_helper.php ├── url_helper.php └── xml_helper.php ├── index.html ├── language ├── english │ ├── calendar_lang.php │ ├── date_lang.php │ ├── db_lang.php │ ├── email_lang.php │ ├── form_validation_lang.php │ ├── ftp_lang.php │ ├── imglib_lang.php │ ├── index.html │ ├── migration_lang.php │ ├── number_lang.php │ ├── profiler_lang.php │ ├── unit_test_lang.php │ └── upload_lang.php └── index.html └── libraries ├── Cache ├── Cache.php └── drivers │ ├── Cache_apc.php │ ├── Cache_dummy.php │ ├── Cache_file.php │ └── Cache_memcached.php ├── Calendar.php ├── Cart.php ├── Driver.php ├── Email.php ├── Encrypt.php ├── Form_validation.php ├── Ftp.php ├── Image_lib.php ├── Javascript.php ├── Log.php ├── Migration.php ├── Pagination.php ├── Parser.php ├── Profiler.php ├── Session.php ├── Sha1.php ├── Table.php ├── Trackback.php ├── Typography.php ├── Unit_test.php ├── Upload.php ├── User_agent.php ├── Xmlrpc.php ├── Xmlrpcs.php ├── Zip.php ├── index.html └── javascript └── Jquery.php /.gitignore: -------------------------------------------------------------------------------- 1 | web/application/config/database.php 2 | web/application/config/environment_settings.php 3 | web/application/config/autoresponderlib_config.php 4 | web/application/logs/log-*.php 5 | web/application/cache/* 6 | web/application/cache/!index.html 7 | 8 | # Numerous always-ignore extensions 9 | *.diff 10 | *.err 11 | *.orig 12 | *.log 13 | *.rej 14 | *.swo 15 | *.swp 16 | *.vi 17 | *~ 18 | 19 | # OS or Editor folders 20 | .DS_Store 21 | .cache 22 | .project 23 | .settings 24 | nbproject 25 | thumbs.db 26 | 27 | # Dreamweaver added files 28 | _notes 29 | dwsync.xml 30 | 31 | # Komodo 32 | *.komodoproject 33 | .komodotools 34 | 35 | # Folders to ignore 36 | .hg 37 | .svn 38 | publish 39 | .idea 40 | 41 | # build script local files 42 | build/buildinfo.properties 43 | build/config/buildinfo.properties 44 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | CodeIgniter (2.1.0) Starting Point - Status = production ready 2 | ==================================================================== 3 | 4 | A custom CodeIgniter installation with useful libraries, helpers, fixes, and useful modifications to the standard distributed code released by Ellis Labs. 5 | 6 | Changes and Additions 7 | ===================== 8 | 9 | CI settings 10 | - Saving session data to db 11 | - Autoloading helpers, libraries, and config files 12 | 13 | CI restructuring 14 | - Moved application/config/database.php to application/config/database.php-default 15 | 16 | .htaccess 17 | - Mod_Rewrite rules to create pretty urls 18 | 19 | crossdomain.xml 20 | - None policy so access is not allowed from other domains - e.g. flash 21 | 22 | Git ignore 23 | - Ignored application/config/database.php 24 | - Ignored application/config/settings_environment.php 25 | - Ignored log files 26 | - Ignored cache files 27 | 28 | Constants - Added useful info 29 | - Website name and slogan 30 | - Meta description and keywords 31 | - Twitter & Blog RSS feeds 32 | - Email address' - support, developer, system 33 | 34 | Environment settings - application/config/system_environment.php 35 | - Profiler ON/OFF 36 | - Email error log ON/OFF 37 | 38 | Added base controllers 39 | - Frontend 40 | - Admin 41 | - Shared 42 | 43 | Helpers 44 | - Debug 45 | - Time - https://github.com/ollierattue/codeigniter-time-helper 46 | - URL 47 | - Form 48 | - Tax helper (UK VAT rate) 49 | - Page 50 | - Template 51 | 52 | Libraries 53 | - Links library - Save database table names into application/config/database_tables.php and the array key is then used in models. This means a table rename only needs to be updated in one place. 54 | - Autoresponder - https://github.com/ollierattue/codeigniter-autoresponder 55 | - SimpleLoginSecure auth library - http://codeigniter.com/wiki/SimpleLoginSecure/ 56 | - Router extension - allows controllers to have multiple directories - https://github.com/ollierattue/codeigniter-multi-level-controller-extension 57 | - URI library extension - filter_uri() now allows url_encode characters 58 | - Form validation extension - added greater_than_or_equal(), email_available() with ajax support, current_password_check() 59 | - Log library extension - emails errors to developer - http://wpstorm.net/2009/05/email-log-messages-library-codeigniter/ 60 | - Session library extension - set_flashmessage() with 'success' or 'error' status which adds div formatting as applicable. 61 | - DB utility library extension - fixed bug in csv_from_result() and added html encoding 62 | 63 | Models and db 64 | - Countries db table and model 65 | 66 | Controllers and views 67 | - Admin login, dashboard, logout functionality 68 | - Amnesia - forgotten password reset 69 | 70 | CSS 71 | - Structured in frontend, admin, and shared directories 72 | - Useful generic helper and reset code 73 | - Useful form, development, and flash_data styling 74 | 75 | Javascript 76 | - jQuery 77 | - Json js encode/decode functions 78 | 79 | Images 80 | - Image directory with useful icons 81 | 82 | TODO 83 | ==== 84 | 85 | - Move to Tank Auth library from SimpleLoginSecure 86 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2011 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /schema/README: -------------------------------------------------------------------------------- 1 | All schema files are stored here: 2 | 3 | The schemas themselves are stored in schema/ e.g. schema/users.sql with a schema for every table in the database 4 | 5 | Schema data is then stored in the data directory: 6 | 7 | - Any data which is critical to the application running, e.g. countries, should be saved into data/required 8 | - Any data which is used for testing the application should be saved in data/sample -------------------------------------------------------------------------------- /schema/autoresponders.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `autoresponders`; 2 | CREATE TABLE IF NOT EXISTS `autoresponders` ( 3 | `autoresponder_id` int(11) NOT NULL auto_increment, 4 | `autoresponder_name` varchar(20) default NULL, 5 | `autoresponder_subject` varchar(200) default NULL, 6 | `autoresponder_message` text, 7 | `autoresponder_modified` timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP, 8 | PRIMARY KEY (`autoresponder_id`) 9 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -------------------------------------------------------------------------------- /schema/autoresponders_log.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `autoresponder_log`; 2 | CREATE TABLE IF NOT EXISTS `autoresponder_log` ( 3 | `autoresponder_log_id` int(16) NOT NULL auto_increment, 4 | `autoresponder_id` int(11) NOT NULL, 5 | `autoresponder_log_to_name` varchar(255) default NULL, 6 | `autoresponder_log_to_email` varchar(255) default NULL, 7 | `autoresponder_log_from_email` varchar(250) NOT NULL, 8 | `autoresponder_log_from_name` varchar(100) NOT NULL, 9 | `autoresponder_log_subject` varchar(500) NOT NULL, 10 | `autoresponder_log_message` text NOT NULL, 11 | `autoresponder_log_substitution_array` varchar(1000) NOT NULL, 12 | `autoresponder_log_attachments_array` varchar(1000) NOT NULL, 13 | `autoresponder_log_bcc_notify` int(11) default NULL, 14 | `autoresponder_log_email_sent` int(1) default NULL, 15 | `autoresponder_log_created` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, 16 | PRIMARY KEY (`autoresponder_log_id`) 17 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -------------------------------------------------------------------------------- /schema/ci_sessions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS `ci_sessions` ( 2 | session_id varchar(40) DEFAULT '0' NOT NULL, 3 | ip_address varchar(16) DEFAULT '0' NOT NULL, 4 | user_agent varchar(120) NOT NULL, 5 | last_activity int(10) unsigned DEFAULT 0 NOT NULL, 6 | user_data text NOT NULL, 7 | PRIMARY KEY (session_id), 8 | KEY `last_activity_idx` (`last_activity`) 9 | ); -------------------------------------------------------------------------------- /schema/countries.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `countries`; 2 | CREATE TABLE IF NOT EXISTS `countries` ( 3 | `country_iso` char(2) NOT NULL, 4 | `country_name` varchar(80) NOT NULL, 5 | `country_printable_name` varchar(80) NOT NULL, 6 | `country_iso3` char(3) default NULL, 7 | `country_numcode` smallint(6) default NULL, 8 | PRIMARY KEY (`country_iso`) 9 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 10 | -------------------------------------------------------------------------------- /schema/data/required/us_states.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `us_states`; 2 | CREATE TABLE IF NOT EXISTS `us_states` ( 3 | `us_state_code` char(2) NOT NULL, 4 | `us_state_name` varchar(250) NOT NULL, 5 | PRIMARY KEY (`us_state_code`) 6 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 7 | 8 | INSERT INTO `us_states` (`us_state_code`, `us_state_name`) VALUES 9 | ('AL', 'Alabama'), 10 | ('AK', 'Alaska'), 11 | ('AZ', 'Arizona'), 12 | ('AR', 'Arkansas'), 13 | ('CA', 'California'), 14 | ('CO', 'Colorado'), 15 | ('CT', 'Connecticut'), 16 | ('DE', 'Delaware'), 17 | ('DC', 'District of Columbia'), 18 | ('FL', 'Florida'), 19 | ('GA', 'Georgia'), 20 | ('HI', 'Hawaii'), 21 | ('ID', 'Idaho'), 22 | ('IL', 'Illinois'), 23 | ('IN', 'Indiana'), 24 | ('IA', 'Iowa'), 25 | ('KS', 'Kansas'), 26 | ('KY', 'Kentucky'), 27 | ('LA', 'Louisiana'), 28 | ('ME', 'Maine'), 29 | ('MD', 'Maryland'), 30 | ('MA', 'Massachusetts'), 31 | ('MI', 'Michigan'), 32 | ('MN', 'Minnesota'), 33 | ('MS', 'Mississippi'), 34 | ('MO', 'Missouri'), 35 | ('MT', 'Montana'), 36 | ('NE', 'Nebraska'), 37 | ('NV', 'Nevada'), 38 | ('NH', 'New Hampshire'), 39 | ('NJ', 'New Jersey'), 40 | ('NM', 'New Mexico'), 41 | ('NY', 'New York'), 42 | ('NC', 'North Carolina'), 43 | ('ND', 'North Dakota'), 44 | ('OH', 'Ohio'), 45 | ('OK', 'Oklahoma'), 46 | ('OR', 'Oregon'), 47 | ('PA', 'Pennsylvania'), 48 | ('RI', 'Rhode Island'), 49 | ('SC', 'South Carolina'), 50 | ('SD', 'South Dakota'), 51 | ('TN', 'Tennessee'), 52 | ('TX', 'Texas'), 53 | ('UT', 'Utah'), 54 | ('VT', 'Vermont'), 55 | ('VA', 'Virginia'), 56 | ('WA', 'Washington'), 57 | ('WV', 'West Virginia'), 58 | ('WI', 'Wisconsin'), 59 | ('WY', 'Wyoming'); 60 | -------------------------------------------------------------------------------- /schema/data/sample/users.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `users`; 2 | CREATE TABLE IF NOT EXISTS `users` ( 3 | `user_id` int(10) unsigned NOT NULL auto_increment, 4 | `user_username` varchar(50) NOT NULL, 5 | `user_email` varchar(255) NOT NULL default '', 6 | `user_pass` varchar(60) NOT NULL default '', 7 | `user_date` datetime NOT NULL default '0000-00-00 00:00:00', 8 | `user_modified` datetime NOT NULL default '0000-00-00 00:00:00', 9 | `user_last_login` datetime default NULL, 10 | `user_role` varchar(20) NOT NULL default 'fan', 11 | `user_first_name` varchar(200) NOT NULL, 12 | `user_surname` varchar(200) NOT NULL, 13 | `user_telephone` varchar(20) NOT NULL, 14 | `user_address_line1` varchar(100) NOT NULL, 15 | `user_address_line2` varchar(100) default NULL, 16 | `user_towncity` varchar(40) NOT NULL, 17 | `user_county` varchar(200) NOT NULL, 18 | `user_country` varchar(200) NOT NULL, 19 | `user_postzip_code` varchar(10) NOT NULL, 20 | `user_billing_address_different` smallint(1) NOT NULL, 21 | `user_billing_address_line1` varchar(100) NOT NULL, 22 | `user_billing_address_line2` varchar(100) default NULL, 23 | `user_billing_towncity` varchar(40) NOT NULL, 24 | `user_billing_county` varchar(200) NOT NULL, 25 | `user_billing_country` varchar(200) NOT NULL, 26 | `user_billing_postzip_code` varchar(10) NOT NULL, 27 | `activated` int(1) NOT NULL default '1', 28 | PRIMARY KEY (`user_id`), 29 | UNIQUE KEY `user_email` (`user_email`) 30 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; 31 | 32 | -- 33 | -- Dumping data for table `users` 34 | -- 35 | 36 | INSERT INTO `users` (`user_id`, `user_username`, `user_email`, `user_pass`, `user_date`, `user_modified`, `user_last_login`, `user_role`, `user_first_name`, `user_surname`, `user_telephone`, `user_address_line1`, `user_address_line2`, `user_towncity`, `user_county`, `user_country`, `user_postzip_code`, `user_billing_address_different`, `user_billing_address_line1`, `user_billing_address_line2`, `user_billing_towncity`, `user_billing_county`, `user_billing_country`, `user_billing_postzip_code`, `activated`) VALUES 37 | (1, 'admin', 'joe@blogs.com', '$P$BM2i8Y5e3lddJWPAd3Oxk.QJJTUgj7.', '2010-02-24 14:11:35', '2010-02-24 14:11:35', '2010-10-21 15:36:52', 'admin', 'Ollie', 'Rattue', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', 1); 38 | -------------------------------------------------------------------------------- /schema/us_states.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `us_states`; 2 | CREATE TABLE IF NOT EXISTS `us_states` ( 3 | `us_state_code` char(2) NOT NULL, 4 | `us_state_name` varchar(250) NOT NULL, 5 | PRIMARY KEY (`us_state_code`) 6 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 7 | -------------------------------------------------------------------------------- /schema/users.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `users`; 2 | CREATE TABLE IF NOT EXISTS `users` ( 3 | `user_id` int(10) unsigned NOT NULL auto_increment, 4 | `user_username` varchar(50) NOT NULL, 5 | `user_email` varchar(255) NOT NULL default '', 6 | `user_pass` varchar(60) NOT NULL default '', 7 | `user_date` datetime NOT NULL default '0000-00-00 00:00:00', 8 | `user_modified` datetime NOT NULL default '0000-00-00 00:00:00', 9 | `user_last_login` datetime default NULL, 10 | `user_role` varchar(20) NOT NULL default 'fan', 11 | `user_first_name` varchar(200) NOT NULL, 12 | `user_surname` varchar(200) NOT NULL, 13 | `user_telephone` varchar(20) NOT NULL, 14 | `user_address_line1` varchar(100) NOT NULL, 15 | `user_address_line2` varchar(100) default NULL, 16 | `user_towncity` varchar(40) NOT NULL, 17 | `user_county` varchar(200) NOT NULL, 18 | `user_country` varchar(200) NOT NULL, 19 | `user_postzip_code` varchar(10) NOT NULL, 20 | `user_billing_address_different` smallint(1) NOT NULL, 21 | `user_billing_address_line1` varchar(100) NOT NULL, 22 | `user_billing_address_line2` varchar(100) default NULL, 23 | `user_billing_towncity` varchar(40) NOT NULL, 24 | `user_billing_county` varchar(200) NOT NULL, 25 | `user_billing_country` varchar(200) NOT NULL, 26 | `user_billing_postzip_code` varchar(10) NOT NULL, 27 | `activated` int(1) NOT NULL default '1', 28 | PRIMARY KEY (`user_id`), 29 | UNIQUE KEY `user_email` (`user_email`) 30 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; 31 | -------------------------------------------------------------------------------- /schema/users_password_reset.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `users_password_reset`; 2 | CREATE TABLE IF NOT EXISTS `users_password_reset` ( 3 | `password_reset_code` varchar(80) NOT NULL, 4 | `user_id` bigint(20) NOT NULL, 5 | `password_reset_date` datetime NOT NULL, 6 | PRIMARY KEY (`password_reset_code`) 7 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 8 | -------------------------------------------------------------------------------- /web/_/img/icons/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ollieza/codeigniter-starting-point/d98513e0fede70f22054dc14d3ba21b0a6bf4492/web/_/img/icons/add.png -------------------------------------------------------------------------------- /web/_/img/icons/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ollieza/codeigniter-starting-point/d98513e0fede70f22054dc14d3ba21b0a6bf4492/web/_/img/icons/cancelbutton.gif -------------------------------------------------------------------------------- /web/_/img/icons/delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ollieza/codeigniter-starting-point/d98513e0fede70f22054dc14d3ba21b0a6bf4492/web/_/img/icons/delete.gif -------------------------------------------------------------------------------- /web/_/img/icons/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ollieza/codeigniter-starting-point/d98513e0fede70f22054dc14d3ba21b0a6bf4492/web/_/img/icons/error.png -------------------------------------------------------------------------------- /web/_/img/icons/green_tick.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ollieza/codeigniter-starting-point/d98513e0fede70f22054dc14d3ba21b0a6bf4492/web/_/img/icons/green_tick.gif -------------------------------------------------------------------------------- /web/_/img/icons/medium_load.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ollieza/codeigniter-starting-point/d98513e0fede70f22054dc14d3ba21b0a6bf4492/web/_/img/icons/medium_load.gif -------------------------------------------------------------------------------- /web/_/img/icons/report_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ollieza/codeigniter-starting-point/d98513e0fede70f22054dc14d3ba21b0a6bf4492/web/_/img/icons/report_edit.png -------------------------------------------------------------------------------- /web/_/js/mylibs/.gitignore: -------------------------------------------------------------------------------- 1 | !.gitignore 2 | 3 | -------------------------------------------------------------------------------- /web/_/js/plugins.js: -------------------------------------------------------------------------------- 1 | 2 | // usage: log('inside coolFunc', this, arguments); 3 | // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ 4 | window.log = function(){ 5 | log.history = log.history || []; // store logs to an array for reference 6 | log.history.push(arguments); 7 | if(this.console) { 8 | arguments.callee = arguments.callee.caller; 9 | var newarr = [].slice.call(arguments); 10 | (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr)); 11 | } 12 | }; 13 | 14 | // make it safe to use console.log always 15 | (function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try 16 | {console.log();return window.console;}catch(err){return window.console={};}})()); 17 | 18 | 19 | // place any jQuery/helper plugins in here, instead of separate, slower script files. 20 | 21 | -------------------------------------------------------------------------------- /web/_/js/script.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() 2 | { 3 | 4 | }); -------------------------------------------------------------------------------- /web/application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /web/application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /web/application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /web/application/config/autoload.php: -------------------------------------------------------------------------------- 1 | '', 5 | 'xhtml1-strict' => '', 6 | 'xhtml1-trans' => '', 7 | 'xhtml1-frame' => '', 8 | 'html5' => '', 9 | 'html4-strict' => '', 10 | 'html4-trans' => '', 11 | 'html4-frame' => '' 12 | ); 13 | 14 | /* End of file doctypes.php */ 15 | /* Location: ./application/config/doctypes.php */ -------------------------------------------------------------------------------- /web/application/config/environment_settings.php-default: -------------------------------------------------------------------------------- 1 | 'ae', 12 | '/ö|œ/' => 'oe', 13 | '/ü/' => 'ue', 14 | '/Ä/' => 'Ae', 15 | '/Ü/' => 'Ue', 16 | '/Ö/' => 'Oe', 17 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A', 18 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a', 19 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 20 | '/ç|ć|ĉ|ċ|č/' => 'c', 21 | '/Ð|Ď|Đ/' => 'D', 22 | '/ð|ď|đ/' => 'd', 23 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E', 24 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e', 25 | '/Ĝ|Ğ|Ġ|Ģ/' => 'G', 26 | '/ĝ|ğ|ġ|ģ/' => 'g', 27 | '/Ĥ|Ħ/' => 'H', 28 | '/ĥ|ħ/' => 'h', 29 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I', 30 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i', 31 | '/Ĵ/' => 'J', 32 | '/ĵ/' => 'j', 33 | '/Ķ/' => 'K', 34 | '/ķ/' => 'k', 35 | '/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L', 36 | '/ĺ|ļ|ľ|ŀ|ł/' => 'l', 37 | '/Ñ|Ń|Ņ|Ň/' => 'N', 38 | '/ñ|ń|ņ|ň|ʼn/' => 'n', 39 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O', 40 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o', 41 | '/Ŕ|Ŗ|Ř/' => 'R', 42 | '/ŕ|ŗ|ř/' => 'r', 43 | '/Ś|Ŝ|Ş|Š/' => 'S', 44 | '/ś|ŝ|ş|š|ſ/' => 's', 45 | '/Ţ|Ť|Ŧ/' => 'T', 46 | '/ţ|ť|ŧ/' => 't', 47 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U', 48 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u', 49 | '/Ý|Ÿ|Ŷ/' => 'Y', 50 | '/ý|ÿ|ŷ/' => 'y', 51 | '/Ŵ/' => 'W', 52 | '/ŵ/' => 'w', 53 | '/Ź|Ż|Ž/' => 'Z', 54 | '/ź|ż|ž/' => 'z', 55 | '/Æ|Ǽ/' => 'AE', 56 | '/ß/'=> 'ss', 57 | '/IJ/' => 'IJ', 58 | '/ij/' => 'ij', 59 | '/Œ/' => 'OE', 60 | '/ƒ/' => 'f' 61 | ); 62 | 63 | /* End of file foreign_chars.php */ 64 | /* Location: ./application/config/foreign_chars.php */ -------------------------------------------------------------------------------- /web/application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 |