44 Commits

Author SHA1 Message Date
Fraenkiman
73153cffed The setup, blog and admin area is automatically determined by the user agent
Fixes #216
Fixes #197

The exchange between browser and server transmits information about the client and its capabilities in headers - user agent, what it accepts, and (what interests us) language. The browser sends the language information in a header.
These values indicate that the browser accepts, for example, US English (en-us) or German (de-de).
We make use of this. The setup of FlatPress now starts automatically in the language of the user. The determined language will also be used as default language for the FlatPressblog and the administration area until the user defines a language himself.

For the setup the language files 'el-gr','es-es','fr-fr' are still missing.
Therefore I limited the automatic determination of the language to 'cs-cz', 'de-de', 'en-us', 'it-it', 'ja-jp', 'nl-nl', 'pt-br'. See #239
2023-04-18 23:27:40 +02:00
Frank Hochmuth
fd0d631259
Merge branch 'flatpressblog:master' into upstream/issue197 2023-04-10 16:25:01 +02:00
Fraenkiman
f12ac4cc3a Update step2.lib.php
Adds the welcome entry to the Author FlatPress.
Also for the static pages menu and about.

See https://github.com/flatpressblog/flatpress/issues/99#issuecomment-1159540059
2023-03-27 01:41:31 +02:00
Fraenkiman
859a2d8ab8 Create lang.de-de.php
to avoid conflicts copied from #219
2023-03-24 23:41:09 +01:00
Frank Hochmuth
eee662da15
Delete lang.de-de.php
is fixed with #219
2023-03-24 23:23:28 +01:00
Fraenkiman
a9db325e1f Update lang.it-it.php 2023-03-02 00:44:48 +01:00
Fraenkiman
42b03966e4 Italian language file correction
Many thanks to eagleman
2023-03-02 00:16:50 +01:00
Frank Hochmuth
59285d4184
Merge branch 'flatpressblog:master' into upstream/issue197 2023-02-19 13:53:10 +01:00
azett
b60a51cf92 Little fixes in Italian language files by eagleman - thx! 2023-02-18 12:13:01 +01:00
Fraenkiman
2849e97311 Setup should use the user's browser language.
This closes issue #197

Please check if it works with php8.1. Tested with php 7.4

Update main.php

'el-gr','es-es','fr-fr' removed as browser language, because the FlatPress setup currently has no language files for it

Update lang.de-de.php

Update main.php

some code formatting
2023-01-29 03:16:47 +01:00
azett
5f23b4c2ea fixes #176, possible XSS in setup 2022-12-25 14:16:25 +01:00
azett
432b352c26 fixed Italian language pack by Giacomo Margarito - grazie mille! :) 2022-11-01 13:39:20 +01:00
azett
266b217161 Fixes #156 - thx @Fraenkiman 2022-10-02 12:49:24 +02:00
azett
f465c79470 Typo, see #99 2022-06-18 21:05:42 +02:00
azett
9a0c93de9e Added Dutch language pack by Macmee - hartelijk bedankt! 2021-06-03 14:12:43 +02:00
azett
43a7a43191 Italian language pack fix by Giacomo Margarito - grazie mille :) 2021-03-04 13:12:38 +01:00
azett
8ddd5a448f Added German setup file. 2021-02-20 12:50:59 +01:00
azett
aaf5d35c0e Added Czech lang files by Lubomír Ludvík for setup and Commentcenter plugin. Děkuji! :) 2021-02-20 11:17:03 +01:00
azett
27c3e825b3 Fixed Heredoc strings. Turns out, Heredoc syntax - https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc - only works with closing tags being the first characters of a line. Eclipse's reformatting and indention of the code does not seem to know that^^
Fix: Changed Heredoc strings to "normal" strings.
2021-02-13 13:47:18 +01:00
azett
e1e58d0a78 Italian language pack fix by Giacomo Margarito - grazie mille :) 2021-01-23 13:05:35 +01:00
azett
83e1644c0f Restored some changes from the last commit. Turns out, the HASHSALT_FILE is still used elsewhere ó_Ò 2020-12-19 19:25:52 +01:00
azett
f265b22b0b Fix for #59: Updated password hash algorithm from md5 to bcrypt (via password_hash() function). Thanks a lot, @axelhahn!
In detail: Added function io_delete_file(). Removed system_hashsalt_save(). Added password hash update mechanics to user_login().
2020-12-19 14:02:27 +01:00
azett
e65bb9c549 Added the Italian language pack by Giacomo Margarito - grazie mille! 2020-05-09 14:11:32 +02:00
azett
b2ed0e207d Added Brazilian Portuguese language pack by randy - thanks a lot!
Added Japanese setup translation by North Hill Work Studios - thanks as well!
Also: git:ignore for local test content folders
2020-04-17 12:16:45 +02:00
azett
e1c47d5b8c Setup sets date and FP version for the freshly created static pages. 2020-04-16 14:15:22 +02:00
azett
e4f542d5cd Hereby, I solemnly declare "Administration area" the official designation for our backend. #39 shall be deemed to be settled :D 2020-01-03 19:23:30 +01:00
azett
06482d9292 fixed some URLs here and there 2019-02-16 17:21:16 +01:00
azett
aab33288e0 Cleaned up the content of the default entry 2019-02-02 16:16:54 +01:00
azett
3d71168698 Installer doesn't call himself "experimental" anymore :) 2019-01-06 14:05:49 +01:00
Marc Thibeault
e44b503c0e Fixed links in default entry 2016-01-19 19:42:26 -05:00
MarcThibeault
14302c981c Add mention to GitHub in the default blog entry 2014-03-15 16:46:59 -04:00
real_nowhereman
f971cb7866 fix typos 2010-11-03 15:24:52 +00:00
real_nowhereman
7fc0909828 suppress deprecation warning 2009-09-28 22:13:00 +00:00
real_nowhereman
44168dda8e porting bracnch fixes to trunk, raising version number 2008-09-26 17:22:13 +00:00
real_nowhereman
29a9e6bbd1 suppressing "file not found" errors for indices, fall back to 404 error; correctly return seek position when inserting into SBPlusTrees 2008-09-08 15:20:07 +00:00
real_nowhereman
9ce8aacb2f fixes glitch with def-list in IE7 2008-03-19 16:22:15 +00:00
real_nowhereman
5c096dcd37 fixed typo 2008-02-28 14:32:18 +00:00
real_nowhereman
c0642e4f0f huge security commit, this should be an almost hassle-free hash salt: the salt is created on setup and then STORED in fp-content/config/hashsalt.conf.php
(you can change the name of the file from defaults.php); 

as salt is based on the path on the server, if you had to move to another directory or to another server, then you wouldn't be able to login anymore and you had to reinstall, now this shouldn't be needed anymore; moreover as this is now safe in a file we can add additional security by
* concatenating the default paths+random blog id to another random number, which is not written anywhere else
* changing the contents with your very own salt string: then re-run setup and overwrite your old user: the hashsalt won't be overwritten (this needs testing)
2008-02-10 14:20:09 +00:00
real_nowhereman
fbe0b42e25 fixed write checks and error reporting 2008-01-01 19:58:10 +00:00
real_nowhereman
725a70f1d0 finally moved from simple md5 to salted wp_hash ; please remember to REINSTALL and OVERWRITE your old user in order to be able to login ! 2008-01-01 09:34:41 +00:00
real_nowhereman
b0a4c92d4d "bbcode itself is a plugin" 2007-11-08 08:19:15 +00:00
real_nowhereman
3daa91a8a5 added a few lines to the sample entry 2007-11-02 17:00:25 +00:00
real_nowhereman
6be77d10df added sample content generation to setup, fixed h4 in leggero/res/common.css 2007-11-02 16:54:01 +00:00
real_nowhereman
a68630bf35 First revision of FlatPress Crescendo+1 ( 0.703+n :) ) 2007-10-30 10:30:07 +00:00