File: wp-config.php

package info (click to toggle)
wordpress 2.5.1-11%2Blenny4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,012 kB
  • ctags: 14,047
  • sloc: sh: 86,522; php: 48,548; makefile: 38; xml: 36
file content (21 lines) | stat: -rw-r--r-- 686 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/** WordPress's Debianised default master config file
Please do NOT edit and read about how the configuration works in the README.Debian
**/

    #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435289
    #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440572 (underscores, not dashes)
    $debian_server = preg_replace('/:.*/', "", $_SERVER['HTTP_HOST']);
    $debian_file = '/etc/wordpress/config-'.strtolower($debian_server).'.php';

    if (!file_exists($debian_file)) {
        header("HTTP/1.0 404 Not Found");
        echo "404 Not found";
    }

    require_once($debian_file);

define('ABSPATH', '/usr/share/wordpress/');

require_once(ABSPATH.'wp-settings.php');
?>