8 Commits

Author SHA1 Message Date
Dan Untenzu
96707e02b8 [FEATURE] Switch to PSR-2
Convert all PHP files to PSR-2, which defined
a basic Coding Style Guide for PHP projects.

Using the awesome friendsofphp/php-cs-fixer tool,
running with the @PSR2 ruleset.

1) script.php (no_spaces_after_function_name, braces)
2) f.php (indentation_type, no_spaces_after_function_name, braces)
3) install.php (indentation_type, function_declaration, elseif, no_spaces_after_function_name, braces)
4) lib/functions.php (no_spaces_inside_parenthesis, method_argument_space, function_declaration, elseif, no_spaces_after_function_name, lowercase_constants, lowercase_keywords, braces, single_blank_line_at_eof)
5) lib/functions.js.php (no_spaces_after_function_name)
6) lib/lang.php (function_declaration, no_spaces_after_function_name, lowercase_constants, no_closing_tag, braces, single_blank_line_at_eof)
7) lib/template/footer.php (braces)
8) lib/config.local.bak.php (method_argument_space, no_spaces_after_function_name, no_closing_tag, single_blank_line_at_eof)
9) lib/config.original.php (no_spaces_after_function_name, no_closing_tag, single_blank_line_at_eof)
0) lib/settings.php (indentation_type, no_spaces_after_function_name, braces)
1) lib/config.local.php (no_spaces_after_function_name, single_blank_line_at_eof)
2) index.php (indentation_type, no_spaces_after_function_name, braces)
3) admin.php (no_spaces_after_function_name, braces)
4) tos.php (no_spaces_after_function_name, no_closing_tag, single_blank_line_at_eof)

Refs #103
2017-02-23 18:34:20 +01:00
Dan Untenzu
4a53554259 [!!][FEATURE] Let admin overwrite the ToS page
Let the admin overwrite the content of the
"Terms of Service" page by copying the original ToS
template and creating a local file (same procedure as
for the configuration). This file is not versionized.

Note: This is a breaking change, since the existing
tos textfile is moved. This should be mentioned
in the update comments.
  * ToS text file changed → move file from "/tos_text.php"
    to "/lib/tos.local.txt" and remove all HTML und PHP Tags,
    leaving a regular text file.

Refs #95
2017-01-19 19:03:03 +00:00
Dan Untenzu
af7e43a4a3 [FEATURE] Move config include into settings file
Move the include of the original and the local
configuration file into the settings file to reduce one
includes in each file, have all settings in one place
and remove unneccessary code from the config file
(which makes it easier to copy and change it).
2017-01-19 19:03:03 +00:00
Spanti Nicola (RyDroid)
60530d95cc Minor changes to some PHP files 2015-07-11 16:24:31 +02:00
Jerome Jutteau
a6c1ba9e0d fix bad permissions on files 2015-02-22 17:48:18 +01:00
Jerome Jutteau
3d9792a36b Fix config parameter and rename config.php 2013-07-29 21:53:54 +00:00
Jerome Jutteau
ae198477d0 fixed a little tos mistake 2012-12-31 15:56:09 +01:00
Jerome Jutteau
5d66538822 Added default TOS from opensource.org wich should be configured for each web sites. 2012-12-31 02:41:50 +01:00