--- rpms/smeserver-wordpress/contribs8/smeserver-wordpress-1.0-patch3.patch 2013/11/05 06:29:51 1.1 +++ rpms/smeserver-wordpress/contribs8/smeserver-wordpress-1.0-patch3.patch 2013/11/05 06:51:47 1.2 @@ -4,7 +4,7 @@ diff -up smeserver-wordpress-1.0/root/et @@ -3,4 +3,19 @@ $OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n"; $OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n"; - $OUT .= "define('WPLANG', \'$wordpress{WpLang}\'); \n"; + $OUT .= "define('DB_HOST', \'localhost\'); \n"; -} \ Pas de fin de ligne à la fin du fichier. +} @@ -85,7 +85,7 @@ diff -up smeserver-wordpress-1.0/root/et + */ + +{ -+my $lang = $wordpress{'lang'} || ''; ++my $lang = $wordpress{'WpLang'} || ''; +$OUT .= "define('WPLANG', '$lang');\n"; +} + @@ -109,3 +109,16 @@ diff -up smeserver-wordpress-1.0/root/et +/** Sets up WordPress vars and included files. */ +require_once(ABSPATH . 'wp-settings.php'); + +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 +--- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress.patch3 2013-11-05 01:46:45.000000000 -0500 ++++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2013-11-05 01:48:24.000000000 -0500 +@@ -63,7 +63,7 @@ + $OUT .= "\n"; + $OUT .= "\n"; + $OUT .= " AddType application/x-httpd-php .php\n"; +- $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear\n"; ++ $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear:/usr/share/php/\n"; + $OUT .= " Options None\n"; + $OUT .= " order deny,allow\n"; + $OUT .= " deny from all\n"; +