/[smecontribs]/rpms/smeserver-wordpress/contribs8/smeserver-wordpress-1.0-patch3.patch
ViewVC logotype

Contents of /rpms/smeserver-wordpress/contribs8/smeserver-wordpress-1.0-patch3.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Nov 5 06:51:47 2013 UTC (10 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-wordpress-1_0-13_el5_sme, smeserver-wordpress-1_0-12_el5_sme, smeserver-wordpress-1_2-9_el5_sme, smeserver-wordpress-1_2-7_el5_sme, HEAD
Changes since 1.1: +15 -2 lines
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-12.sme
- error in config file  [SME: 7978]
- also added more configuration option
- added /usr/share/php/ in phpbasedir [SME: 7977]
- patch cleanup, createlinks added to spec

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('DB_HOST', \'localhost\'); \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{'WpLang'} || '';
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 +
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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed