]>
Commit | Line | Data |
---|---|---|
1b489482 ER |
1 | --- wordpress/wp-load.php~ 2009-03-20 10:38:16.000000000 +0200 |
2 | +++ wordpress/wp-load.php 2009-03-20 10:40:16.081599269 +0200 | |
3 | @@ -21,7 +21,12 @@ | |
4 | ||
5 | error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE); | |
6 | ||
7 | -if ( file_exists( ABSPATH . 'wp-config.php') ) { | |
8 | +if ( file_exists( '/etc/webapps/wordpress/wp-config.php') ) { | |
9 | + | |
10 | + /** The config file resides in WEBAPPS */ | |
11 | + require_once( '/etc/webapps/wordpress/wp-config.php' ); | |
12 | + | |
13 | +} elseif ( file_exists( ABSPATH . 'wp-config.php') ) { | |
14 | ||
15 | /** The config file resides in ABSPATH */ | |
16 | require_once( ABSPATH . 'wp-config.php' ); | |
17 | --- wordpress/wp-admin/setup-config.php~ 2009-03-20 10:38:16.000000000 +0200 | |
18 | +++ wordpress/wp-admin/setup-config.php 2009-03-20 10:42:40.461577381 +0200 | |
19 | @@ -155,7 +155,7 @@ | |
20 | if ( !empty($wpdb->error) ) | |
21 | wp_die($wpdb->error->get_error_message()); | |
22 | ||
23 | - $handle = fopen('../wp-config.php', 'w'); | |
24 | + $handle = fopen('/etc/webapps/wordpress/wp-config.php', 'w'); | |
25 | ||
26 | foreach ($configFile as $line_num => $line) { | |
27 | switch (substr($line,0,16)) { | |
28 | @@ -179,7 +179,6 @@ | |
29 | } | |
30 | } | |
31 | fclose($handle); | |
32 | - chmod('../wp-config.php', 0666); | |
33 | ||
34 | display_header(); | |
35 | ?> |