diff options
author | Minteck <minteck@phoenixnet.tech> | 2021-10-31 12:44:27 +0100 |
---|---|---|
committer | Minteck <minteck@phoenixnet.tech> | 2021-10-31 12:44:27 +0100 |
commit | 7bbb59948928e590841e4af440b0b764a147e450 (patch) | |
tree | 56d8e7ec09db8ea26939c2dc6b44136e6aa6ba12 /strikes | |
download | share-7bbb59948928e590841e4af440b0b764a147e450.tar.gz share-7bbb59948928e590841e4af440b0b764a147e450.tar.bz2 share-7bbb59948928e590841e4af440b0b764a147e450.zip |
Initial commit
Diffstat (limited to 'strikes')
-rw-r--r-- | strikes/index.php | 52 | ||||
-rw-r--r-- | strikes/indicator.svg | 13 | ||||
-rw-r--r-- | strikes/state0.png | bin | 0 -> 6535 bytes | |||
-rw-r--r-- | strikes/state1.png | bin | 0 -> 8807 bytes | |||
-rw-r--r-- | strikes/state2.png | bin | 0 -> 3022 bytes |
5 files changed, 65 insertions, 0 deletions
diff --git a/strikes/index.php b/strikes/index.php new file mode 100644 index 0000000..c93dd4c --- /dev/null +++ b/strikes/index.php @@ -0,0 +1,52 @@ +<?php $_TITLE = "Mes avertissements"; require_once $_SERVER['DOCUMENT_ROOT'] . "/private/head.php"; + +?> + + <div class="container" style="padding-bottom:50px;margin-top: 50px;"> + <div style="text-align:center;"> + <h1>Avertissements</h1> + <?php if (count($_CONF_USP['files']) < 1): ?> + <p>Vous n'avez encore rien partagé. Vous avez droit à 200 Mo gratuitement, alors profitez-en !</p> + <a class="btn btn-primary" href="/share">Commencer</a> + <?php else: ?> + <p>Vous recevez des avertissements lorsque vous commettez une infraction au règlement de Familine ou aux lois. Vous recevrez par exemple un avertissement si vous utilisez Familine Share pour partager des programmes malveillants ou des documents illégaux.</p> + <div style="display:grid;grid-template-columns: 1fr 1fr 1fr;width: 256px;margin-left: auto;margin-right: auto;"> + <div> + <img src="/strikes/state0.png" width="64px" style="<?php if (count($_CONF_USP['strikes']) > 0) { echo('filter:grayscale(1);'); } ?>"> + <?php if (count($_CONF_USP['strikes']) === 0) {echo('<img id="strike-indicator" src="/strikes/indicator.svg" width="24px" style="transform:rotate(-90deg)">');} ?> + </div> + <div> + <img src="/strikes/state1.png" width="64px" style="<?php if (count($_CONF_USP['strikes']) !== 1) { echo('filter:grayscale(1);'); } ?>"> + <?php if (count($_CONF_USP['strikes']) === 1) {echo('<img id="strike-indicator" src="/strikes/indicator.svg" width="24px" style="transform:rotate(-90deg)">');} ?> + </div> + <div> + <img src="/strikes/state2.png" width="64px" style="<?php if (count($_CONF_USP['strikes']) !== 2) { echo('filter:grayscale(1);'); } ?>"> + <?php if (count($_CONF_USP['strikes']) === 2) {echo('<img id="strike-indicator" src="/strikes/indicator.svg" width="24px" style="transform:rotate(-90deg)">');} ?> + </div> + </div> + <?php endif; ?> + <hr> + <?php if (count($_CONF_USP['strikes']) === 0): ?> + <h1>Vous n'avez <b>aucun avertissement</b></h1> + <p>C'est parfait ! Vous n'avez jamais partagé de contenu illégal ou interdit par Familine, merci ! Vous utilisez Familine Share comme il se doit, et c'est très bien. Continuez à rester attentif à ce que vous partagez et pensez à supprimer tout partage qui s'avère être inutile.</p> + <?php endif; ?> + <?php if (count($_CONF_USP['strikes']) === 1): ?> + <h1>Vous avez <b>1 avertissement</b></h1> + <p>Vous avez droit à l'erreur, c'est normal de se tromper. Cependant, soyez prudent la prochaine fois et évitez d'enfreindre les règles une seconde fois. Vous risquerez d'être sévèrement réprimandé si vous enfreignez de nouveau les conditions de Familine.</p> + <?php endif; ?> + <?php if (count($_CONF_USP['strikes']) === 2): ?> + <h1>Vous avez <b>2 avertissements</b></h1> + <p>Bon, vous l'avez un peu cherché cette fois. Merci d'arrêter de détourner le fonctionnement de Familine Share et de l'utiliser correctement et sans enfreindre les lois ou les règles de Familine. Si vous recommencez encore une fois, votre profil Familine Share sera définitivement désactivé, ainsi que tous les documents que vous avez partagé ; réfléchissez-y donc à deux fois avant de partager quelque chose à présent.</p> + <?php endif; ?> + <?php if (count($_CONF_USP['strikes']) >= 1): ?> + <hr> + <h1>Les motifs de vos avertissements</h1> + <ul class="list-group" style="text-align:left;"> + <li class="list-group-item text-info"><?= $_CONF_USP['strikes'][0] ?></li> + <?php if (count($_CONF_USP['strikes']) >= 2): ?> <li class="list-group-item text-warning"><?= $_CONF_USP['strikes'][1] ?></li> <?php endif; ?> + </ul> + <?php endif; ?> + </div> + </div> + +<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/private/foot.php"; ?>
\ No newline at end of file diff --git a/strikes/indicator.svg b/strikes/indicator.svg new file mode 100644 index 0000000..3adce3b --- /dev/null +++ b/strikes/indicator.svg @@ -0,0 +1,13 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> + <defs id="defs3051"> + <style type="text/css" id="current-color-scheme"> + .ColorScheme-Text { + color:#232629; + } + </style> + </defs> + <path style="fill:currentColor;fill-opacity:1;stroke:none" + d="M 1,2 4,8 1,14 1,14 15,8 Z M 3.1152344,3.9960938 12.458984,8 3.1152344,12.003906 5.1171875,8 Z" + class="ColorScheme-Text" + /> +</svg> diff --git a/strikes/state0.png b/strikes/state0.png Binary files differnew file mode 100644 index 0000000..3887503 --- /dev/null +++ b/strikes/state0.png diff --git a/strikes/state1.png b/strikes/state1.png Binary files differnew file mode 100644 index 0000000..1fd8adb --- /dev/null +++ b/strikes/state1.png diff --git a/strikes/state2.png b/strikes/state2.png Binary files differnew file mode 100644 index 0000000..b8d66cf --- /dev/null +++ b/strikes/state2.png |