Skip to content

Commit

Permalink
Mise à jour LF + editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
darknoon29 committed May 6, 2024
1 parent 4b5439b commit c123438
Show file tree
Hide file tree
Showing 15 changed files with 788 additions and 785 deletions.
72 changes: 36 additions & 36 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Spaces in coffee
[**.coffee]
indent_style = space
indent_size = 2

[**.js]
indent_style = space
indent_size = 2

# Tabs in less
[**.less]
indent_style = tab
indent_size = 2

[**.css]
indent_style = tab
indent_size = 2

[**.php]
indent_style = space
indent_size = 4

[**.html]
indent_style = tab
indent_size = 2
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Spaces in coffee
[**.coffee]
indent_style = space
indent_size = 2

[**.js]
indent_style = space
indent_size = 2

# Tabs in less
[**.less]
indent_style = tab
indent_size = 2

[**.css]
indent_style = tab
indent_size = 2

[**.php]
indent_style = space
indent_size = 4

[**.html]
indent_style = tab
indent_size = 2
42 changes: 21 additions & 21 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Build
on:
push:
branches:
- master
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
name: Build
on:
push:
branches:
- master
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
98 changes: 49 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
# Module OGSpy Autoupdate

Ce module permet de télécharger et de mettre à jour OGSpy et ses modules

## Pré Requis

* Nécessite OGSpy 3.3.2 [Dépot OGSpy](https://github.com/ogsteam/ogspy)
* Modules PHP requies : json_decode, zip and enable allow_url_fopen

## Configuration

Aucune configuration à réaliser même si des options sont disponibles pour afficher les versions développeur.

Il est néanmoins possible d'utiliser son compte GitHub pour récupérer les données du dépôt OGSteam. Vous pouvez générer une clé dans la section Settings/Developper Settings/Personal Access Token et de l'utiliser avec vos paramètres Autoupdate. A défaut Autoupdate utilisera une clé appartenant à l'OGSteam.
## Pour nous contacter

* [Forum OGSteam](https://forum.ogsteam.eu) : Vous y trouverez notre équipe de support ainsi que l'invitation vers notre salon Discord

## Index Codacy

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c13a9e1d4d4f46598f1201619b54a6b2)](https://www.codacy.com/app/OGSteam/mod-autoupdate?utm_source=github.com&utm_medium=referral&utm_content=OGSteam/mod-autoupdate&utm_campaign=Badge_Grade)

## Contact

* [Darknoon](https://github.com/darknoon29)
* (<https://www.ogsteam.eu>) ou Discord : (<https://discord.gg/Azcb67b>)

## Autoupdate (English)

Autoupdate is a mod for OGSpy that maintains all OGSpy Modules by download them or updates them. This module connects to Github API to verify updates every 24hrs.

The module is available in Franch, English, Spanish, Italian, Portuguese.

## How do I get set up?

* This module requires OGSpy to work correctly
* On server side, you need following PHP modules : json_decode, zip and enable allow_url_fopen

## Contribution guidelines

* As this mod can broke the OGSpy installation, the Pull Request Review is mandatory.
So if you need a modification, please Fork the mod to you user space and create the pull request when you have done all your new stuff :-)

* If possible, [read PHP Standards](https://www.php-fig.org/psr/)

## Contact (English Spoken)

* [Darknoon](https://github.com/darknoon29)
* [Forum](https://www.ogsteam.eu) ou [Discord](https://discord.gg/Azcb67b)
# Module OGSpy Autoupdate

Ce module permet de télécharger et de mettre à jour OGSpy et ses modules

## Pré Requis

* Nécessite OGSpy 3.3.2 [Dépot OGSpy](https://github.com/ogsteam/ogspy)
* Modules PHP requies : json_decode, zip and enable allow_url_fopen

## Configuration

Aucune configuration à réaliser même si des options sont disponibles pour afficher les versions développeur.

Il est néanmoins possible d'utiliser son compte GitHub pour récupérer les données du dépôt OGSteam. Vous pouvez générer une clé dans la section Settings/Developper Settings/Personal Access Token et de l'utiliser avec vos paramètres Autoupdate. A défaut Autoupdate utilisera une clé appartenant à l'OGSteam.
## Pour nous contacter

* [Forum OGSteam](https://forum.ogsteam.eu) : Vous y trouverez notre équipe de support ainsi que l'invitation vers notre salon Discord

## Index Codacy

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c13a9e1d4d4f46598f1201619b54a6b2)](https://www.codacy.com/app/OGSteam/mod-autoupdate?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=OGSteam/mod-autoupdate&amp;utm_campaign=Badge_Grade)

## Contact

* [Darknoon](https://github.com/darknoon29)
* (<https://www.ogsteam.eu>) ou Discord : (<https://discord.gg/Azcb67b>)

## Autoupdate (English)

Autoupdate is a mod for OGSpy that maintains all OGSpy Modules by download them or updates them. This module connects to Github API to verify updates every 24hrs.

The module is available in Franch, English, Spanish, Italian, Portuguese.

## How do I get set up?

* This module requires OGSpy to work correctly
* On server side, you need following PHP modules : json_decode, zip and enable allow_url_fopen

## Contribution guidelines

* As this mod can broke the OGSpy installation, the Pull Request Review is mandatory.
So if you need a modification, please Fork the mod to you user space and create the pull request when you have done all your new stuff :-)

* If possible, [read PHP Standards](https://www.php-fig.org/psr/)

## Contact (English Spoken)

* [Darknoon](https://github.com/darknoon29)
* [Forum](https://www.ogsteam.eu) ou [Discord](https://discord.gg/Azcb67b)
74 changes: 37 additions & 37 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name" : "ogsteam/mod-autoupdate",
"description" : "OGSpy module that helps you to keep latest versions for all OGSteam Tools",
"type" : "ogspy-mod",
"keywords" : [ "ogspy" ],
"license" : "GPL-2.0-only",
"authors" : [
{
"name" : "DarkNoon",
"email" : "[email protected]",
"homepage": "https://github.com/darknoon29",
"role" : "Lead Developer"
}
],
"require" : {
"php" : ">=7.0.0",
"ogsteam/ogspy" : ">=3.3.6"
},
"extra" : {
"install_script": "install.php",
"update_script": "update.php",
"uninstall_script": "uninstall.php",
"mod_title": "autoupdate",
"menu_title" : "AutoUpdate",
"action_name" : "autoupdate",
"folder_name" : "autoupdate",
"action_file" : "autoupdate.php",
"active" : true,
"admin" : true
},
"homepage" : "https://github.com/ogsteam/mod-autoupdate",
"support": {
"issues": "https://github.com/ogsteam/mod-autoupdate/issues",
"source": "https://github.com/ogsteam/mod-autoupdate/tree/master",
"chat" : "https://discord.gg/Azcb67b"
}
}
{
"name" : "ogsteam/mod-autoupdate",
"description" : "OGSpy module that helps you to keep latest versions for all OGSteam Tools",
"type" : "ogspy-mod",
"keywords" : [ "ogspy" ],
"license" : "GPL-2.0-only",
"authors" : [
{
"name" : "DarkNoon",
"email" : "[email protected]",
"homepage": "https://github.com/darknoon29",
"role" : "Lead Developer"
}
],
"require" : {
"php" : ">=7.0.0",
"ogsteam/ogspy" : ">=3.3.6"
},
"extra" : {
"install_script": "install.php",
"update_script": "update.php",
"uninstall_script": "uninstall.php",
"mod_title": "autoupdate",
"menu_title" : "AutoUpdate",
"action_name" : "autoupdate",
"folder_name" : "autoupdate",
"action_file" : "autoupdate.php",
"active" : true,
"admin" : true
},
"homepage" : "https://github.com/ogsteam/mod-autoupdate",
"support": {
"issues": "https://github.com/ogsteam/mod-autoupdate/issues",
"source": "https://github.com/ogsteam/mod-autoupdate/tree/master",
"chat" : "https://discord.gg/Azcb67b"
}
}
3 changes: 3 additions & 0 deletions core/tool_upgrade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
global $user_data, $lang;

/**
* Autoupdate Tool upgrade File
Expand Down Expand Up @@ -101,6 +102,8 @@
echo "\t" . '</tr>' . "\n";
echo '</table>' . "\n";
echo '<br>' . "\n";
// Rechargement de la page
redirection("index.php");
} else {
echo "\t" . '<tr>' . "\n";
echo "\t\t" . '<td class="c"><span style="color:red">' . $lang['autoupdate_MaJ_unzipnotok'] . '</span></td>' . "\n";
Expand Down
Loading

0 comments on commit c123438

Please sign in to comment.