generated from washingtonstateuniversity/wsuwp-plugin-hrs-courses
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhrswp-sqlsrv-config-sample.php
61 lines (56 loc) · 2.26 KB
/
hrswp-sqlsrv-config-sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* The base configuration for the HRSWP Sqlsrv DB plugin.
*
* This file should be installed alongside the 'wp-config.php' file (either at
* root or one level above) and should share its restricted access (440 permission).
* It must belong to the web server group (such as 'apache') in order for WordPress
* to be able to read it.
*
* This file contains the following configurations:
*
* - SQL Server settings
*
* @package HRSWP_Sqlsrv_DB
*/
/*
* *** SAMPLE FILE ***
*
* To use:
*
* 1. Update this file with the desired server settings
* 2. Rename to 'hrswp-sqlsrv-config.php'.
* 3. Move to the same directory as the 'wp-config.php' file.
*/
/**
* EXAMPLE: Defining a database
*
* $this->add_database(
* 'database-handle', // A reference name for accessing this database, between 1 and 20 characters in length. Allowed characters: Lowercase alphanumeric characters, dashes and underscores, @see sanitize_key().
* array(
* 'mssql_db_name' => 'database_name_here', // The name of the database to connect to.
* 'mssql_db_user' => 'username_here', // The Microsoft SQL Server user for the database.
* 'mssql_db_password' => 'password_here', // The Microsoft SQL Server user password.
* 'mssql_db_host' => 'host_here', // The Microsoft SQL Server host.
* )
* );
*/
/**
* EXAMPLE: Associating tables with databases
*
* $this->set_table_names(
* 'database-handle', // The reference name of the database containing the table(s).
* array( // An array of one or more tables, each defined as its own array.
* array(
* 'label' => 'table-label', // A reference name for referring to this table. Allowed characters: Lowercase alphanumeric characters, dashes and underscores, @see sanitize_key().
* 'table_name' => 'database_table_name', // The name of the table in the database.
* ),
* array(
* 'label' => 'table-label-2',
* 'table_name' => 'another_table',
* ),
* )
* );
*/
// ** Microsoft SQL Server Configuration ** //
// Add your databases and define your tables here.