├── Resources └── about.md ├── Pendings.txt ├── RAW- codeigniterProject ├── system │ ├── fonts │ │ ├── texb.ttf │ │ └── index.html │ ├── core │ │ ├── index.html │ │ ├── compat │ │ │ ├── index.html │ │ │ └── standard.php │ │ ├── Model.php │ │ ├── Controller.php │ │ └── Benchmark.php │ ├── index.html │ ├── database │ │ ├── index.html │ │ └── drivers │ │ │ ├── index.html │ │ │ ├── cubrid │ │ │ ├── index.html │ │ │ └── cubrid_utility.php │ │ │ ├── ibase │ │ │ ├── index.html │ │ │ ├── ibase_utility.php │ │ │ └── ibase_result.php │ │ │ ├── mssql │ │ │ ├── index.html │ │ │ └── mssql_utility.php │ │ │ ├── mysql │ │ │ └── index.html │ │ │ ├── mysqli │ │ │ └── index.html │ │ │ ├── oci8 │ │ │ ├── index.html │ │ │ └── oci8_utility.php │ │ │ ├── odbc │ │ │ ├── index.html │ │ │ ├── odbc_utility.php │ │ │ └── odbc_forge.php │ │ │ ├── pdo │ │ │ ├── index.html │ │ │ ├── subdrivers │ │ │ │ ├── index.html │ │ │ │ ├── pdo_odbc_forge.php │ │ │ │ └── pdo_ibm_forge.php │ │ │ ├── pdo_forge.php │ │ │ └── pdo_utility.php │ │ │ ├── postgre │ │ │ ├── index.html │ │ │ └── postgre_utility.php │ │ │ ├── sqlite3 │ │ │ ├── index.html │ │ │ └── sqlite3_utility.php │ │ │ └── sqlsrv │ │ │ ├── index.html │ │ │ └── sqlsrv_utility.php │ ├── helpers │ │ ├── index.html │ │ ├── language_helper.php │ │ ├── path_helper.php │ │ ├── xml_helper.php │ │ ├── number_helper.php │ │ ├── typography_helper.php │ │ ├── security_helper.php │ │ ├── directory_helper.php │ │ ├── array_helper.php │ │ └── cookie_helper.php │ ├── language │ │ ├── index.html │ │ └── english │ │ │ ├── index.html │ │ │ ├── number_lang.php │ │ │ ├── pagination_lang.php │ │ │ ├── migration_lang.php │ │ │ ├── unit_test_lang.php │ │ │ ├── profiler_lang.php │ │ │ ├── ftp_lang.php │ │ │ ├── calendar_lang.php │ │ │ ├── upload_lang.php │ │ │ ├── email_lang.php │ │ │ ├── imglib_lang.php │ │ │ ├── db_lang.php │ │ │ └── form_validation_lang.php │ └── libraries │ │ ├── index.html │ │ ├── Cache │ │ ├── index.html │ │ └── drivers │ │ │ └── index.html │ │ └── Session │ │ ├── index.html │ │ └── drivers │ │ └── index.html ├── application │ ├── views │ │ ├── userList.php │ │ ├── errors │ │ │ ├── cli │ │ │ │ ├── error_404.php │ │ │ │ ├── error_general.php │ │ │ │ ├── error_db.php │ │ │ │ ├── index.html │ │ │ │ ├── error_php.php │ │ │ │ └── error_exception.php │ │ │ ├── index.html │ │ │ └── html │ │ │ │ ├── index.html │ │ │ │ ├── error_php.php │ │ │ │ ├── error_exception.php │ │ │ │ ├── error_general.php │ │ │ │ ├── error_db.php │ │ │ │ └── error_404.php │ │ └── index.html │ ├── index.html │ ├── core │ │ └── index.html │ ├── logs │ │ └── index.html │ ├── cache │ │ └── index.html │ ├── config │ │ ├── index.html │ │ ├── hooks.php │ │ ├── profiler.php │ │ ├── memcached.php │ │ ├── routes.php │ │ ├── doctypes.php │ │ ├── foreign_chars.php │ │ ├── migration.php │ │ ├── constants.php │ │ └── autoload.php │ ├── helpers │ │ └── index.html │ ├── hooks │ │ └── index.html │ ├── language │ │ ├── index.html │ │ └── english │ │ │ └── index.html │ ├── libraries │ │ └── index.html │ ├── models │ │ └── index.html │ ├── controllers │ │ ├── index.html │ │ └── Welcome.php │ └── third_party │ │ └── index.html ├── tests │ ├── mocks │ │ ├── uploads │ │ │ └── ci_logo.gif │ │ ├── database │ │ │ ├── ci_test.sqlite │ │ │ ├── drivers │ │ │ │ ├── pdo.php │ │ │ │ ├── mysql.php │ │ │ │ ├── mysqli.php │ │ │ │ ├── postgre.php │ │ │ │ └── sqlite.php │ │ │ ├── config │ │ │ │ ├── mysql.php │ │ │ │ ├── mysqli.php │ │ │ │ ├── pgsql.php │ │ │ │ ├── sqlite.php │ │ │ │ └── pdo │ │ │ │ │ ├── mysql.php │ │ │ │ │ ├── pgsql.php │ │ │ │ │ └── sqlite.php │ │ │ ├── db │ │ │ │ └── driver.php │ │ │ ├── db.php │ │ │ └── schema │ │ │ │ └── skeleton.php │ │ ├── libraries │ │ │ ├── table.php │ │ │ ├── encrypt.php │ │ │ ├── driver.php │ │ │ ├── encryption.php │ │ │ └── session.php │ │ ├── ci_testconfig.php │ │ ├── core │ │ │ ├── uri.php │ │ │ ├── security.php │ │ │ └── common.php │ │ └── autoloader.php │ ├── phpunit.xml │ └── Bootstrap.php ├── composer.json ├── DCO.txt ├── license.txt ├── build-release.sh └── readme.rst └── README.md /Resources/about.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Pendings.txt: -------------------------------------------------------------------------------- 1 | - Paper? 2 | - Report? 3 | - Comparison paper with filter-search? 4 | - Upgrades and Improvements. 5 | 6 | Status: On hold. 7 | Reason: Archived. 8 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jishanshaikh4/filter-search-codeigniter/HEAD/RAW- codeigniterProject/system/fonts/texb.ttf -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/userList.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/uploads/ci_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jishanshaikh4/filter-search-codeigniter/HEAD/RAW- codeigniterProject/tests/mocks/uploads/ci_logo.gif -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/ci_test.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jishanshaikh4/filter-search-codeigniter/HEAD/RAW- codeigniterProject/tests/mocks/database/ci_test.sqlite -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/cli/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/cli/error_db.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/core/compat/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/libraries/Cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/libraries/Session/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/cli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/ibase/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/sqlite3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/libraries/Cache/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/libraries/Session/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/pdo/subdrivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 🐌 filter-search-codeigniter 2 | ==================================== 3 | A simple project showing dynamic web page with filter search of given designs (Implemented in codeigniter main project directory). Similar [repo.](https://www.github.com/jishanshaikh4/filter-search/) 4 | 5 | ## Technologies 6 | Front-end & Back end: PHP (Codeigniter) 7 | 8 | Database: MySQL 9 | 10 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/drivers/pdo.php: -------------------------------------------------------------------------------- 1 | config[$key]) ? $this->config[$key] : FALSE; 12 | } 13 | 14 | public function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE) 15 | { 16 | $this->loaded[] = $file; 17 | return TRUE; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/libraries/driver.php: -------------------------------------------------------------------------------- 1 | valid_drivers; 15 | } 16 | 17 | $this->valid_drivers = (array) $drivers; 18 | } 19 | 20 | /** 21 | * Get library name 22 | */ 23 | public function get_name() 24 | { 25 | return $this->lib_name; 26 | } 27 | } -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/config/profiler.php: -------------------------------------------------------------------------------- 1 | array( 15 | 'hostname' => '127.0.0.1', 16 | 'port' => '11211', 17 | 'weight' => '1', 18 | ), 19 | ); 20 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "The CodeIgniter framework", 3 | "name": "codeigniter/framework", 4 | "type": "project", 5 | "homepage": "https://codeigniter.com", 6 | "license": "MIT", 7 | "support": { 8 | "forum": "https://forum.codeigniter.com/", 9 | "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki", 10 | "slack": "https://codeigniterchat.slack.com", 11 | "source": "https://github.com/bcit-ci/CodeIgniter" 12 | }, 13 | "require": { 14 | "php": ">=5.4.8" 15 | }, 16 | "suggest": { 17 | "paragonie/random_compat": "Provides better randomness in PHP 5.x" 18 | }, 19 | "require-dev": { 20 | "mikey179/vfsStream": "1.1.*", 21 | "phpunit/phpunit": "4.* || 5.*" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | ./codeigniter/core 15 | ./codeigniter/helpers 16 | ./codeigniter/libraries 17 | 18 | 19 | 20 | 21 | ../system/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/cli/error_php.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | A PHP Error was encountered 4 | 5 | Severity: 6 | Message: 7 | Filename: 8 | Line Number: 9 | 10 | 11 | 12 | Backtrace: 13 | 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/controllers/Welcome.php: -------------------------------------------------------------------------------- 1 | 19 | * @see https://codeigniter.com/user_guide/general/urls.html 20 | */ 21 | public function index() 22 | { 23 | $this->load->view('welcome_message'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/config/mysql.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'dsn' => '', 8 | 'hostname' => 'localhost', 9 | 'username' => 'travis', 10 | 'password' => '', 11 | 'database' => 'ci_test', 12 | 'dbdriver' => 'mysql' 13 | ), 14 | 15 | // Database configuration with failover 16 | 'mysql_failover' => array( 17 | 'dsn' => '', 18 | 'hostname' => 'localhost', 19 | 'username' => 'not_travis', 20 | 'password' => 'wrong password', 21 | 'database' => 'not_ci_test', 22 | 'dbdriver' => 'mysql', 23 | 'failover' => array( 24 | array( 25 | 'dsn' => '', 26 | 'hostname' => 'localhost', 27 | 'username' => 'travis', 28 | 'password' => '', 29 | 'database' => 'ci_test', 30 | 'dbdriver' => 'mysql', 31 | ) 32 | ) 33 | ) 34 | ); -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/config/mysqli.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'dsn' => '', 8 | 'hostname' => 'localhost', 9 | 'username' => 'travis', 10 | 'password' => '', 11 | 'database' => 'ci_test', 12 | 'dbdriver' => 'mysqli' 13 | ), 14 | 15 | // Database configuration with failover 16 | 'mysqli_failover' => array( 17 | 'dsn' => '', 18 | 'hostname' => 'localhost', 19 | 'username' => 'not_travis', 20 | 'password' => 'wrong password', 21 | 'database' => 'not_ci_test', 22 | 'dbdriver' => 'mysqli', 23 | 'failover' => array( 24 | array( 25 | 'dsn' => '', 26 | 'hostname' => 'localhost', 27 | 'username' => 'travis', 28 | 'password' => '', 29 | 'database' => 'ci_test', 30 | 'dbdriver' => 'mysqli', 31 | ) 32 | ) 33 | ) 34 | ); -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/config/pgsql.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'dsn' => '', 8 | 'hostname' => 'localhost', 9 | 'username' => 'postgres', 10 | 'password' => '', 11 | 'database' => 'ci_test', 12 | 'dbdriver' => 'postgre' 13 | ), 14 | 15 | // Database configuration with failover 16 | 'pgsql_failover' => array( 17 | 'dsn' => '', 18 | 'hostname' => 'localhost', 19 | 'username' => 'not_travis', 20 | 'password' => 'wrong password', 21 | 'database' => 'not_ci_test', 22 | 'dbdriver' => 'postgre', 23 | 'failover' => array( 24 | array( 25 | 'dsn' => '', 26 | 'hostname' => 'localhost', 27 | 'username' => 'postgres', 28 | 'password' => '', 29 | 'database' => 'ci_test', 30 | 'dbdriver' => 'postgre', 31 | ) 32 | ) 33 | ) 34 | ); -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/core/uri.php: -------------------------------------------------------------------------------- 1 | ci_core_class('cfg'); 9 | 10 | // set predictable config values 11 | $test->ci_set_config(array( 12 | 'index_page' => 'index.php', 13 | 'base_url' => 'http://example.com/', 14 | 'subclass_prefix' => 'MY_', 15 | 'enable_query_strings' => FALSE, 16 | 'permitted_uri_chars' => 'a-z 0-9~%.:_\-' 17 | )); 18 | 19 | $this->config = new $cls; 20 | 21 | if ($this->config->item('enable_query_strings') !== TRUE OR is_cli()) 22 | { 23 | $this->_permitted_uri_chars = $this->config->item('permitted_uri_chars'); 24 | } 25 | } 26 | 27 | public function _set_permitted_uri_chars($value) 28 | { 29 | $this->_permitted_uri_chars = $value; 30 | } 31 | 32 | } -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/cli/error_exception.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | An uncaught Exception was encountered 4 | 5 | Type: 6 | Message: 7 | Filename: getFile(), "\n"; ?> 8 | Line Number: getLine(); ?> 9 | 10 | 11 | 12 | Backtrace: 13 | getTrace() as $error): ?> 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/config/sqlite.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'dsn' => '', 8 | 'hostname' => 'localhost', 9 | 'username' => 'sqlite', 10 | 'password' => 'sqlite', 11 | 'database' => realpath(__DIR__.'/..').'/ci_test.sqlite', 12 | 'dbdriver' => 'sqlite3' 13 | ), 14 | 15 | // Database configuration with failover 16 | 'sqlite_failover' => array( 17 | 'dsn' => '', 18 | 'hostname' => 'localhost', 19 | 'username' => 'sqlite', 20 | 'password' => 'sqlite', 21 | 'database' => '../not_exists.sqlite', 22 | 'dbdriver' => 'sqlite3', 23 | 'failover' => array( 24 | array( 25 | 'dsn' => '', 26 | 'hostname' => 'localhost', 27 | 'username' => 'sqlite', 28 | 'password' => 'sqlite', 29 | 'database' => realpath(__DIR__.'/..').'/ci_test.sqlite', 30 | 'dbdriver' => 'sqlite3' 31 | ) 32 | ) 33 | ) 34 | ); -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/libraries/encryption.php: -------------------------------------------------------------------------------- 1 | _get_params($params); 13 | } 14 | 15 | // -------------------------------------------------------------------- 16 | 17 | /** 18 | * get_key() 19 | * 20 | * Allows checking for key changes. 21 | */ 22 | public function get_key() 23 | { 24 | return $this->_key; 25 | } 26 | 27 | // -------------------------------------------------------------------- 28 | 29 | /** 30 | * __driver_get_handle() 31 | * 32 | * Allows checking for _mcrypt_get_handle(), _openssl_get_handle() 33 | */ 34 | public function __driver_get_handle($driver, $cipher, $mode) 35 | { 36 | return $this->{'_'.$driver.'_get_handle'}($cipher, $mode); 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/config/pdo/mysql.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'dsn' => 'mysql:host=localhost;dbname=ci_test', 8 | 'hostname' => 'localhost', 9 | 'username' => 'travis', 10 | 'password' => '', 11 | 'database' => 'ci_test', 12 | 'dbdriver' => 'pdo', 13 | 'subdriver' => 'mysql' 14 | ), 15 | 16 | // Database configuration with failover 17 | 'pdo/mysql_failover' => array( 18 | 'dsn' => '', 19 | 'hostname' => 'localhost', 20 | 'username' => 'not_travis', 21 | 'password' => 'wrong password', 22 | 'database' => 'not_ci_test', 23 | 'dbdriver' => 'pdo', 24 | 'subdriver' => 'mysql', 25 | 'failover' => array( 26 | array( 27 | 'dsn' => 'mysql:host=localhost;dbname=ci_test', 28 | 'hostname' => 'localhost', 29 | 'username' => 'travis', 30 | 'password' => '', 31 | 'database' => 'ci_test', 32 | 'dbdriver' => 'pdo', 33 | 'subdriver' => 'mysql' 34 | ) 35 | ) 36 | ) 37 | ); -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/html/error_php.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |

A PHP Error was encountered

8 | 9 |

Severity:

10 |

Message:

11 |

Filename:

12 |

Line Number:

13 | 14 | 15 | 16 |

Backtrace:

17 | 18 | 19 | 20 | 21 |

22 | File:
23 | Line:
24 | Function: 25 |

26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
34 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/config/pdo/pgsql.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;', 8 | 'hostname' => 'localhost', 9 | 'username' => 'postgres', 10 | 'password' => '', 11 | 'database' => 'ci_test', 12 | 'dbdriver' => 'pdo', 13 | 'subdriver' => 'pgsql' 14 | ), 15 | 16 | // Database configuration with failover 17 | 'pdo/pgsql_failover' => array( 18 | 'dsn' => '', 19 | 'hostname' => 'localhost', 20 | 'username' => 'not_travis', 21 | 'password' => 'wrong password', 22 | 'database' => 'not_ci_test', 23 | 'dbdriver' => 'pdo', 24 | 'subdriver' => 'pgsql', 25 | 'failover' => array( 26 | array( 27 | 'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;', 28 | 'hostname' => 'localhost', 29 | 'username' => 'postgres', 30 | 'password' => '', 31 | 'database' => 'ci_test', 32 | 'dbdriver' => 'pdo', 33 | 'subdriver' => 'pgsql' 34 | ) 35 | ) 36 | ) 37 | ); -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/libraries/session.php: -------------------------------------------------------------------------------- 1 | _flashdata_sweep(); 13 | $this->_flashdata_mark(); 14 | $this->_tempdata_sweep(); 15 | } 16 | } 17 | 18 | /** 19 | * Mock cookie driver to overload cookie setting 20 | */ 21 | class Mock_Libraries_Session_cookie extends CI_Session_cookie { 22 | /** 23 | * Overload _setcookie to manage $_COOKIE values, since actual cookies can't be set in unit testing 24 | */ 25 | protected function _setcookie($name, $value = '', $expire = 0, $path = '', $domain = '', $secure = FALSE, $httponly = FALSE) 26 | { 27 | if (empty($value) OR $expire <= time()) 28 | { 29 | unset($_COOKIE[$name]); 30 | } 31 | else 32 | { 33 | $_COOKIE[$name] = $value; 34 | } 35 | } 36 | } 37 | 38 | class Mock_Libraries_Session_native extends CI_Session_native {} -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/config/pdo/sqlite.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite', 8 | 'hostname' => 'localhost', 9 | 'username' => 'sqlite', 10 | 'password' => 'sqlite', 11 | 'database' => 'sqlite', 12 | 'dbdriver' => 'pdo', 13 | 'subdriver' => 'sqlite' 14 | ), 15 | 16 | // Database configuration with failover 17 | 'pdo/sqlite_failover' => array( 18 | 'dsn' => 'sqlite:not_exists.sqlite', 19 | 'hostname' => 'localhost', 20 | 'username' => 'sqlite', 21 | 'password' => 'sqlite', 22 | 'database' => 'sqlite', 23 | 'dbdriver' => 'pdo', 24 | 'subdriver' => 'sqlite', 25 | 'failover' => array( 26 | array( 27 | 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite', 28 | 'hostname' => 'localhost', 29 | 'username' => 'sqlite', 30 | 'password' => 'sqlite', 31 | 'database' => 'sqlite', 32 | 'dbdriver' => 'pdo', 33 | 'subdriver' => 'sqlite' 34 | ) 35 | ) 36 | ) 37 | ); -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/core/security.php: -------------------------------------------------------------------------------- 1 | {'_'.$property}) ? $this->{'_'.$property} : NULL; 17 | } 18 | 19 | public function remove_evil_attributes($str, $is_image) 20 | { 21 | return $this->_remove_evil_attributes($str, $is_image); 22 | } 23 | 24 | // Override inaccessible protected method 25 | public function __call($method, $params) 26 | { 27 | if (is_callable(array($this, '_'.$method))) 28 | { 29 | return call_user_func_array(array($this, '_'.$method), $params); 30 | } 31 | 32 | throw new BadMethodCallException('Method '.$method.' was not found'); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/mocks/database/db/driver.php: -------------------------------------------------------------------------------- 1 | ci_db_driver = new $driver_class($config); 22 | } 23 | } 24 | 25 | /** 26 | * Overloading method, emulate the actual driver method (multiple inheritance workaround) 27 | */ 28 | public function __call($method, $arguments) 29 | { 30 | if ( ! is_callable(array($this->ci_db_driver, $method))) 31 | { 32 | throw new BadMethodCallException($method. ' not exists or not implemented'); 33 | } 34 | 35 | return call_user_func_array(array($this->ci_db_driver, $method), $arguments); 36 | } 37 | 38 | } 39 | 40 | class CI_DB extends CI_DB_query_builder {} -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/html/error_exception.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |

An uncaught Exception was encountered

8 | 9 |

Type:

10 |

Message:

11 |

Filename: getFile(); ?>

12 |

Line Number: getLine(); ?>

13 | 14 | 15 | 16 |

Backtrace:

17 | getTrace() as $error): ?> 18 | 19 | 20 | 21 |

22 | File:
23 | Line:
24 | Function: 25 |

26 | 27 | 28 | 29 | 30 | 31 | 32 |
33 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/DCO.txt: -------------------------------------------------------------------------------- 1 | Developer's Certificate of Origin 1.1 2 | 3 | By making a contribution to this project, I certify that: 4 | 5 | (1) The contribution was created in whole or in part by me and I 6 | have the right to submit it under the open source license 7 | indicated in the file; or 8 | 9 | (2) The contribution is based upon previous work that, to the best 10 | of my knowledge, is covered under an appropriate open source 11 | license and I have the right under that license to submit that 12 | work with modifications, whether created in whole or in part 13 | by me, under the same open source license (unless I am 14 | permitted to submit under a different license), as indicated 15 | in the file; or 16 | 17 | (3) The contribution was provided directly to me by some other 18 | person who certified (1), (2) or (3) and I have not modified 19 | it. 20 | 21 | (4) I understand and agree that this project and the contribution 22 | are public and that a record of the contribution (including all 23 | personal information I submit with it, including my sign-off) is 24 | maintained indefinitely and may be redistributed consistent with 25 | this project or the open source license(s) involved. 26 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 - 2018, British Columbia Institute of Technology 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. -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/html/error_general.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Error 8 | 78 | 79 | 80 |
81 |

82 |
83 | 84 |
85 |
86 | 87 | 88 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/html/error_db.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Database Error 8 | 78 | 79 | 80 |
81 |

82 |
83 | 84 |
85 |
86 | 87 | 88 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/views/errors/html/error_404.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 404 Page Not Found 8 | 78 | 79 | 80 |
81 |

82 |
83 | 84 |
85 |
86 | 87 | 88 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/number_lang.php: -------------------------------------------------------------------------------- 1 | my_controller/index 50 | | my-controller/my-method -> my_controller/my_method 51 | */ 52 | $route['default_controller'] = 'welcome'; 53 | $route['404_override'] = ''; 54 | $route['translate_uri_dashes'] = FALSE; 55 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/sqlite3/sqlite3_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/pdo/pdo_forge.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/odbc/odbc_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/build-release.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd $(dirname $BASH_SOURCE) 4 | 5 | if [ $# -eq 0 ]; then 6 | echo 'Usage: '$BASH_SOURCE' ' 7 | exit 1 8 | fi 9 | 10 | version_number=$1 11 | 12 | if [ ${#version_number} -lt 5 ] 13 | then 14 | echo "Provided version number is too short" 15 | exit 1 16 | elif [ ${version_number: -4} == "-dev" ] 17 | then 18 | echo "'-dev' releases are not allowed" 19 | exit 1 20 | fi 21 | 22 | version_id=${version_number:0:5} 23 | version_id=${version_id//./} 24 | upgrade_rst='user_guide_src/source/installation/upgrade_'$version_id'.rst' 25 | 26 | if [ ${#version_id} -ne 3 ] 27 | then 28 | echo "Invalid version number format" 29 | exit 1 30 | elif [ `grep -c -F --regexp="'$version_number'" system/core/CodeIgniter.php` -ne 1 ] 31 | then 32 | echo "Provided version number doesn't match in system/core/CodeIgniter.php" 33 | exit 1 34 | elif [ `grep -c -F --regexp="'$version_number'" user_guide_src/source/conf.py` -ne 2 ] 35 | then 36 | echo "Provided version number doesn't match in user_guide_src/source/conf.py" 37 | exit 1 38 | elif [ `grep -c -F --regexp="$version_number (Current version) " user_guide_src/source/installation/downloads.rst` -ne 1 ] 39 | then 40 | echo "user_guide_src/source/installation/downloads.rst doesn't appear to contain a link for this version" 41 | exit 1 42 | elif [ ! -f "$upgrade_rst" ] 43 | then 44 | echo "${upgrade_rst} doesn't exist" 45 | exit 1 46 | fi 47 | 48 | echo "Running tests ..." 49 | 50 | cd tests/ 51 | phpunit 52 | 53 | if [ $? -ne 0 ] 54 | then 55 | echo "Build FAILED!" 56 | exit 1 57 | fi 58 | 59 | cd .. 60 | cd user_guide_src/ 61 | 62 | echo "" 63 | echo "Building HTML docs; please check output for warnings ..." 64 | echo "" 65 | 66 | make html 67 | 68 | echo "" 69 | 70 | if [ $? -ne 0 ] 71 | then 72 | echo "Build FAILED!" 73 | exit 1 74 | fi 75 | 76 | echo "Building EPUB docs; please check output for warnings ..." 77 | echo "" 78 | 79 | make epub 80 | 81 | echo "" 82 | 83 | if [ $? -ne 0 ] 84 | then 85 | echo "Build FAILED!" 86 | exit 1 87 | fi 88 | 89 | cd .. 90 | 91 | if [ -d user_guide/ ] 92 | then 93 | rm -r user_guide/ 94 | fi 95 | 96 | cp -r user_guide_src/build/html/ user_guide/ 97 | cp user_guide_src/build/epub/CodeIgniter.epub "CodeIgniter ${version_number}.epub" 98 | 99 | echo "Build complete." 100 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/config/doctypes.php: -------------------------------------------------------------------------------- 1 | '', 6 | 'xhtml1-strict' => '', 7 | 'xhtml1-trans' => '', 8 | 'xhtml1-frame' => '', 9 | 'xhtml-basic11' => '', 10 | 'html5' => '', 11 | 'html4-strict' => '', 12 | 'html4-trans' => '', 13 | 'html4-frame' => '', 14 | 'mathml1' => '', 15 | 'mathml2' => '', 16 | 'svg10' => '', 17 | 'svg11' => '', 18 | 'svg11-basic' => '', 19 | 'svg11-tiny' => '', 20 | 'xhtml-math-svg-xh' => '', 21 | 'xhtml-math-svg-sh' => '', 22 | 'xhtml-rdfa-1' => '', 23 | 'xhtml-rdfa-2' => '' 24 | ); 25 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/oci8/oci8_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/tests/Bootstrap.php: -------------------------------------------------------------------------------- 1 | `_ page. 20 | 21 | ************************** 22 | Changelog and New Features 23 | ************************** 24 | 25 | You can find a list of all changes for each release in the `user 26 | guide change log `_. 27 | 28 | ******************* 29 | Server Requirements 30 | ******************* 31 | 32 | PHP version 5.6 or newer is recommended. 33 | 34 | It should work on 5.4.8 as well, but we strongly advise you NOT to run 35 | such old versions of PHP, because of potential security and performance 36 | issues, as well as missing features. 37 | 38 | ************ 39 | Installation 40 | ************ 41 | 42 | Please see the `installation section `_ 43 | of the CodeIgniter User Guide. 44 | 45 | ******* 46 | License 47 | ******* 48 | 49 | Please see the `license 50 | agreement `_. 51 | 52 | ********* 53 | Resources 54 | ********* 55 | 56 | - `User Guide `_ 57 | - `Language File Translations `_ 58 | - `Community Forums `_ 59 | - `Community Wiki `_ 60 | - `Community Slack Channel `_ 61 | 62 | Report security issues to our `Security Panel `_ 63 | or via our `page on HackerOne `_, thank you. 64 | 65 | *************** 66 | Acknowledgement 67 | *************** 68 | 69 | The CodeIgniter team would like to thank EllisLab, all the 70 | contributors to the CodeIgniter project and you, the CodeIgniter user. 71 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/core/Model.php: -------------------------------------------------------------------------------- 1 | $key; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/pdo/subdrivers/pdo_odbc_forge.php: -------------------------------------------------------------------------------- 1 | db->hostname, $this->db->username, $this->db->password)) 58 | { 59 | $res = ibase_backup($service, $this->db->database, $filename.'.fbk'); 60 | 61 | // Close the service connection 62 | ibase_service_detach($service); 63 | return $res; 64 | } 65 | 66 | return FALSE; 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/unit_test_lang.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/sqlsrv/sqlsrv_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/postgre/postgre_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsupported_feature'); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/helpers/language_helper.php: -------------------------------------------------------------------------------- 1 | lang->line($line); 67 | 68 | if ($for !== '') 69 | { 70 | $line = ''; 71 | } 72 | 73 | return $line; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/odbc/odbc_forge.php: -------------------------------------------------------------------------------- 1 | db->data_cache['db_names'])) 57 | { 58 | return $this->db->data_cache['db_names']; 59 | } 60 | 61 | return $this->db->data_cache['db_names'] = cubrid_list_dbs($this->db->conn_id); 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * CUBRID Export 68 | * 69 | * @param array Preferences 70 | * @return mixed 71 | */ 72 | protected function _backup($params = array()) 73 | { 74 | // No SQL based support in CUBRID as of version 8.4.0. Database or 75 | // table backup can be performed using CUBRID Manager 76 | // database administration tool. 77 | return $this->db->display_error('db_unsupported_feature'); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/profiler_lang.php: -------------------------------------------------------------------------------- 1 | 'ae', 14 | '/ö|œ/' => 'oe', 15 | '/ü/' => 'ue', 16 | '/Ä/' => 'Ae', 17 | '/Ü/' => 'Ue', 18 | '/Ö/' => 'Oe', 19 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A', 20 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a', 21 | '/Б/' => 'B', 22 | '/б/' => 'b', 23 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 24 | '/ç|ć|ĉ|ċ|č/' => 'c', 25 | '/Д/' => 'D', 26 | '/д/' => 'd', 27 | '/Ð|Ď|Đ|Δ/' => 'Dj', 28 | '/ð|ď|đ|δ/' => 'dj', 29 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E', 30 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e', 31 | '/Ф/' => 'F', 32 | '/ф/' => 'f', 33 | '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G', 34 | '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g', 35 | '/Ĥ|Ħ/' => 'H', 36 | '/ĥ|ħ/' => 'h', 37 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I', 38 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i', 39 | '/Ĵ/' => 'J', 40 | '/ĵ/' => 'j', 41 | '/Ķ|Κ|К/' => 'K', 42 | '/ķ|κ|к/' => 'k', 43 | '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L', 44 | '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l', 45 | '/М/' => 'M', 46 | '/м/' => 'm', 47 | '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N', 48 | '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n', 49 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O', 50 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o', 51 | '/П/' => 'P', 52 | '/п/' => 'p', 53 | '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R', 54 | '/ŕ|ŗ|ř|ρ|р/' => 'r', 55 | '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S', 56 | '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's', 57 | '/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T', 58 | '/ț|ţ|ť|ŧ|т/' => 't', 59 | '/Þ|þ/' => 'th', 60 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U', 61 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u', 62 | '/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y', 63 | '/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y', 64 | '/В/' => 'V', 65 | '/в/' => 'v', 66 | '/Ŵ/' => 'W', 67 | '/ŵ/' => 'w', 68 | '/Ź|Ż|Ž|Ζ|З/' => 'Z', 69 | '/ź|ż|ž|ζ|з/' => 'z', 70 | '/Æ|Ǽ/' => 'AE', 71 | '/ß/' => 'ss', 72 | '/IJ/' => 'IJ', 73 | '/ij/' => 'ij', 74 | '/Œ/' => 'OE', 75 | '/ƒ/' => 'f', 76 | '/ξ/' => 'ks', 77 | '/π/' => 'p', 78 | '/β/' => 'v', 79 | '/μ/' => 'm', 80 | '/ψ/' => 'ps', 81 | '/Ё/' => 'Yo', 82 | '/ё/' => 'yo', 83 | '/Є/' => 'Ye', 84 | '/є/' => 'ye', 85 | '/Ї/' => 'Yi', 86 | '/Ж/' => 'Zh', 87 | '/ж/' => 'zh', 88 | '/Х/' => 'Kh', 89 | '/х/' => 'kh', 90 | '/Ц/' => 'Ts', 91 | '/ц/' => 'ts', 92 | '/Ч/' => 'Ch', 93 | '/ч/' => 'ch', 94 | '/Ш/' => 'Sh', 95 | '/ш/' => 'sh', 96 | '/Щ/' => 'Shch', 97 | '/щ/' => 'shch', 98 | '/Ъ|ъ|Ь|ь/' => '', 99 | '/Ю/' => 'Yu', 100 | '/ю/' => 'yu', 101 | '/Я/' => 'Ya', 102 | '/я/' => 'ya' 103 | ); 104 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/ftp_lang.php: -------------------------------------------------------------------------------- 1 | ', '"', "'", '-'), 76 | array('&', '<', '>', '"', ''', '-'), 77 | $str 78 | ); 79 | 80 | // Decode the temp markers back to entities 81 | $str = preg_replace('/'.$temp.'(\d+);/', '&#\\1;', $str); 82 | 83 | if ($protect_all === TRUE) 84 | { 85 | return preg_replace('/'.$temp.'(\w+);/', '&\\1;', $str); 86 | } 87 | 88 | return $str; 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/core/Controller.php: -------------------------------------------------------------------------------- 1 | $class) 74 | { 75 | $this->$var =& load_class($class); 76 | } 77 | 78 | $this->load =& load_class('Loader', 'core'); 79 | $this->load->initialize(); 80 | log_message('info', 'Controller Class Initialized'); 81 | } 82 | 83 | // -------------------------------------------------------------------- 84 | 85 | /** 86 | * Get the CI singleton 87 | * 88 | * @static 89 | * @return object 90 | */ 91 | public static function &get_instance() 92 | { 93 | return self::$instance; 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/config/migration.php: -------------------------------------------------------------------------------- 1 | migration->current() this is the version that schema will 69 | | be upgraded / downgraded to. 70 | | 71 | */ 72 | $config['migration_version'] = 0; 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Migrations Path 77 | |-------------------------------------------------------------------------- 78 | | 79 | | Path to your migrations folder. 80 | | Typically, it will be within your application path. 81 | | Also, writing permission is required within the migrations path. 82 | | 83 | */ 84 | $config['migration_path'] = APPPATH.'migrations/'; 85 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/calendar_lang.php: -------------------------------------------------------------------------------- 1 | lang->load('number'); 65 | 66 | if ($num >= 1000000000000) 67 | { 68 | $num = round($num / 1099511627776, $precision); 69 | $unit = $CI->lang->line('terabyte_abbr'); 70 | } 71 | elseif ($num >= 1000000000) 72 | { 73 | $num = round($num / 1073741824, $precision); 74 | $unit = $CI->lang->line('gigabyte_abbr'); 75 | } 76 | elseif ($num >= 1000000) 77 | { 78 | $num = round($num / 1048576, $precision); 79 | $unit = $CI->lang->line('megabyte_abbr'); 80 | } 81 | elseif ($num >= 1000) 82 | { 83 | $num = round($num / 1024, $precision); 84 | $unit = $CI->lang->line('kilobyte_abbr'); 85 | } 86 | else 87 | { 88 | $unit = $CI->lang->line('bytes'); 89 | return number_format($num).' '.$unit; 90 | } 91 | 92 | return number_format($num, $precision).' '.$unit; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/upload_lang.php: -------------------------------------------------------------------------------- 1 | ci_instance(); 11 | return $test; 12 | } 13 | } 14 | 15 | // -------------------------------------------------------------------- 16 | 17 | if ( ! function_exists('get_config')) 18 | { 19 | function &get_config() 20 | { 21 | $test = CI_TestCase::instance(); 22 | $config = $test->ci_get_config(); 23 | return $config; 24 | } 25 | } 26 | 27 | if ( ! function_exists('config_item')) 28 | { 29 | function config_item($item) 30 | { 31 | $config =& get_config(); 32 | 33 | if ( ! isset($config[$item])) 34 | { 35 | return NULL; 36 | } 37 | 38 | return $config[$item]; 39 | } 40 | } 41 | 42 | if ( ! function_exists('get_mimes')) 43 | { 44 | /** 45 | * Returns the MIME types array from config/mimes.php 46 | * 47 | * @return array 48 | */ 49 | function &get_mimes() 50 | { 51 | static $_mimes = array(); 52 | 53 | if (empty($_mimes)) 54 | { 55 | $path = realpath(PROJECT_BASE.'application/config/mimes.php'); 56 | if (is_file($path)) 57 | { 58 | $_mimes = include($path); 59 | } 60 | } 61 | 62 | return $_mimes; 63 | } 64 | } 65 | 66 | // -------------------------------------------------------------------- 67 | 68 | /* 69 | if ( ! function_exists('load_class')) 70 | { 71 | function load_class($class, $directory = 'libraries', $prefix = 'CI_') 72 | { 73 | if ($directory !== 'core' OR $prefix !== 'CI_') 74 | { 75 | throw new Exception('Not Implemented: Non-core load_class()'); 76 | } 77 | 78 | $test = CI_TestCase::instance(); 79 | 80 | $obj =& $test->ci_core_class($class); 81 | 82 | if (is_string($obj)) 83 | { 84 | throw new Exception('Bad Isolation: Use ci_set_core_class to set '.$class); 85 | } 86 | 87 | return $obj; 88 | } 89 | } 90 | */ 91 | 92 | // Clean up error messages 93 | // -------------------------------------------------------------------- 94 | 95 | if ( ! function_exists('show_error')) 96 | { 97 | function show_error($message, $status_code = 500, $heading = 'An Error Was Encountered') 98 | { 99 | throw new RuntimeException('CI Error: '.$message); 100 | } 101 | } 102 | 103 | if ( ! function_exists('show_404')) 104 | { 105 | function show_404($page = '', $log_error = TRUE) 106 | { 107 | throw new RuntimeException('CI Error: 404'); 108 | } 109 | } 110 | 111 | if ( ! function_exists('_exception_handler')) 112 | { 113 | function _exception_handler($severity, $message, $filepath, $line) 114 | { 115 | throw new RuntimeException('CI Exception: '.$message.' | '.$filepath.' | '.$line); 116 | } 117 | } 118 | 119 | // We assume a few things about our environment ... 120 | // -------------------------------------------------------------------- 121 | if ( ! function_exists('is_loaded')) 122 | { 123 | function &is_loaded() 124 | { 125 | $loaded = array(); 126 | return $loaded; 127 | } 128 | } 129 | 130 | if ( ! function_exists('log_message')) 131 | { 132 | function log_message($level, $message) 133 | { 134 | return TRUE; 135 | } 136 | } 137 | 138 | if ( ! function_exists('set_status_header')) 139 | { 140 | function set_status_header($code = 200, $text = '') 141 | { 142 | return TRUE; 143 | } 144 | } 145 | 146 | if ( ! function_exists('is_cli')) 147 | { 148 | // In order to test HTTP functionality, we need to lie about this 149 | function is_cli() 150 | { 151 | return FALSE; 152 | } 153 | } -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/helpers/typography_helper.php: -------------------------------------------------------------------------------- 1 | load->library('typography'); 64 | return $CI->typography->nl2br_except_pre($str); 65 | } 66 | } 67 | 68 | // ------------------------------------------------------------------------ 69 | 70 | if ( ! function_exists('auto_typography')) 71 | { 72 | /** 73 | * Auto Typography Wrapper Function 74 | * 75 | * @param string $str 76 | * @param bool $reduce_linebreaks = FALSE whether to reduce multiple instances of double newlines to two 77 | * @return string 78 | */ 79 | function auto_typography($str, $reduce_linebreaks = FALSE) 80 | { 81 | $CI =& get_instance(); 82 | $CI->load->library('typography'); 83 | return $CI->typography->auto_typography($str, $reduce_linebreaks); 84 | } 85 | } 86 | 87 | // -------------------------------------------------------------------- 88 | 89 | if ( ! function_exists('entity_decode')) 90 | { 91 | /** 92 | * HTML Entities Decode 93 | * 94 | * This function is a replacement for html_entity_decode() 95 | * 96 | * @param string 97 | * @param string 98 | * @return string 99 | */ 100 | function entity_decode($str, $charset = NULL) 101 | { 102 | return get_instance()->security->entity_decode($str, $charset); 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/helpers/security_helper.php: -------------------------------------------------------------------------------- 1 | security->xss_clean($str, $is_image); 64 | } 65 | } 66 | 67 | // ------------------------------------------------------------------------ 68 | 69 | if ( ! function_exists('sanitize_filename')) 70 | { 71 | /** 72 | * Sanitize Filename 73 | * 74 | * @param string 75 | * @return string 76 | */ 77 | function sanitize_filename($filename) 78 | { 79 | return get_instance()->security->sanitize_filename($filename); 80 | } 81 | } 82 | 83 | // ------------------------------------------------------------------------ 84 | 85 | if ( ! function_exists('strip_image_tags')) 86 | { 87 | /** 88 | * Strip Image Tags 89 | * 90 | * @param string 91 | * @return string 92 | */ 93 | function strip_image_tags($str) 94 | { 95 | return get_instance()->security->strip_image_tags($str); 96 | } 97 | } 98 | 99 | // ------------------------------------------------------------------------ 100 | 101 | if ( ! function_exists('encode_php_tags')) 102 | { 103 | /** 104 | * Convert PHP tags to entities 105 | * 106 | * @param string 107 | * @return string 108 | */ 109 | function encode_php_tags($str) 110 | { 111 | return str_replace(array(''), array('<?', '?>'), $str); 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/helpers/directory_helper.php: -------------------------------------------------------------------------------- 1 | 0) && is_dir($source_dir.$file)) 86 | { 87 | $filedata[$file] = directory_map($source_dir.$file, $new_depth, $hidden); 88 | } 89 | else 90 | { 91 | $filedata[] = $file; 92 | } 93 | } 94 | 95 | closedir($fp); 96 | return $filedata; 97 | } 98 | 99 | return FALSE; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/imglib_lang.php: -------------------------------------------------------------------------------- 1 | config = $config; 29 | } 30 | 31 | /** 32 | * Build DSN connection string for DB driver instantiate process 33 | * 34 | * @param string Group name 35 | * @return string DSN Connection string 36 | */ 37 | public function set_dsn($group = 'default') 38 | { 39 | if ( ! isset($this->config[$group])) 40 | { 41 | throw new InvalidArgumentException('Group '.$group.' not exists'); 42 | } 43 | 44 | self::$dbdriver = $this->config[$group]['dbdriver']; 45 | if (isset($this->config[$group]['subdriver'])) 46 | { 47 | self::$subdriver = $this->config[$group]['subdriver']; 48 | } 49 | 50 | $params = array( 51 | 'dbprefix' => '', 52 | 'pconnect' => FALSE, 53 | 'db_debug' => FALSE, 54 | 'cache_on' => FALSE, 55 | 'cachedir' => '', 56 | 'char_set' => 'utf8', 57 | 'dbcollat' => 'utf8_general_ci', 58 | 'swap_pre' => '', 59 | 'stricton' => FALSE 60 | ); 61 | 62 | $config = array_merge($this->config[$group], $params); 63 | $dsnstring = empty($config['dsn']) ? FALSE : $config['dsn']; 64 | $subdriver = empty($config['subdriver']) ? FALSE: $config['subdriver']; 65 | $failover = empty($config['failover']) ? FALSE : $config['failover']; 66 | 67 | $dsn = $config['dbdriver'].'://'.$config['username'].':'.$config['password'] 68 | .'@'.$config['hostname'].'/'.$config['database']; 69 | 70 | // Build the parameter 71 | $other_params = array_slice($config, 6); 72 | if ($dsnstring) $other_params['dsn'] = $dsnstring; 73 | if ($subdriver) $other_params['subdriver'] = $subdriver; 74 | if ($failover) $other_params['failover'] = $failover; 75 | 76 | return $dsn.'?'.http_build_query($other_params); 77 | } 78 | 79 | /** 80 | * Return a database config array 81 | * 82 | * @see ./config 83 | * @param string Driver based configuration 84 | * @return array 85 | */ 86 | public static function config($driver) 87 | { 88 | $dir = realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR; 89 | return include($dir.'config'.DIRECTORY_SEPARATOR.$driver.'.php'); 90 | } 91 | 92 | /** 93 | * Main DB method wrapper 94 | * 95 | * @param string Group or DSN string 96 | * @param bool 97 | * @return object 98 | */ 99 | public static function DB($group, $query_builder = FALSE) 100 | { 101 | // Create dummy driver and builder files to "load" - the mocks have 102 | // already triggered autoloading of the real files 103 | $case = CI_TestCase::instance(); 104 | $driver = self::$dbdriver; 105 | $subdriver = self::$subdriver; 106 | $case->ci_vfs_create(array( 107 | 'DB_driver.php' => '', 108 | 'DB_result.php' => '', 109 | 'DB_forge.php' => '', 110 | 'DB_query_builder.php' => '' 111 | ), '', $case->ci_base_root, 'database'); 112 | if (file_exists(SYSTEM_PATH.'database/drivers/'.$driver.'/'.$driver.'_driver.php')) 113 | { 114 | $case->ci_vfs_create(array( 115 | $driver.'_driver.php' => '', 116 | $driver.'_result.php' => '', 117 | $driver.'_forge.php' => '' 118 | ), '', $case->ci_base_root, 'database/drivers/'.$driver); 119 | } 120 | if ($subdriver) 121 | { 122 | $case->ci_vfs_create(array( 123 | $driver.'_'.$subdriver.'_driver.php' => '', 124 | $driver.'_'.$subdriver.'_forge.php' => '' 125 | ), '', $case->ci_base_root, 'database/drivers/'.$driver.'/subdrivers'); 126 | } 127 | 128 | include_once(SYSTEM_PATH.'database/DB.php'); 129 | 130 | try 131 | { 132 | $db = DB($group, $query_builder); 133 | } 134 | catch (Exception $e) 135 | { 136 | throw new RuntimeException($e->getMessage()); 137 | } 138 | 139 | return $db; 140 | } 141 | 142 | } -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/helpers/cookie_helper.php: -------------------------------------------------------------------------------- 1 | input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure, $httponly); 74 | } 75 | } 76 | 77 | // -------------------------------------------------------------------- 78 | 79 | if ( ! function_exists('get_cookie')) 80 | { 81 | /** 82 | * Fetch an item from the COOKIE array 83 | * 84 | * @param string 85 | * @param bool 86 | * @return mixed 87 | */ 88 | function get_cookie($index, $xss_clean = FALSE) 89 | { 90 | $prefix = isset($_COOKIE[$index]) ? '' : config_item('cookie_prefix'); 91 | return get_instance()->input->cookie($prefix.$index, $xss_clean); 92 | } 93 | } 94 | 95 | // -------------------------------------------------------------------- 96 | 97 | if ( ! function_exists('delete_cookie')) 98 | { 99 | /** 100 | * Delete a COOKIE 101 | * 102 | * @param mixed 103 | * @param string the cookie domain. Usually: .yourdomain.com 104 | * @param string the cookie path 105 | * @param string the cookie prefix 106 | * @return void 107 | */ 108 | function delete_cookie($name, $domain = '', $path = '/', $prefix = '') 109 | { 110 | set_cookie($name, '', '', $domain, $path, $prefix); 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/core/compat/standard.php: -------------------------------------------------------------------------------- 1 | =')) 30 | { 31 | error_reporting(E_ALL & ~E_DEPRECATED); 32 | } 33 | 34 | $config = Mock_Database_DB::config($driver); 35 | $connection = new Mock_Database_DB($config); 36 | $db = Mock_Database_DB::DB($connection->set_dsn($driver), TRUE); 37 | 38 | CI_TestCase::instance()->ci_instance_var('db', $db); 39 | 40 | $loader = new CI_Loader(); 41 | $loader->dbforge(); 42 | $forge = CI_TestCase::instance()->ci_instance_var('dbforge'); 43 | 44 | self::$db = $db; 45 | self::$forge = $forge; 46 | self::$driver = $driver; 47 | } 48 | 49 | return self::$db; 50 | } 51 | 52 | /** 53 | * Create the dummy tables 54 | * 55 | * @return void 56 | */ 57 | public static function create_tables() 58 | { 59 | // User Table 60 | self::$forge->add_field(array( 61 | 'id' => array( 62 | 'type' => 'INTEGER', 63 | 'constraint' => 3 64 | ), 65 | 'name' => array( 66 | 'type' => 'VARCHAR', 67 | 'constraint' => 40 68 | ), 69 | 'email' => array( 70 | 'type' => 'VARCHAR', 71 | 'constraint' => 100 72 | ), 73 | 'country' => array( 74 | 'type' => 'VARCHAR', 75 | 'constraint' => 40 76 | ) 77 | )); 78 | self::$forge->add_key('id', TRUE); 79 | self::$forge->create_table('user', TRUE); 80 | 81 | // Job Table 82 | self::$forge->add_field(array( 83 | 'id' => array( 84 | 'type' => 'INTEGER', 85 | 'constraint' => 3 86 | ), 87 | 'name' => array( 88 | 'type' => 'VARCHAR', 89 | 'constraint' => 40 90 | ), 91 | 'description' => array( 92 | 'type' => 'TEXT' 93 | ) 94 | )); 95 | self::$forge->add_key('id', TRUE); 96 | self::$forge->create_table('job', TRUE); 97 | 98 | // Misc Table 99 | self::$forge->add_field(array( 100 | 'id' => array( 101 | 'type' => 'INTEGER', 102 | 'constraint' => 3 103 | ), 104 | 'key' => array( 105 | 'type' => 'VARCHAR', 106 | 'constraint' => 40 107 | ), 108 | 'value' => array( 109 | 'type' => 'TEXT' 110 | ) 111 | )); 112 | self::$forge->add_key('id', TRUE); 113 | self::$forge->create_table('misc', TRUE); 114 | } 115 | 116 | /** 117 | * Create the dummy datas 118 | * 119 | * @return void 120 | */ 121 | public static function create_data() 122 | { 123 | // Job Data 124 | $data = array( 125 | 'user' => array( 126 | array('id' => 1, 'name' => 'Derek Jones', 'email' => 'derek@world.com', 'country' => 'US'), 127 | array('id' => 2, 'name' => 'Ahmadinejad', 'email' => 'ahmadinejad@world.com', 'country' => 'Iran'), 128 | array('id' => 3, 'name' => 'Richard A Causey', 'email' => 'richard@world.com', 'country' => 'US'), 129 | array('id' => 4, 'name' => 'Chris Martin', 'email' => 'chris@world.com', 'country' => 'UK') 130 | ), 131 | 'job' => array( 132 | array('id' => 1, 'name' => 'Developer', 'description' => 'Awesome job, but sometimes makes you bored'), 133 | array('id' => 2, 'name' => 'Politician', 'description' => 'This is not really a job'), 134 | array('id' => 3, 'name' => 'Accountant', 'description' => 'Boring job, but you will get free snack at lunch'), 135 | array('id' => 4, 'name' => 'Musician', 'description' => 'Only Coldplay can actually called Musician') 136 | ), 137 | 'misc' => array( 138 | array('id' => 1, 'key' => '\\xxxfoo456', 'value' => 'Entry with \\xxx'), 139 | array('id' => 2, 'key' => '\\%foo456', 'value' => 'Entry with \\%'), 140 | array('id' => 3, 'key' => 'spaces and tabs', 'value' => ' One two three tab') 141 | ) 142 | ); 143 | 144 | foreach ($data as $table => $dummy_data) 145 | { 146 | self::$db->truncate($table); 147 | 148 | foreach ($dummy_data as $single_dummy_data) 149 | { 150 | self::$db->insert($table, $single_dummy_data); 151 | } 152 | } 153 | } 154 | 155 | } 156 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/config/constants.php: -------------------------------------------------------------------------------- 1 | marker[$name] = microtime(TRUE); 73 | } 74 | 75 | // -------------------------------------------------------------------- 76 | 77 | /** 78 | * Elapsed time 79 | * 80 | * Calculates the time difference between two marked points. 81 | * 82 | * If the first parameter is empty this function instead returns the 83 | * {elapsed_time} pseudo-variable. This permits the full system 84 | * execution time to be shown in a template. The output class will 85 | * swap the real value for this variable. 86 | * 87 | * @param string $point1 A particular marked point 88 | * @param string $point2 A particular marked point 89 | * @param int $decimals Number of decimal places 90 | * 91 | * @return string Calculated elapsed time on success, 92 | * an '{elapsed_string}' if $point1 is empty 93 | * or an empty string if $point1 is not found. 94 | */ 95 | public function elapsed_time($point1 = '', $point2 = '', $decimals = 4) 96 | { 97 | if ($point1 === '') 98 | { 99 | return '{elapsed_time}'; 100 | } 101 | 102 | if ( ! isset($this->marker[$point1])) 103 | { 104 | return ''; 105 | } 106 | 107 | if ( ! isset($this->marker[$point2])) 108 | { 109 | $this->marker[$point2] = microtime(TRUE); 110 | } 111 | 112 | return number_format($this->marker[$point2] - $this->marker[$point1], $decimals); 113 | } 114 | 115 | // -------------------------------------------------------------------- 116 | 117 | /** 118 | * Memory Usage 119 | * 120 | * Simply returns the {memory_usage} marker. 121 | * 122 | * This permits it to be put it anywhere in a template 123 | * without the memory being calculated until the end. 124 | * The output class will swap the real value for this variable. 125 | * 126 | * @return string '{memory_usage}' 127 | */ 128 | public function memory_usage() 129 | { 130 | return '{memory_usage}'; 131 | } 132 | 133 | } 134 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/application/config/autoload.php: -------------------------------------------------------------------------------- 1 | 'ua'); 60 | */ 61 | $autoload['libraries'] = array('form_validation', 'database'); 62 | 63 | /* 64 | | ------------------------------------------------------------------- 65 | | Auto-load Drivers 66 | | ------------------------------------------------------------------- 67 | | These classes are located in system/libraries/ or in your 68 | | application/libraries/ directory, but are also placed inside their 69 | | own subdirectory and they extend the CI_Driver_Library class. They 70 | | offer multiple interchangeable driver options. 71 | | 72 | | Prototype: 73 | | 74 | | $autoload['drivers'] = array('cache'); 75 | | 76 | | You can also supply an alternative property name to be assigned in 77 | | the controller: 78 | | 79 | | $autoload['drivers'] = array('cache' => 'cch'); 80 | | 81 | */ 82 | $autoload['drivers'] = array(); 83 | 84 | /* 85 | | ------------------------------------------------------------------- 86 | | Auto-load Helper Files 87 | | ------------------------------------------------------------------- 88 | | Prototype: 89 | | 90 | | $autoload['helper'] = array('url', 'file'); 91 | */ 92 | $autoload['helper'] = array('url', 'form'); 93 | 94 | /* 95 | | ------------------------------------------------------------------- 96 | | Auto-load Config files 97 | | ------------------------------------------------------------------- 98 | | Prototype: 99 | | 100 | | $autoload['config'] = array('config1', 'config2'); 101 | | 102 | | NOTE: This item is intended for use ONLY if you have created custom 103 | | config files. Otherwise, leave it blank. 104 | | 105 | */ 106 | $autoload['config'] = array(); 107 | 108 | /* 109 | | ------------------------------------------------------------------- 110 | | Auto-load Language files 111 | | ------------------------------------------------------------------- 112 | | Prototype: 113 | | 114 | | $autoload['language'] = array('lang1', 'lang2'); 115 | | 116 | | NOTE: Do not include the "_lang" part of your file. For example 117 | | "codeigniter_lang.php" would be referenced as array('codeigniter'); 118 | | 119 | */ 120 | $autoload['language'] = array(); 121 | 122 | /* 123 | | ------------------------------------------------------------------- 124 | | Auto-load Models 125 | | ------------------------------------------------------------------- 126 | | Prototype: 127 | | 128 | | $autoload['model'] = array('first_model', 'second_model'); 129 | | 130 | | You can also supply an alternative model name to be assigned 131 | | in the controller: 132 | | 133 | | $autoload['model'] = array('first_model' => 'first'); 134 | */ 135 | $autoload['model'] = array(); 136 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/database/drivers/pdo/subdrivers/pdo_ibm_forge.php: -------------------------------------------------------------------------------- 1 | 'INTEGER', 63 | 'INT' => 'BIGINT', 64 | 'INTEGER' => 'BIGINT' 65 | ); 66 | 67 | /** 68 | * DEFAULT value representation in CREATE/ALTER TABLE statements 69 | * 70 | * @var string 71 | */ 72 | protected $_default = FALSE; 73 | 74 | // -------------------------------------------------------------------- 75 | 76 | /** 77 | * ALTER TABLE 78 | * 79 | * @param string $alter_type ALTER type 80 | * @param string $table Table name 81 | * @param mixed $field Column definition 82 | * @return string|string[] 83 | */ 84 | protected function _alter_table($alter_type, $table, $field) 85 | { 86 | if ($alter_type === 'CHANGE') 87 | { 88 | $alter_type = 'MODIFY'; 89 | } 90 | 91 | return parent::_alter_table($alter_type, $table, $field); 92 | } 93 | 94 | // -------------------------------------------------------------------- 95 | 96 | /** 97 | * Field attribute TYPE 98 | * 99 | * Performs a data type mapping between different databases. 100 | * 101 | * @param array &$attributes 102 | * @return void 103 | */ 104 | protected function _attr_type(&$attributes) 105 | { 106 | switch (strtoupper($attributes['TYPE'])) 107 | { 108 | case 'TINYINT': 109 | $attributes['TYPE'] = 'SMALLINT'; 110 | $attributes['UNSIGNED'] = FALSE; 111 | return; 112 | case 'MEDIUMINT': 113 | $attributes['TYPE'] = 'INTEGER'; 114 | $attributes['UNSIGNED'] = FALSE; 115 | return; 116 | default: return; 117 | } 118 | } 119 | 120 | // -------------------------------------------------------------------- 121 | 122 | /** 123 | * Field attribute UNIQUE 124 | * 125 | * @param array &$attributes 126 | * @param array &$field 127 | * @return void 128 | */ 129 | protected function _attr_unique(&$attributes, &$field) 130 | { 131 | if ( ! empty($attributes['UNIQUE']) && $attributes['UNIQUE'] === TRUE) 132 | { 133 | $field['unique'] = ' UNIQUE'; 134 | 135 | // UNIQUE must be used with NOT NULL 136 | $field['null'] = ' NOT NULL'; 137 | } 138 | } 139 | 140 | // -------------------------------------------------------------------- 141 | 142 | /** 143 | * Field attribute AUTO_INCREMENT 144 | * 145 | * @param array &$attributes 146 | * @param array &$field 147 | * @return void 148 | */ 149 | protected function _attr_auto_increment(&$attributes, &$field) 150 | { 151 | // Not supported 152 | } 153 | 154 | } 155 | -------------------------------------------------------------------------------- /RAW- codeigniterProject/system/language/english/form_validation_lang.php: -------------------------------------------------------------------------------- 1 | result_id); 59 | } 60 | 61 | // -------------------------------------------------------------------- 62 | 63 | /** 64 | * Fetch Field Names 65 | * 66 | * Generates an array of column names 67 | * 68 | * @return array 69 | */ 70 | public function list_fields() 71 | { 72 | $field_names = array(); 73 | for ($i = 0, $num_fields = $this->num_fields(); $i < $num_fields; $i++) 74 | { 75 | $info = ibase_field_info($this->result_id, $i); 76 | $field_names[] = $info['name']; 77 | } 78 | 79 | return $field_names; 80 | } 81 | 82 | // -------------------------------------------------------------------- 83 | 84 | /** 85 | * Field data 86 | * 87 | * Generates an array of objects containing field meta-data 88 | * 89 | * @return array 90 | */ 91 | public function field_data() 92 | { 93 | $retval = array(); 94 | for ($i = 0, $c = $this->num_fields(); $i < $c; $i++) 95 | { 96 | $info = ibase_field_info($this->result_id, $i); 97 | 98 | $retval[$i] = new stdClass(); 99 | $retval[$i]->name = $info['name']; 100 | $retval[$i]->type = $info['type']; 101 | $retval[$i]->max_length = $info['length']; 102 | } 103 | 104 | return $retval; 105 | } 106 | 107 | // -------------------------------------------------------------------- 108 | 109 | /** 110 | * Free the result 111 | * 112 | * @return void 113 | */ 114 | public function free_result() 115 | { 116 | ibase_free_result($this->result_id); 117 | } 118 | 119 | // -------------------------------------------------------------------- 120 | 121 | /** 122 | * Result - associative array 123 | * 124 | * Returns the result set as an array 125 | * 126 | * @return array 127 | */ 128 | protected function _fetch_assoc() 129 | { 130 | return ibase_fetch_assoc($this->result_id, IBASE_FETCH_BLOBS); 131 | } 132 | 133 | // -------------------------------------------------------------------- 134 | 135 | /** 136 | * Result - object 137 | * 138 | * Returns the result set as an object 139 | * 140 | * @param string $class_name 141 | * @return object 142 | */ 143 | protected function _fetch_object($class_name = 'stdClass') 144 | { 145 | $row = ibase_fetch_object($this->result_id, IBASE_FETCH_BLOBS); 146 | 147 | if ($class_name === 'stdClass' OR ! $row) 148 | { 149 | return $row; 150 | } 151 | 152 | $class_name = new $class_name(); 153 | foreach ($row as $key => $value) 154 | { 155 | $class_name->$key = $value; 156 | } 157 | 158 | return $class_name; 159 | } 160 | 161 | } 162 | --------------------------------------------------------------------------------