database_sleuth 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'rubygems'
4
+ require 'database_sleuth'
5
+ require 'spec'
6
+ require 'spec/autorun'
7
+
8
+ Spec::Runner.configure do |config|
9
+
10
+ end
@@ -0,0 +1,76 @@
1
+ <?php
2
+ /**
3
+ * The base configurations of the WordPress.
4
+ *
5
+ * This file has the following configurations: MySQL settings, Table Prefix,
6
+ * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
7
+ * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
8
+ * wp-config.php} Codex page. You can get the MySQL settings from your web host.
9
+ *
10
+ * This file is used by the wp-config.php creation script during the
11
+ * installation. You don't have to use the web site, you can just copy this file
12
+ * to "wp-config.php" and fill in the values.
13
+ *
14
+ * @package WordPress
15
+ */
16
+
17
+ // ** MySQL settings - You can get this info from your web host ** //
18
+ /** The name of the database for WordPress */
19
+ define('DB_NAME', 'putyourdbnamehere');
20
+
21
+ /** MySQL database username */
22
+ define('DB_USER', 'usernamehere');
23
+
24
+ /** MySQL database password */
25
+ define('DB_PASSWORD', 'yourpasswordhere');
26
+
27
+ /** MySQL hostname */
28
+ define('DB_HOST', 'localhost');
29
+
30
+ /** Database Charset to use in creating database tables. */
31
+ define('DB_CHARSET', 'utf8');
32
+
33
+ /** The Database Collate type. Don't change this if in doubt. */
34
+ define('DB_COLLATE', '');
35
+
36
+ /**#@+
37
+ * Authentication Unique Keys.
38
+ *
39
+ * Change these to different unique phrases!
40
+ * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
41
+ *
42
+ * @since 2.6.0
43
+ */
44
+ define('AUTH_KEY', 'put your unique phrase here');
45
+ define('SECURE_AUTH_KEY', 'put your unique phrase here');
46
+ define('LOGGED_IN_KEY', 'put your unique phrase here');
47
+ define('NONCE_KEY', 'put your unique phrase here');
48
+ /**#@-*/
49
+
50
+ /**
51
+ * WordPress Database Table prefix.
52
+ *
53
+ * You can have multiple installations in one database if you give each a unique
54
+ * prefix. Only numbers, letters, and underscores please!
55
+ */
56
+ $table_prefix = 'wp_';
57
+
58
+ /**
59
+ * WordPress Localized Language, defaults to English.
60
+ *
61
+ * Change this to localize WordPress. A corresponding MO file for the chosen
62
+ * language must be installed to wp-content/languages. For example, install
63
+ * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
64
+ * language support.
65
+ */
66
+ define ('WPLANG', '');
67
+
68
+ /* That's all, stop editing! Happy blogging. */
69
+
70
+ /** WordPress absolute path to the Wordpress directory. */
71
+ if ( !defined('ABSPATH') )
72
+ define('ABSPATH', dirname(__FILE__) . '/');
73
+
74
+ /** Sets up WordPress vars and included files. */
75
+ require_once(ABSPATH . 'wp-settings.php');
76
+ ?>
@@ -0,0 +1,68 @@
1
+ <?php
2
+ /**
3
+ * dist-configure.php
4
+ *
5
+ * @package Configuration Settings
6
+ * @copyright Copyright 2003-2007 Zen Cart Development Team
7
+ * @copyright Portions Copyright 2003 osCommerce
8
+ * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
9
+ * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
10
+ * @private
11
+ */
12
+ // Define the webserver and path parameters
13
+ // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
14
+ // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
15
+ define('HTTP_SERVER', 'http://localhost');
16
+ define('HTTPS_SERVER', 'https://localhost');
17
+
18
+ // Use secure webserver for checkout procedure?
19
+ define('ENABLE_SSL', 'false');
20
+
21
+ // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
22
+
23
+ // * DIR_WS_* = Webserver directories (virtual/URL)
24
+ // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
25
+ define('DIR_WS_CATALOG', '/');
26
+ define('DIR_WS_HTTPS_CATALOG', '/');
27
+
28
+ define('DIR_WS_IMAGES', 'images/');
29
+ define('DIR_WS_INCLUDES', 'includes/');
30
+ define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
31
+ define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
32
+ define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
33
+ define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
34
+ define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
35
+ define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
36
+
37
+ define('DIR_WS_PHPBB', '/phpBB2/');
38
+
39
+ // * DIR_FS_* = Filesystem directories (local/physical)
40
+ //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
41
+ define('DIR_FS_CATALOG', '/');
42
+
43
+ define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
44
+ define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
45
+ define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
46
+ define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
47
+ define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
48
+
49
+ // define our database connection
50
+ define('DB_TYPE', 'mysql');
51
+ define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
52
+ define('DB_SERVER', 'localhost');
53
+ define('DB_SERVER_USERNAME', 'usernamehere');
54
+ define('DB_SERVER_PASSWORD', 'yourpasswordhere');
55
+ define('DB_DATABASE', 'putyourdbnamehere');
56
+ define('USE_PCONNECT', 'false');
57
+ define('STORE_SESSIONS', 'db');
58
+ // use 'db' for best support, or '' for file-based storage
59
+
60
+ // The next 2 "defines" are for SQL cache support.
61
+ // For SQL_CACHE_METHOD, you can select from: none, database, or file
62
+ // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
63
+ // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
64
+ // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
65
+ define('SQL_CACHE_METHOD', 'none');
66
+ define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');
67
+
68
+ ?>
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: database_sleuth
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - watsonian
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-01-27 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ description: Easily find database connection info from common web applications.
26
+ email: watsonian@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.rdoc
34
+ files:
35
+ - .document
36
+ - .gitignore
37
+ - LICENSE
38
+ - README.rdoc
39
+ - Rakefile
40
+ - VERSION
41
+ - lib/database_sleuth.rb
42
+ - spec/database_sleuth_spec.rb
43
+ - spec/drupal/sites/default/settings.php
44
+ - spec/gallery/config.php
45
+ - spec/joomla/configuration.php
46
+ - spec/mediawiki/LocalSettings.php
47
+ - spec/phpbb/config.php
48
+ - spec/spec.opts
49
+ - spec/spec_helper.rb
50
+ - spec/wordpress/wp-config.php
51
+ - spec/zencart/includes/configure.php
52
+ has_rdoc: true
53
+ homepage: http://github.com/watsonian/database_sleuth
54
+ licenses: []
55
+
56
+ post_install_message:
57
+ rdoc_options:
58
+ - --charset=UTF-8
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ requirements: []
74
+
75
+ rubyforge_project:
76
+ rubygems_version: 1.3.5
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: Easily find database connection info from common web applications.
80
+ test_files:
81
+ - spec/database_sleuth_spec.rb
82
+ - spec/spec_helper.rb