From 02af2d8b7639fdc18fba3d69a4ca0a3f5c92b948 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 14 Jan 2009 03:38:51 +0000 Subject: The installer. At this point, the core installs, the user module defines groups and users, but dies when attempting to create default permissions --- installer/views/database.php.php | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 installer/views/database.php.php (limited to 'installer/views') diff --git a/installer/views/database.php.php b/installer/views/database.php.php new file mode 100644 index 00000000..42268422 --- /dev/null +++ b/installer/views/database.php.php @@ -0,0 +1,44 @@ + 'mysql://dbuser:secret@localhost/kohana'\n"; +print " * character_set - Database character set\n"; +print " * table_prefix - Database table prefix\n"; +print " * object - Enable or disable object results\n"; +print " * cache - Enable or disable query caching\n"; +print " * escape - Enable automatic query builder escaping\n"; +print " */\n"; +print "\$config['default'] = array(\n"; +print " 'benchmark' => FALSE,\n"; +print " 'persistent' => FALSE,\n"; +print " 'connection' => array(\n"; +print " 'type' => '{$data['type']}',\n"; +print " 'user' => '{$data['user']}',\n"; +print " 'pass' => '{$data['password']}',\n"; +print " 'host' => '{$data['host']}',\n"; +print " 'port' => FALSE,\n"; +print " 'socket' => FALSE,\n"; +print " 'database' => '{$data['database']}'\n"; +print " ),\n"; +print " 'character_set' => 'utf8',\n"; +print " 'table_prefix' => '{$data['prefix']}',\n"; +print " 'object' => TRUE,\n"; +print " 'cache' => FALSE,\n"; +print " 'escape' => TRUE\n"; +print ");\n"; -- cgit v1.2.3