Rev 6 | Rev 9 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6 | Rev 8 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | * See the License for the specific language governing permissions and |
16 | * See the License for the specific language governing permissions and |
17 | * limitations under the License. |
17 | * limitations under the License. |
18 | */ |
18 | */ |
19 | 19 | ||
20 | require_once __DIR__.'/config.inc.php'; |
- | |
21 | - | ||
22 | $hostname = trim(file_get_contents('/etc/hostname')); |
20 | $hostname = trim(file_get_contents('/etc/hostname')); |
23 | 21 | ||
- | 22 | if (file_exists(__DIR__."/config_$hostname.inc.php")) { |
|
- | 23 | require_once __DIR__."/config_$hostname.inc.php"; |
|
- | 24 | } else { |
|
- | 25 | require_once __DIR__.'/config.inc.php'; |
|
- | 26 | } |
|
- | 27 | ||
24 | if (file_exists(__DIR__."/db_$hostname.inc.php")) { |
28 | if (file_exists(__DIR__."/db_$hostname.inc.php")) { |
25 | require_once __DIR__."/db_$hostname.inc.php"; |
29 | require_once __DIR__."/db_$hostname.inc.php"; |
26 | } else { |
30 | } else { |
27 | require_once __DIR__.'/db.inc.php'; |
31 | require_once __DIR__.'/db.inc.php'; |
28 | } |
32 | } |