Example #1
0
|				 to the table name when using the  Active Record class
|	['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|	['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|	['cache_on'] TRUE/FALSE - Enables/disables query caching
|	['cachedir'] The path to the folder where cache files should be stored
|	['char_set'] The character set used in communicating with the database
|	['dbcollat'] The character collation used in communicating with the database
|
| The $active_group variable lets you choose which connection group to
| make active.  By default there is only one group (the "default" group).
|
| The $active_record variables lets you determine whether or not to load
| the active record class
*/
global $wpdb;
$active_group = "wordpress";
$active_record = TRUE;
$db['wordpress']['hostname'] = DB_HOST;
$db['wordpress']['username'] = DB_USER;
$db['wordpress']['password'] = DB_PASSWORD;
$db['wordpress']['database'] = DB_NAME;
$db['wordpress']['dbdriver'] = "mysql";
$db['wordpress']['dbprefix'] = $wpdb->prefix;
$db['wordpress']['pconnect'] = TRUE;
$db['wordpress']['db_debug'] = wpci_get_database_debugging_enabled();
$db['wordpress']['cache_on'] = FALSE;
$db['wordpress']['cachedir'] = "";
$db['wordpress']['char_set'] = "utf8";
$db['wordpress']['dbcollat'] = "utf8_general_ci";
/* End of file database.php */
/* Location: ./system/application/config/database.php */
Example #2
0
							<?php 
echo form_dropdown('application_debugging_enabled', array('' => 'Disabled&nbsp;&nbsp;', 1 => 'Enabled'), wpci_get_application_debugging_enabled());
?>
						</td>
					</tr>
					<tr>
						<th class="row">Logging Threshold</th>
						<td>
							<?php 
echo form_dropdown('logging_threshold', array('' => 'Debug when WP_DEBUG is TRUE', 0 => 'Logging disabled', 1 => 'Error Messages (including PHP errors)', 2 => 'Debug Messages', 3 => 'Informational Messages', 4 => 'All Messages'), wpci_get_logging_threshold());
?>
						</td>
					</tr>
					<tr>
						<th class="row">Database Debugging</th>
						<td>
							<?php 
echo form_dropdown('database_debugging_enabled', array('' => 'Disabled&nbsp;&nbsp;', 1 => 'Enabled'), wpci_get_database_debugging_enabled());
?>
						</td>
					</tr>
				</table>
			</div>
		</div>
		
		<p class="submit">
			<input class="button-primary icon-button" type="submit" value="Save Changes" name="Submit"/>
		</p>
		
	</form>
</div>