1 |
unnilennium |
1.1 |
diff -up smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db.patch3 smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db |
2 |
|
|
--- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db.patch3 2013-11-05 00:29:11.000000000 -0500 |
3 |
|
|
+++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db 2013-11-05 00:56:08.000000000 -0500 |
4 |
|
|
@@ -3,4 +3,19 @@ |
5 |
|
|
$OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n"; |
6 |
|
|
$OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n"; |
7 |
|
|
$OUT .= "define('WPLANG', \'$wordpress{WpLang}\'); \n"; |
8 |
|
|
-} |
9 |
|
|
\ Pas de fin de ligne à la fin du fichier. |
10 |
|
|
+} |
11 |
|
|
+ |
12 |
|
|
+/** Database Charset to use in creating database tables. */ |
13 |
|
|
+define('DB_CHARSET', 'utf8'); |
14 |
|
|
+ |
15 |
|
|
+/** The Database Collate type. Don't change this if in doubt. */ |
16 |
|
|
+define('DB_COLLATE', ''); |
17 |
|
|
+ |
18 |
|
|
+/** |
19 |
|
|
+ * WordPress Database Table prefix. |
20 |
|
|
+ * |
21 |
|
|
+ * You can have multiple installations in one database if you give each a unique |
22 |
|
|
+ * prefix. Only numbers, letters, and underscores please! |
23 |
|
|
+ */ |
24 |
|
|
+$table_prefix = 'wp_'; |
25 |
|
|
+ |
26 |
|
|
diff -up smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist.patch3 smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist |
27 |
|
|
--- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist.patch3 2013-11-05 00:29:11.000000000 -0500 |
28 |
|
|
+++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 2013-11-05 01:08:29.000000000 -0500 |
29 |
|
|
@@ -1,3 +1,81 @@ |
30 |
|
|
+/**#@+ |
31 |
|
|
+ * Authentication Unique Keys and Salts. |
32 |
|
|
+ * |
33 |
|
|
+ * Change these to different unique phrases! |
34 |
|
|
+ * You can generate these using the @link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service |
35 |
|
|
+ * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. |
36 |
|
|
+ * |
37 |
|
|
+ * @since 2.6.0 |
38 |
|
|
+ */ |
39 |
|
|
{ |
40 |
|
|
- $OUT = "require_once('wp-config-sample.php');"; |
41 |
|
|
+my $pw=$wordpress{'phrase'} ||""; |
42 |
|
|
+ if ( $pw ne "" ) |
43 |
|
|
+ { |
44 |
|
|
+ if ( open( RANDOM, "/dev/urandom" ) ) |
45 |
|
|
+ { |
46 |
|
|
+ my $buf; |
47 |
|
|
+ # 57 bytes is a full line of Base64 coding, and contains |
48 |
|
|
+ # 456 bits of randomness - given a perfectly random /dev/random |
49 |
|
|
+ if ( read( RANDOM, $buf, 57 ) != 57 ) |
50 |
|
|
+ { |
51 |
|
|
+ warn("Short read from /dev/random: $!"); |
52 |
|
|
+ } |
53 |
|
|
+ else |
54 |
|
|
+ { |
55 |
|
|
+ $pw = encode_base64($buf); |
56 |
|
|
+ chomp $pw; |
57 |
|
|
+ } |
58 |
|
|
+ close RANDOM; |
59 |
|
|
+ } |
60 |
|
|
+ else |
61 |
|
|
+ { |
62 |
|
|
+ $pw= 'put your unique phrase here'; |
63 |
|
|
+ } |
64 |
|
|
+ } |
65 |
|
|
+ |
66 |
|
|
+$OUT .= "define('AUTH_KEY', '$pw'); |
67 |
|
|
+define('SECURE_AUTH_KEY', '$pw'); |
68 |
|
|
+define('LOGGED_IN_KEY', '$pw'); |
69 |
|
|
+define('NONCE_KEY', '$pw'); |
70 |
|
|
+define('AUTH_SALT', '$pw'); |
71 |
|
|
+define('SECURE_AUTH_SALT', '$pw'); |
72 |
|
|
+define('LOGGED_IN_SALT', '$pw'); |
73 |
|
|
+define('NONCE_SALT', '$pw');"; |
74 |
|
|
} |
75 |
|
|
+/**#@-*/ |
76 |
|
|
+ |
77 |
|
|
+ |
78 |
|
|
+/** |
79 |
|
|
+ * WordPress Localized Language, defaults to English. |
80 |
|
|
+ * |
81 |
|
|
+ * Change this to localize WordPress. A corresponding MO file for the chosen |
82 |
|
|
+ * language must be installed to wp-content/languages. For example, install |
83 |
|
|
+ * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German |
84 |
|
|
+ * language support. |
85 |
|
|
+ */ |
86 |
|
|
+ |
87 |
|
|
+{ |
88 |
|
|
+my $lang = $wordpress{'lang'} || ''; |
89 |
|
|
+$OUT .= "define('WPLANG', '$lang');\n"; |
90 |
|
|
+} |
91 |
|
|
+ |
92 |
|
|
+/** |
93 |
|
|
+ * For developers: WordPress debugging mode. |
94 |
|
|
+ * |
95 |
|
|
+ * Change this to true to enable the display of notices during development. |
96 |
|
|
+ * It is strongly recommended that plugin and theme developers use WP_DEBUG |
97 |
|
|
+ * in their development environments. |
98 |
|
|
+ */ |
99 |
|
|
+{ |
100 |
|
|
+my $debug = $wordpress{'debug'} || "false"; |
101 |
|
|
+$OUT .= "define('WP_DEBUG', $debug);\n"; |
102 |
|
|
+} |
103 |
|
|
+ |
104 |
|
|
+/* That's all, stop editing! Happy blogging. */ |
105 |
|
|
+ |
106 |
|
|
+/** Absolute path to the WordPress directory. */ |
107 |
|
|
+define('ABSPATH', '/usr/share/wordpress/'); |
108 |
|
|
+ |
109 |
|
|
+/** Sets up WordPress vars and included files. */ |
110 |
|
|
+require_once(ABSPATH . 'wp-settings.php'); |
111 |
|
|
+ |