Aucune description

3risian 9af55d2f72 Calculate menu and pagination without missing addons (#160) il y a 1 an
api 276d1c5515 [S] Add current ai count to server list il y a 1 an
assets 2f66e0fe75 [D] Use HTML5 History API, removing History.js il y a 3 ans
bugs dc9366c0a5 Move URL related methods to URL class il y a 7 ans
cron 15dcebd08e [S] Update for new ranking system il y a 4 ans
dl 1968684f1d Rename upload directory to dl il y a 10 ans
docker-tools a8d2d959f7 dockerized il y a 6 ans
include 9af55d2f72 Calculate menu and pagination without missing addons (#160) il y a 1 an
install 276d1c5515 [S] Add current ai count to server list il y a 1 an
json a9779fa2b9 added phpcs il y a 6 ans
locale 40d4949f9f Update translations il y a 8 ans
phpcs a3633813b3 [C] Fixed config to generate old and new server xml files il y a 5 ans
phpstan 4df0709fa6 Fix phpstan il y a 5 ans
stats 1c51da8856 Use script mode for the default example config and stats il y a 7 ans
tests ab5cdbe89c Fix phpstan/phpcs/phpunit warnings and errors il y a 6 ans
tools e21664625c Fix python warning il y a 3 ans
tpl 765ba21447 Update terms and conditions for account creation (#110) il y a 1 an
.dockerignore 689b3d9979 [D] Update docker files to actually work il y a 5 ans
.gitattributes a8d2d959f7 dockerized il y a 6 ans
.gitignore 19cfe2cefb [C][D] Update compose and yarn packages | Add tools il y a 5 ans
.travis.yml a3633813b3 [C] Fixed config to generate old and new server xml files il y a 5 ans
.yarnrc ba36c228cb bower migrated to yarn il y a 6 ans
COPYING 0f2fda96f0 (stkaddons) Adding stkaddons' code il y a 15 ans
CREDITS 03ba2991df Rewrite README file il y a 10 ans
Dockerfile 19cfe2cefb [C][D] Update compose and yarn packages | Add tools il y a 5 ans
Dockerfile-db-init 689b3d9979 [D] Update docker files to actually work il y a 5 ans
INSTALL.md 19cfe2cefb [C][D] Update compose and yarn packages | Add tools il y a 5 ans
README.md 19cfe2cefb [C][D] Update compose and yarn packages | Add tools il y a 5 ans
about.php e387491581 Move all file sytem related functionality inside the FileSystem class il y a 7 ans
addons-menu.php 9af55d2f72 Calculate menu and pagination without missing addons (#160) il y a 1 an
addons-panel.php d99dc8a084 Add GPL license header to test files il y a 8 ans
addons.php b15a3ae5f3 Change GPL license header to use modern english and proper punctuation il y a 8 ans
composer.json 3748b45595 [D] Update compose packages il y a 3 ans
composer.lock 8b5038998c Bump smarty/smarty from 3.1.47 to 3.1.48 (#155) il y a 1 an
docker-compose.dev.yml 689b3d9979 [D] Update docker files to actually work il y a 5 ans
docker-compose.yml 689b3d9979 [D] Update docker files to actually work il y a 5 ans
download.php 453b4f8aa7 Only take news.xml into account for a more correct stats il y a 4 ans
downloads c478f64e58 Make download script work with new configuration. il y a 10 ans
error.php b15a3ae5f3 Change GPL license header to use modern english and proper punctuation il y a 8 ans
favicon.ico 8973031e80 Add favicons for all modern browsers or displays. il y a 9 ans
image.php 4d8d1234f8 Rename SImage to StkImage il y a 7 ans
index.php a9779fa2b9 added phpcs il y a 6 ans
login.php dc9366c0a5 Move URL related methods to URL class il y a 7 ans
manage-panel.php a9779fa2b9 added phpcs il y a 6 ans
manage.php b15a3ae5f3 Change GPL license header to use modern english and proper punctuation il y a 8 ans
music.php b15a3ae5f3 Change GPL license header to use modern english and proper punctuation il y a 8 ans
package.json bcec2558af [D] Update yarn packages il y a 3 ans
password-reset.php d99dc8a084 Add GPL license header to test files il y a 8 ans
phpunit.xml 7a1f1c7797 Try to fix travis build. il y a 10 ans
privacy.php b15a3ae5f3 Change GPL license header to use modern english and proper punctuation il y a 8 ans
rankings.php 15dcebd08e [S] Update for new ranking system il y a 4 ans
register.php d99dc8a084 Add GPL license header to test files il y a 8 ans
upload.php a9779fa2b9 added phpcs il y a 6 ans
users-menu.php b15a3ae5f3 Change GPL license header to use modern english and proper punctuation il y a 8 ans
users-panel.php 7270c7c7d6 [S] Add option to also delete addons when deleting user account il y a 6 ans
users.php b15a3ae5f3 Change GPL license header to use modern english and proper punctuation il y a 8 ans
yarn.lock bcec2558af [D] Update yarn packages il y a 3 ans

README.md

STK Addons Website

This is the source code for the SuperTuxKart asset sharing and distribution platform. The official location of the production website is https://online.supertuxkart.net/.

Build Status

Build Status

Branches

The master branch contains the latest code, not stable or production ready.

The production branch contains stable code that is ready for production (the live addons server is based on this branch).

Installation

The whole installation procedure can be seen in the INSTALL.md file.

Common Problems

Permissions

A common problem on Linux are the permissions for the assets/cache and dl directories. There are several ways to solve this problem:

  • Change the permission of the directories with chmod 775 (not recommended)
  • Add yourself to the owner group of these directories and give the group read & write access, or change the owner of those directories to the user under which your webserver is running (usually www-data). The latter can be achieved using: sudo chown -R www-data:www-data <directory>

Class not found after creating a new class

Example:

Error: Class 'Debug' not found in /stk-addons/index.php on line 0

This is due to composer not knowing about it. To fix it update composer with composer dump-autoload.

Testing

The project uses PHPUnit for unit testing (it's installed automatically by composer if you have enabled the developer dependencies)

Run tests from the root of the project with (it will use the default phpunit.xml found in the root directory):

./vendor/bin/phpunit

If you want to give it a custom configuration use the --configuration flag, like this:

./vendor/bin/phpunit --configuration custom.xml

Translation and locales generation

To generate all locales supported (system wide), run the script in locale/locale-gen.sh.

After that, update the translations.pot files by running the locale/update-pot.sh script.

Then after getting the updated translate po files from https://www.transifex.com/supertuxkart/supertuxkart/ run the locale/generate-mo.sh script.

Contributing

All contributions are welcome: ideas, patches, documentation, bug reports, complaints, etc!

Git message conventions

Some messages include the prefix [tag] at the beginning of the commit message, if present these mean that you need to make manual modifications to your code/infrastructure for it to work with that commit.

  • [C] - modified the config file, update your config.php file accordingly
  • [D] - updated the composer/yarn dependencies, run the appropriate yarn/composer update commands
  • [S] - updated the SQL schema, modify your SQL schema accordingly

PHP

The PHP coding standard is heavily based on PSR-2, with some modifications:

  • The line limit is 120 characters.
  • Opening braces for control structures MUST go on the next line, and closing braces MUST go on the next line after the body. php if ($a === 42) { bar(); } else { foo(); }

Other

For JavaScript, CSS, and SQL you should use 4 spaces, not tabs. The JavaScript coding standard is based on http://javascript.crockford.com/code.html and the CSS coding standard is based on http://make.wordpress.org/core/handbook/coding-standards/css/.

The JavaScript and CSS coding standards are modified to use the same line limit as PHP.

License

STK Addons Website is licensed under GPL version 3. See COPYING for the full license text.

Contact