4 |
@@ -3,4 +3,19 @@ |
@@ -3,4 +3,19 @@ |
5 |
$OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n"; |
$OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n"; |
6 |
$OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n"; |
$OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n"; |
7 |
$OUT .= "define('WPLANG', \'$wordpress{WpLang}\'); \n"; |
$OUT .= "define('DB_HOST', \'localhost\'); \n"; |
8 |
-} |
-} |
9 |
\ Pas de fin de ligne à la fin du fichier. |
\ Pas de fin de ligne à la fin du fichier. |
10 |
+} |
+} |
85 |
+ */ |
+ */ |
86 |
+ |
+ |
87 |
+{ |
+{ |
88 |
+my $lang = $wordpress{'lang'} || ''; |
+my $lang = $wordpress{'WpLang'} || ''; |
89 |
+$OUT .= "define('WPLANG', '$lang');\n"; |
+$OUT .= "define('WPLANG', '$lang');\n"; |
90 |
+} |
+} |
91 |
+ |
+ |
109 |
+/** Sets up WordPress vars and included files. */ |
+/** Sets up WordPress vars and included files. */ |
110 |
+require_once(ABSPATH . 'wp-settings.php'); |
+require_once(ABSPATH . 'wp-settings.php'); |
111 |
+ |
+ |
112 |
|
diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress.patch3 smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress |
113 |
|
--- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress.patch3 2013-11-05 01:46:45.000000000 -0500 |
114 |
|
+++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2013-11-05 01:48:24.000000000 -0500 |
115 |
|
@@ -63,7 +63,7 @@ |
116 |
|
$OUT .= "\n"; |
117 |
|
$OUT .= "<Directory /usr/share/wordpress>\n"; |
118 |
|
$OUT .= " AddType application/x-httpd-php .php\n"; |
119 |
|
- $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear\n"; |
120 |
|
+ $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear:/usr/share/php/\n"; |
121 |
|
$OUT .= " Options None\n"; |
122 |
|
$OUT .= " order deny,allow\n"; |
123 |
|
$OUT .= " deny from all\n"; |
124 |
|
|