Compare commits

..

No commits in common. "main" and "home-refacto" have entirely different histories.

134 changed files with 3849 additions and 7196 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "src/ctfs/templates/challenges"]
path = src/ctfs/templates/challenges
url = https://gitea.42ctf.org/42CTF/challenges-descriptions.git

View File

@ -1,34 +1,50 @@
# 42CTF
[42CTF](https://www.42ctf.org) is a CTF platform created by School 42 students and open to anyone.
# 42ctf
CTF by 42 students
### Todo
TODO has been migrated to [issues](https://gitea.42ctf.org/42CTF/website/issues) !
And hopefully, it is not redirected anymore to `/dev/null`.
- [x] Serveur SMTP & reset password
- [x] Clean le repo
- [x] Accès au chall après validation
- [x] Section "Intro"
- [x] Section Treasure Hunt
- [x] Edition de profil
- [x] Ajouter de la Doc
- [x] Infrastructure de pwn
- [x] Organiser une session découverte
- [x] Compteur de flags
- [x] Graphiques statistiques
- [x] Création d'un discord linkable
- [ ] Refonte du linkage discord -> 42ctf
- [x] Traduction du site
- [x] Anglais
- [x] Français
- [ ] Russe
- [ ] Espagnol
- [ ] Italien
- [ ] OAuth 42
- [ ] Feature proposer une solution à un challenge
- [ ] Système de badge/succès
- [ ] Génération d'une page résumant le profil d'un utilisateur (ex: show resume sur intra.42.fr)
### How to contribute ?
#### Event feature
First, you need to contact a 42CTF admin to get an account on the 42CTF gitea.
You can contact us on [discord](https://discord.gg/3KDvt6hbWW) or by [email](mailto:42ctf@protonmail.com).
You can also fill this [form](https://forms.42l.fr/apps/forms/bpmyGR37AR4yHGnC) and we'll contact you.
Then, once you have a gitea account, you can fork this repository, do some stuff, and open a pull request.
If you want to translate the platform, then have a look at the [wiki](https://gitea.42ctf.org/42CTF/website/wiki).
If you want to help with bot development, it has now its own [repository](https://gitea.42ctf.org/42CTF/bot)
### How to set up my dev environment ?
There is only one file missing on this repository for you to run the server: `local_settings.py`.
You should create one in the `src` directory, with the following content:
```
DEBUG = True
SECRET_KEY = 'what you want'
```
When you'll run `python manage.py migrate` then `python manage.py runserver`, an empty database will be automatically created.
The `local_settings.py` is in the `.gitignore` and should stay that way, so we don't accidentally overwrite the production file when we deploy.
To obtain administrator rights you can run `python manage.py createsuperuser`.
- [X] make relation between user and events
- [X] make scoreboard for events
- [X] make access mod for events :
- [X] Sub button for public events
- [X] Access by password
- [X] Begin date for display challenges
- [X] Ending date for stop flag submission
- [ ] Access by invite link
- [X] Admin rights
- [X] Admin can access to events pages without password
- [X] Admin can subscribe to event without password
- [X] process flag submission
- [X] increment user score in Scores model
- [X] add filters for admin dashboard
- [X] add search in fields in admin dashboard
- [X] display more information in admin dashboard
- [X] Smooth display of events listing
- [X] Event info page with background and noice display
- [ ] Create teams for events

104
bot.py Normal file
View File

@ -0,0 +1,104 @@
import os
import discord
import discord.utils
import urllib.request, json
import asyncio
import json
import logging
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD = '42ctf'
intents = discord.Intents.all()
client = discord.Client(intents=intents)
db_file = open('members.json', 'r')
users = json.load(db_file)
db_file.close()
logging.basicConfig(filename='bot.log', format='%(asctime)s %(message)s', level=logging.INFO)
guild = ''
roles = {}
def get_rank(token):
url = urllib.request.urlopen("https://www.42ctf.org/accounts/rank/" + token)
data = json.loads(url.read().decode())
rank = data['rank']
return rank
async def watch_roles():
global users
await client.wait_until_ready() # ensures cache is loaded
while not client.is_closed():
for member_id, token in users.items():
if (token == "0000"):
continue
member = discord.utils.get(guild.members, id=int(member_id))
rank = get_rank(token)
if rank == 1 and roles['top1'] not in member.roles:
await member.add_roles(roles['top1'])
await member.remove_roles(roles['top10'])
await member.remove_roles(roles['top50'])
elif rank > 1 and rank <= 10 and roles['top10'] not in member.roles:
await member.add_roles(roles['top10'])
await member.remove_roles(roles['top1'])
await member.remove_roles(roles['top50'])
elif rank > 10 and rank <= 50 and roles['top50'] not in member.roles:
await member.add_roles(roles['top50'])
await member.remove_roles(roles['top10'])
await member.remove_roles(roles['top1'])
elif rank > 50:
await member.remove_roles(roles['top1'])
await member.remove_roles(roles['top10'])
await member.remove_roles(roles['top50'])
await asyncio.sleep(60)
@client.event
async def on_ready():
global guild, roles
guild = discord.utils.get(client.guilds, name=GUILD)
roles['top10'] = discord.utils.get(guild.roles, id=801787467064672286)
roles['top1'] = discord.utils.get(guild.roles, id=798638767359524875)
roles['top50'] = discord.utils.get(guild.roles, id=803729539145924649)
logging.info('%s is connected to the following guild: %s(id: %d)', client.user, guild.name, guild.id)
client.loop.create_task(watch_roles())
@client.event
async def on_message(message):
global guild, roles
if message.author == client.user:
return
if '!connect' in message.content:
try:
user_token = message.content.split(' ')[1]
member = discord.utils.get(guild.members, name=message.author.name)
rank = get_rank(user_token)
users[str(member.id)] = user_token
logging.info("MESSAGE: from %s with token %s", message.author.name, user_token)
with open('members.json', 'w') as json_file:
json.dump(users, json_file)
if rank == 1:
await member.add_roles(roles['top1'])
response = "Congratulations, you're now Top 1. But for how long ?"
elif (rank <= 10):
await member.add_roles(roles['top10'])
response = "You've been granted the Top 10 role. Now, go away and flag !"
elif rank <= 50:
await member.add_roles(roles['top50'])
response = "You've been granted the Top 50 role. Now, go away and flag !"
else:
response = "No role for you now, but I'll keep watching you."
except IndexError:
response = 'usage: !connect 42ctf_token'
await message.author.create_dm()
await message.author.dm_channel.send(response)
client.run(TOKEN)

View File

@ -1,3 +1,3 @@
Django==3.2.11
requests==2.27.1
authlib==0.15.5
Django
requests
authlib

View File

@ -1,6 +1,5 @@
from .models import UserProfileInfo
from django.contrib import admin
from .models import Campus
#admin.site.register(UserProfileInfo)
# Register your models here.
@ -8,10 +7,6 @@ from .models import Campus
@admin.register(UserProfileInfo)
class userprofile(admin.ModelAdmin):
#list display
list_display = ['user', 'score', 'last_submission_date', 'campus']
list_display = ['user', 'score', 'last_submission_date']
# search list
search_fields = ['score', 'user__username', 'campus__name']
@admin.register(Campus)
class campus(admin.ModelAdmin):
list_display = ['name']
search_fields = ['score', 'user__username']

View File

@ -1,24 +0,0 @@
from collections import defaultdict
from django.core.management.base import BaseCommand, CommandError
from accounts import models as acc_models
from django.contrib.auth import models as auth_models
from django.contrib.auth.models import timezone
from datetime import timedelta
class Command(BaseCommand):
help = 'Remove all users who never logged in'
def handle(self, *args, **options):
all_users = acc_models.UserProfileInfo.objects.filter(score=0).select_related()
to_remove = []
for elem in all_users:
user = elem.user
if user.last_login is None and user.date_joined < timezone.now() - timedelta(hours=72):
to_remove.append(user)
print("You are going to remove {} users.".format(len(to_remove)))
answer = input("Continue ? [y/N] ")
if answer.lower() in ["y","yes"]:
for elem in to_remove:
elem.delete()
print("Users have been successfully pruned.")

View File

@ -1,23 +0,0 @@
# Generated by Django 3.2.11 on 2022-03-29 08:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_auto_20220123_1704'),
]
operations = [
migrations.AddField(
model_name='userprofileinfo',
name='intra42_campus',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AddField(
model_name='userprofileinfo',
name='intra42_id',
field=models.CharField(blank=True, max_length=20, null=True, unique=True),
),
]

View File

@ -1,22 +0,0 @@
# Generated by Django 3.2.11 on 2022-03-29 11:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0008_auto_20220329_1034'),
]
operations = [
migrations.AlterModelOptions(
name='userprofileinfo',
options={'ordering': ['-score', 'last_submission_date', 'user__username', 'intra42_campus'], 'permissions': (('view_info', 'View user info'),), 'verbose_name': 'profile', 'verbose_name_plural': 'profiles'},
),
migrations.AddField(
model_name='userprofileinfo',
name='intra42_campus_id',
field=models.CharField(blank=True, max_length=10, null=True),
),
]

View File

@ -1,31 +0,0 @@
# Generated by Django 3.2.11 on 2022-05-17 12:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0009_auto_20220329_1339'),
]
operations = [
migrations.CreateModel(
name='Campus',
fields=[
('id', models.IntegerField(primary_key=True, serialize=False, unique=True)),
('name', models.CharField(max_length=50)),
],
options={
'verbose_name': 'campus',
'verbose_name_plural': 'campuses',
'permissions': (('view_info', 'View user info'),),
},
),
migrations.AddField(
model_name='userprofileinfo',
name='campus',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='accounts.campus'),
),
]

View File

@ -1,23 +0,0 @@
# Generated by Django 3.2.11 on 2022-05-17 12:54
from django.db import migrations
from accounts.models import UserProfileInfo
from accounts.models import Campus
def migrate_campus(apps, schema_editor):
UserProfileInfo = apps.get_model('accounts', 'UserProfileInfo')
Campus = apps.get_model('accounts', 'Campus')
for user in UserProfileInfo.objects.all():
if user.intra42_campus_id:
user.campus, created = Campus.objects.get_or_create(id=user.intra42_campus_id, name=user.intra42_campus)
user.save()
class Migration(migrations.Migration):
dependencies = [
('accounts', '0010_auto_20220517_1452'),
]
operations = [
migrations.RunPython(migrate_campus),
]

View File

@ -1,25 +0,0 @@
# Generated by Django 3.2.11 on 2022-08-01 20:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0011_migration_campus'),
]
operations = [
migrations.AlterModelOptions(
name='userprofileinfo',
options={'ordering': ['-score', 'last_submission_date', 'user__username', 'campus'], 'permissions': (('view_info', 'View user info'),), 'verbose_name': 'profile', 'verbose_name_plural': 'profiles'},
),
migrations.RemoveField(
model_name='userprofileinfo',
name='intra42_campus',
),
migrations.RemoveField(
model_name='userprofileinfo',
name='intra42_campus_id',
),
]

View File

@ -1,25 +0,0 @@
# Generated by Django 3.2.11 on 2022-08-18 15:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0012_auto_20220801_2212'),
]
operations = [
migrations.AddField(
model_name='campus',
name='logo',
field=models.URLField(default='https://42.fr'),
preserve_default=False,
),
migrations.AddField(
model_name='campus',
name='url',
field=models.URLField(default='https://42.fr', max_length=100),
preserve_default=False,
),
]

View File

@ -1,23 +0,0 @@
# Generated by Django 3.2.11 on 2022-08-18 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0013_auto_20220818_1741'),
]
operations = [
migrations.AlterField(
model_name='campus',
name='logo',
field=models.URLField(blank=True),
),
migrations.AlterField(
model_name='campus',
name='url',
field=models.URLField(blank=True, max_length=100),
),
]

View File

@ -12,29 +12,15 @@ class UserProfileInfo(models.Model):
last_submission_date = models.DateTimeField('Last Submission Date', default=timezone.now)
token = models.CharField(max_length=200, blank=True)
discord_id = models.CharField(max_length=20, null=True, blank=True, unique=True)
intra42_id = models.CharField(max_length=20, null=True, blank=True, unique=True)
campus = models.ForeignKey('Campus', on_delete=models.DO_NOTHING, null=True, blank=True)
member = models.BooleanField(default=False)
member_since = models.DateTimeField('Member since', default=timezone.now)
member_until = models.DateTimeField('Member until', default=timezone.now)
def __str__(self):
return self.user.username
class Meta:
ordering = ['-score', 'last_submission_date', 'user__username', 'campus']
ordering = ['-score', 'last_submission_date', 'user__username']
verbose_name = 'profile'
verbose_name_plural = 'profiles'
permissions = (("view_info", "View user info"),)
class Campus(models.Model):
id = models.IntegerField(primary_key=True, unique=True)
name = models.CharField(max_length=50)
url = models.URLField(max_length=100,blank=True)
logo = models.URLField(max_length=200,blank=True)
def __str__(self):
return self.name
class Meta:
verbose_name = 'campus'
verbose_name_plural = 'campuses'
permissions = (("view_info", "View user info"),)
# Create your models here.

View File

@ -12,7 +12,7 @@
{% trans "Deleted accounts cannot be recovered." %}<br><br>
<div class="col-sm-8 col-md-6 mx-auto">
{% if bad_password %}
<span class="message error-msg">{% trans "Password incorrect." %}</span>
<span class="message error-msg">{% trans "Password inccorect." %}</span>
{% elif deleted %}
<span class="message success-msg">{% trans "Your account has been deleted." %}</span>
{% endif %}

View File

@ -2,111 +2,67 @@
{% block content %}
{% load i18n %}
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<div class="ctf-head">
<h3>Edit info</h3>
</div>
<div class="bloc-body">
<div class="col-sm-12 col-md-12 mx-auto">
{{ u_form.non_field_errors }}
{% if error is not None %}
<span class="message error-msg">{{ error }}</span>
{% elif success is not None %}
<span class="message success-msg">{{ success }}</span>
{% endif %}
<form method='POST'>
<div class="edit-infos-grp">
{%csrf_token%}
<label for="{{ u_form.username.id_for_label }}">{% trans "Username" %} *</label>
{{ u_form.username.errors}}
{{u_form.username}}
</br>
<label for="{{ u_form.email.id_for_label }}">{% trans "Email" %} *</label>
{{ u_form.email.errors}}
{{u_form.email}}
</br>
</br>
<label for="{{ p_form.portfolio_site.id_for_label }}">{% trans "Website" %}</label>
{{p_form.portfolio_site}}
</br>
</br>Token
<input type='text' readonly value='{{token}}'>
</br>
<input class="form-control" type="submit" value="{% trans " Apply" %}">
</div>
</form>
</div>
</div>
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<div class="ctf-head">
<h3>Edit info</h3>
</div>
<div class="ctf-block">
<div class="ctf-head">
<h3>{% trans "Connected accounts" %}</h3>
</div>
<div class="bloc-body">
<div class="d-flex">
{% if user.userprofileinfo.discord_id|length > 0 %}
<form action="{% url 'accounts:connections-disconnect-discord' %}" method='POST'
class="form-inline p-2">
<div class="bloc-body">
<div class="col-sm-12 col-md-12 mx-auto">
{{ u_form.non_field_errors }}
{% if error is not None %}
<span class="message error-msg">{{ error }}</span>
{% elif success is not None %}
<span class="message success-msg">{{ success }}</span>
{% endif %}
<form method='POST'>
<div class="edit-infos-grp">
{%csrf_token%}
<button class="btn btn-dark" type="submit">{% trans "Disconnect Discord" %}</button>
</form>
{% else %}
<form action="{% url 'accounts:connections-connect-discord' %}" method='POST'
class="form-inline p-2">
{%csrf_token%}
<button class="btn btn-dark" type="submit">{% trans "Connect Discord" %}</button>
</form>
{% endif %}
</div>
<div class="d-flex">
{% if user.userprofileinfo.intra42_id|length > 0 %}
<form action="{% url 'accounts:connections-disconnect-intra42' %}" method='POST'
class="form-inline p-2">
{%csrf_token%}
<button class="btn btn-dark" type="submit">{% trans "Disconnect 42" %}</button>
</form>
{% else %}
<form action="{% url 'accounts:connections-connect-intra42' %}" method='POST'
class="form-inline p-2">
{%csrf_token%}
<button class="btn btn-dark" type="submit">{% trans "Connect 42" %}</button>
</form>
{% endif %}
</div>
<label for="{{ u_form.username.id_for_label }}">{% trans "Username" %} *</label>
{{ u_form.username.errors}}
{{u_form.username}}
</br>
<label for="{{ u_form.email.id_for_label }}">{% trans "Email" %} *</label>
{{ u_form.email.errors}}
{{u_form.email}}
</br>
</br>
<label for="{{ p_form.portfolio_site.id_for_label }}">{% trans "Website" %}</label>
{{p_form.portfolio_site}}
</br>
</br>Token
<input type='text' readonly value='{{token}}'>
</br>
<input class="form-control" type="submit" value="{% trans "Apply" %}">
</div>
</form>
</div>
</div>
</div>
<div class="d-none d-md-block col-10 col-md-3 right-sidebar">
<ul class="list-group">
</div>
<div class="d-none d-md-block col-10 col-md-3 right-sidebar">
<ul class="list-group">
<li class="list-group-item">{{ user.username }}</li>
<li class="list-group-item">{% trans "Score" %} : {{ user.userprofileinfo.score }}</li>
{% if user.userprofileinfo.portfolio_site %}
<li class="list-group-item">
<a href="{{ user.userprofileinfo.portfolio_site }}" target="_blank">
{{ user.userprofileinfo.portfolio_site }}
</a>
</li>
<li class="list-group-item">
<a href="{{ user.userprofileinfo.portfolio_site }}" target="_blank">
{{ user.userprofileinfo.portfolio_site }}
</a>
</li>
{% endif %}
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li>
</ul>
<ul class="list-group">
<form method='GET' action="{% url 'accounts:profile' user %}">
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans " View my profile" %}">
</li>
</form>
</ul>
<ul class="list-group">
<form method='GET' action="{% url 'accounts:delete_account' %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans " Delete my account" %}">
</li>
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Delete my account" %}">
</li>
</form>
</ul>
</div>
</ul>
</div>
</div>
{% endblock %}

View File

@ -53,9 +53,9 @@
</li>
{% endif %}
{% if member %}
<li class="list-group-item">Status: <a class="{{ is_member }}" href="{% url 'resources:becomeMember' %}">{% trans "Member" %}</a></li>
<li class="list-group-item is-member">{% trans "Status: Member" %}</li>
{% else %}
<li class="list-group-item">Status: {% trans " Visitor" %}</li>
<li class="list-group-item">{% trans "Status: Visitor" %}</li>
{% endif %}
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"d-m-Y" }}</li>
</ul>
@ -75,26 +75,13 @@
</li>
{% endfor %}
</ul>
<ul class="list-group">
<ul class="list-group">
<li class="list-group-item">{% trans "Challenges created" %}</li>
{% if created %}
{% for creat in created %}
<li class="list-group-item"><a href="{% url 'ctf' cat_slug=creat.category.slug ctf_slug=creat.slug %}">{{ creat.name }}</a></li>
{% endfor %}
{% else %}
<li class="list-group-item">{% trans "It seems that this user has not created any challenge yet..." %}</li>
{% endif %}
</ul>
</ul>
</div>
</div>
<script src="https://code.highcharts.com/highcharts.src.js"></script>
<script>
Highcharts.theme={colors:["#2b908f","#90ee7e","#f45b5b","#7798BF","#aaeeee","#ff0066","#eeaaee","#55BF3B","#DF5353","#7798BF","#aaeeee"],chart:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:1,y2:1},stops:[[0,"#1D1D1D"],[1,"#1D1D1D"]]},style:{fontFamily:"'Unica One', sans-serif"},plotBorderColor:"#606063"},title:{style:{color:"#E0E0E3",textTransform:"uppercase",fontSize:"20px"}},subtitle:{style:{color:"#E0E0E3",textTransform:"uppercase"}},xAxis:{gridLineColor:"#707073",labels:{style:{color:"#E0E0E3"}},lineColor:"#707073",minorGridLineColor:"#505053",tickColor:"#707073",title:{style:{color:"#A0A0A3"}}},yAxis:{gridLineColor:"#707073",labels:{style:{color:"#E0E0E3"}},lineColor:"#707073",minorGridLineColor:"#505053",tickColor:"#707073",tickWidth:1,title:{style:{color:"#A0A0A3"}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.85)",style:{color:"#F0F0F0"}},plotOptions:{series:{dataLabels:{color:"#F0F0F3",style:{fontSize:"13px"}},marker:{lineColor:"#333"}},boxplot:{fillColor:"#505053"},candlestick:{lineColor:"white"},errorbar:{color:"white"}},legend:{backgroundColor:"#1D1D1D",itemStyle:{color:"#E0E0E3"},itemHoverStyle:{color:"#FFF"},itemHiddenStyle:{color:"#606063"},title:{style:{color:"#C0C0C0"}}},credits:{style:{color:"#666"}},labels:{style:{color:"#707073"}},drilldown:{activeAxisLabelStyle:{color:"#F0F0F3"},activeDataLabelStyle:{color:"#F0F0F3"}},navigation:{buttonOptions:{symbolStroke:"#DDDDDD",theme:{fill:"#505053"}}},rangeSelector:{buttonTheme:{fill:"#505053",stroke:"#000000",style:{color:"#CCC"},states:{hover:{fill:"#707073",stroke:"#000000",style:{color:"white"}},select:{fill:"#000003",stroke:"#000000",style:{color:"white"}}}},inputBoxBorderColor:"#505053",inputStyle:{backgroundColor:"#333",color:"silver"},labelStyle:{color:"silver"}},navigator:{handles:{backgroundColor:"#666",borderColor:"#AAA"},outlineColor:"#CCC",maskFill:"rgba(255,255,255,0.1)",series:{color:"#7798BF",lineColor:"#A6C7ED"},xAxis:{gridLineColor:"#505053"}},scrollbar:{barBackgroundColor:"#808083",barBorderColor:"#808083",buttonArrowColor:"#CCC",buttonBackgroundColor:"#606063",buttonBorderColor:"#606063",rifleColor:"#FFF",trackBackgroundColor:"#404043",trackBorderColor:"#404043"}};
Highcharts.setOptions(Highcharts.theme);
Highcharts.chart('time-chart', {
@ -135,7 +122,7 @@
series: [
{
name: 'Total',
data: {{ solved|safe }}
data: {{ solved|safe }}
},
{% for cat in cats %}
{

View File

@ -2,40 +2,42 @@
{% block content %}
{% load i18n %}
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<div class="ctf-head">
<h3>Register</h3>
</div>
<div class="ctf-body sign-body">
<div class="col-sm-8 col-md-6 mx-auto">
{% if registered %}
<h1>{% trans "Welcome !" %}</h1>
<span class="message success-msg">{% trans "Your account has been created." %}</span>
{% else %}
{% if registered_failed %}
<span class="message error-msg">{{ registered_failed }}</span>
{% endif %}
<form enctype="multipart/form-data" method="POST">
{% csrf_token %}
<div class="form-group">
<input class="form-control" type="text" name="username" placeholder="{% trans "Username" %} *" maxlength="150" required="" id="id_username" value="{{ old_username }}"></br>
<input class="form-control" type="password" name="password" placeholder="{% trans "Password" %} *" required="" id="id_password"></br>
<input class="form-control" type="email" name="email" placeholder="pleasedontgivemy@private.infos*" required="" maxlength="254" id="id_email" value="{{ old_email }}"></br>
<input class="form-control" type="url" name="portfolio_site" placeholder="{% trans "Personal website" %}"maxlength="200" id="id_portfolio_site" value="{{ old_website }}"></br>
<input type="submit" name="" class="form-control" value="{% trans "Register" %}">
</div>
</form>
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-sm-12 col-md-3 right-sidebar">
<ul class="list-group">
<a href="/accounts/signup" class="list-group-item">{% trans "Sign up" %}</a>
<a href="/accounts/signin" class="list-group-item">{% trans "Login" %}</a>
</ul>
</div>
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<div class="ctf-head">
<h3>Register</h3>
</div>
<div class="ctf-body sign-body">
<div class="col-sm-8 col-md-6 mx-auto">
{% if registered %}
<h1>{% trans "Welcome !" %}</h1>
<span class="message success-msg">{% trans "Your account has been created." %}</span>
{% else %}
{% if registered_failed %}
<span class="message error-msg">{{ registered_failed }}</span>
{% endif %}
<form enctype="multipart/form-data" method="POST">
{% csrf_token %}
<div class="form-group">
<input class="form-control" type="text" name="username" placeholder="{% trans "Username" %} *" maxlength="150" required="" id="id_username"></br>
<input class="form-control" type="password" name="password" placeholder="{% trans "Password" %} *" required="" id="id_password"></br>
<input class="form-control" type="email" name="email" placeholder="pleasedontgivemy@private.infos*" required="" maxlength="254" id="id_email"></br>
<input class="form-control" type="url" name="portfolio_site" placeholder="{% trans "Personal website" %}"maxlength="200" id="id_portfolio_site"></br>
<input type="submit" name="" class="form-control" value="{% trans "Register" %}">
</div>
</form>
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-sm-12 col-md-3 right-sidebar">
<ul class="list-group">
<a href="/accounts/signup" class="list-group-item">{% trans "Sign up" %}</a>
<a href="/accounts/signin" class="list-group-item">{% trans "Login" %}</a>
</ul>
</div>
</div>
{% endblock %}

View File

@ -10,11 +10,8 @@ urlpatterns = [
path('edit/', views.edit, name='edit'),
path('logout/', views.out, name='out'),
path('rank/<str:token>', views.rank, name='rank'),
path('connections/connect/discord', views.connection.connect_discord, name='connections-connect-discord'),
path('connections/connect/discord/authorize', views.connection.authorize_discord, name='connections-connect-discord-authorize'),
path('connections/disconnect/discord', views.connection.disconnect_discord, name='connections-disconnect-discord'),
path('connections/connect/intra42', views.connection.connect_intra42, name='connections-connect-intra42'),
path('connections/connect/intra42/authorize', views.connection.authorize_intra42, name='connections-connect-intra42-authorize'),
path('connections/disconnect/intra42', views.connection.disconnect_intra42, name='connections-disconnect-intra42'),
path('connections/connect/discord', views.connection.connect, name='connections-connect-discord'),
path('connections/connect/discord/authorize', views.connection.authorize, name='connections-connect-discord-authorize'),
path('connections/disconnect/discord', views.connection.disconnect, name='connections-disconnect-discord'),
path('delete_account/', views.delete_account, name='delete_account'),
]

View File

@ -4,106 +4,47 @@ from django.views.decorators.http import require_POST
from django.views.defaults import bad_request
from django.urls import reverse
from django.shortcuts import redirect
from django.contrib.sites.models import Site
from accounts.models import Campus
from django.db import IntegrityError
import os
oauth = OAuth()
oauth.register(
name='discord',
client_id=os.getenv('OAUTH2_DISCORD_CLIENT_ID'),
client_secret=os.getenv('OAUTH2_DISCORD_CLIENT_SECRET'),
access_token_url='https://discord.com/api/oauth2/token',
authorize_url='https://discord.com/api/oauth2/authorize',
client_kwargs={'scope': 'identify'},
api_base_url='https://discord.com/api/'
)
oauth.register(
name='intra42',
client_id=os.getenv('OAUTH2_INTRA42_CLIENT_ID'),
client_secret=os.getenv('OAUTH2_INTRA42_CLIENT_SECRET'),
access_token_url='https://api.intra.42.fr/oauth/token',
authorize_url='https://api.intra.42.fr/oauth/authorize',
api_base_url='https://api.intra.42.fr/'
name='discord',
client_id=os.getenv('OAUTH2_DISCORD_CLIENT_ID'),
client_secret=os.getenv('OAUTH2_DISCORD_CLIENT_SECRET'),
access_token_url='https://discord.com/api/oauth2/token',
authorize_url='https://discord.com/api/oauth2/authorize',
client_kwargs={'scope': 'identify'},
api_base_url='https://discord.com/api/'
)
@login_required
@require_POST
def connect_intra42(request):
if request.user.userprofileinfo.intra42_id:
return bad_request(request, "Already connected")
site = Site.objects.get_current()
redirect_uri = reverse('accounts:connections-connect-intra42-authorize')
redirect_uri = "https://" + site.domain + redirect_uri[3:] # remove language code
return oauth.intra42.authorize_redirect(request, redirect_uri)
def connect(request):
if request.user.userprofileinfo.discord_id:
return bad_request(request, "Already connected")
redirect_uri = reverse('accounts:connections-connect-discord-authorize')
redirect_uri = request.build_absolute_uri(redirect_uri)
print(redirect_uri)
return oauth.discord.authorize_redirect(request, redirect_uri)
@login_required
def authorize_intra42(request):
if request.user.userprofileinfo.intra42_id:
return bad_request(request, "Already connected")
try:
token = oauth.intra42.authorize_access_token(request)
except:
return redirect('accounts:edit')
response = oauth.intra42.get('v2/me', token=token)
response = response.json()
intra42_id = response['id']
intra42_campus = response['campus'][0]['name']
intra42_campus_id = response['campus'][0]['id']
request.user.userprofileinfo.intra42_id = intra42_id
request.user.userprofileinfo.campus, created = Campus.objects.get_or_create(id=intra42_campus_id, name=intra42_campus)
try:
request.user.userprofileinfo.save()
return redirect('accounts:edit')
except IntegrityError:
return redirect('accounts:edit')
def authorize(request):
if request.user.userprofileinfo.discord_id:
return bad_request(request, "Already connected")
token = oauth.discord.authorize_access_token(request)
response = oauth.discord.get('users/@me', token=token)
response = response.json()
discord_id = response['id']
request.user.userprofileinfo.discord_id = discord_id
request.user.userprofileinfo.save()
return redirect('accounts:edit')
@login_required
@require_POST
def disconnect_intra42(request):
if not request.user.userprofileinfo.intra42_id:
return bad_request(request, "Already disconnected")
request.user.userprofileinfo.intra42_id = None
request.user.userprofileinfo.intra42_campus = None
request.user.userprofileinfo.intra42_campus_id = None
request.user.userprofileinfo.campus = None
request.user.userprofileinfo.save()
return redirect('accounts:edit')
@login_required
@require_POST
def connect_discord(request):
if request.user.userprofileinfo.discord_id:
return bad_request(request, "Already connected")
site = Site.objects.get_current()
redirect_uri = reverse('accounts:connections-connect-discord-authorize')
redirect_uri = "https://" + site.domain + redirect_uri[3:] # remove language code
return oauth.discord.authorize_redirect(request, redirect_uri)
@login_required
def authorize_discord(request):
if request.user.userprofileinfo.discord_id:
return bad_request(request, "Already connected")
try:
token = oauth.discord.authorize_access_token(request)
except:
return redirect('accounts:edit')
response = oauth.discord.get('users/@me', token=token)
response = response.json()
discord_id = response['id']
request.user.userprofileinfo.discord_id = discord_id
request.user.userprofileinfo.save()
return redirect('accounts:edit')
@login_required
@require_POST
def disconnect_discord(request):
if not request.user.userprofileinfo.discord_id:
return bad_request(request, "Already disconnected")
request.user.userprofileinfo.discord_id = None
request.user.userprofileinfo.save()
return redirect('accounts:edit')
def disconnect(request):
if not request.user.userprofileinfo.discord_id:
return bad_request(request, "Already disconnected")
request.user.userprofileinfo.discord_id = None
request.user.userprofileinfo.save()
return redirect('accounts:edit')

View File

@ -43,69 +43,32 @@ def signup(request):
user_form = UserForm()
profile_form = UserProfileInfoForm()
registered = False
if request.method == 'POST':
username = request.POST.get('username')
passwd = request.POST.get('password')
email = request.POST.get('email')
website = request.POST.get('portfolio_site')
if len(passwd) < 8:
return render(request, 'accounts/register.html', {
'user_form': user_form,
'profile_form': profile_form,
'registered_failed': _("The password must be at least 8 characters long."),
'old_username': username,
'old_email': email,
'old_website': website
})
if not any(c.isdigit() for c in passwd) or not any(c.isalpha() for c in passwd):
return render(request, 'accounts/register.html', {
'user_form': user_form,
'profile_form': profile_form,
'registered_failed': _("The password must contain at least one letter and at least one digit or punctuation character."),
'old_username': username,
'old_email': email,
'old_website': website
})
pass1 = request.POST.get('password')
if len(pass1) < 8:
return render(request,'accounts/register.html', {'user_form':user_form, 'profile_form':profile_form, 'registered_failed':"The new password must be at least %d characters long." % 8})
first_isalpha = pass1[0].isalpha()
if not any(c.isdigit() for c in pass1) or not any(c.isalpha() for c in pass1):
return render(request,'accounts/register.html', {'user_form':user_form, 'profile_form':profile_form, 'registered_failed':_("The password must contain at least one letter and at least one digit or punctuation character.")})
if User.objects.filter(email=request.POST.get('email')).exists():
return render(request, 'accounts/register.html', {
'user_form': user_form,
'profile_form': profile_form,
'registered_failed': _("A user with that email already exists."),
'old_username': username,
'old_website': website
})
return render(request,'accounts/register.html', {'user_form':user_form, 'profile_form':profile_form, 'registered_failed':_("A user with that email already exists.")})
user_form = UserForm(data=request.POST)
profile_form = UserProfileInfoForm(data=request.POST)
if user_form.is_valid() and profile_form.is_valid():
user = user_form.save()
user.set_password(user.password)
user.save()
profile = profile_form.save(commit=False)
profile.user = user
profile.token = token_hex(16)
profile.save()
registered = True
else:
return render(request, 'accounts/register.html', {
'user_form': user_form,
'profile_form': profile_form,
'registered_failed': _("A user with that username already exists."),
'old_email': email,
'old_website': website
})
return render(request, 'accounts/register.html', {
'user_form': user_form,
'profile_form': profile_form,
'registered': registered
})
return render(request,'accounts/register.html', {'user_form':user_form, 'profile_form':profile_form, 'registered_failed':_("A user with that username already exists.")})
return render(request,'accounts/register.html',
{'user_form':user_form,
'profile_form':profile_form,
'registered':registered})
else:
return HttpResponseRedirect(reverse('home'))
@ -172,7 +135,7 @@ def profile(request, user_name):
# get datas
somme = 0
solved_count = len(solved)
pointDatas[cat.name] = []
pointDatas[cat.name].append([user_obj.date_joined.timestamp() * 1000, 0])
percent = (solved_count / max_count) * 100
@ -188,9 +151,20 @@ def profile(request, user_name):
for s in solves.reverse():
somme += s.ctf.points
solved.append([s.flag_date.timestamp() * 1000,somme])
created = CTF.objects.filter(author=user_obj, event=None)
return render(request,'accounts/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas,
'rank': rank, 'score' : somme, 'member' : member, 'cats':cats, 'created':created})
'rank': rank, 'score' : somme, 'member' : member, 'cats':cats})
def rank(request, token):
all_users = UserProfileInfo.objects.filter(score__gt=0).select_related().order_by('-score', 'last_submission_date', 'user__username')
rank = 1
for elem in all_users:
if elem.token == token:
break
rank += 1
data = {"rank": rank}
return JsonResponse(data)
@login_required
def delete_account(request):
@ -207,15 +181,4 @@ def delete_account(request):
return render(request, 'accounts/delete.html', {'deleted': False, 'bad_password': True})
else:
return render(request, 'accounts/delete.html', {'deleted': False, 'bad_password': False} )
def rank(request, token):
all_users = UserProfileInfo.objects.filter(score__gt=0).select_related().order_by('-score', 'last_submission_date', 'user__username')
rank = 1
for elem in all_users:
if elem.token == token:
break
rank += 1
data = {"rank": rank}
return JsonResponse(data)
return render(request, 'accounts/delete.html', {'deleted': False, 'bad_password': False} )

View File

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@ -1,6 +0,0 @@
from django.apps import AppConfig
class ApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'api'

View File

@ -1,3 +0,0 @@
from django.db import models
# Create your models here.

View File

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View File

@ -1,9 +0,0 @@
from django.urls import path
from . import views
urlpatterns = [
path('bot/discord', views.bot_discord_rank, name='bot_discord_rank'), # legacy, to remove when new bot is deployed
path('bot/discord/rank', views.bot_discord_rank, name='bot_discord_rank'), # use this
path('bot/discord/campus', views.bot_discord_campus, name='bot_discord_campus'),
path('events/<str:event_slug>', views.events_data, name='events_data'),
]

View File

@ -1,72 +0,0 @@
from django.shortcuts import render
from accounts.models import UserProfileInfo
from django.http import JsonResponse
import os
from events.models import Event, Team, EventPlayer
from django.shortcuts import get_object_or_404
# Create your views here.
def bot_discord_rank(request):
if request.method != 'GET':
return JsonResponse({'error':'bad request'})
token = request.GET.get('token')
auth_token = os.getenv('BOT_TOKEN')
if (token != auth_token or not auth_token):
return JsonResponse({'error':'not authorized'})
all_users = UserProfileInfo.objects.select_related().order_by('-score', 'last_submission_date', 'user__username')
data = {}
rank = 1
for user in all_users:
if user.discord_id:
data[user.discord_id] = rank
rank += 1
return JsonResponse(data)
def bot_discord_campus(request):
if request.method != 'GET':
return JsonResponse({'error':'bad request'})
token = request.GET.get('token')
auth_token = os.getenv('BOT_TOKEN')
if (token != auth_token or not auth_token):
return JsonResponse({'error':'not authorized'})
all_users = UserProfileInfo.objects.select_related().order_by('-score', 'last_submission_date', 'user__username')
data = {}
for user in all_users:
if user.campus and user.discord_id:
data[user.discord_id] = user.campus.name
return JsonResponse(data)
def events_data(request, event_slug):
if request.method != 'GET':
return JsonResponse({'error':'bad request'})
event_info = get_object_or_404(Event, slug=event_slug)
if event_info.password and request.GET.get('password') != event_info.password:
return JsonResponse({'error':'not authorized'})
players = EventPlayer.objects.filter(event=event_info)
data = {}
if event_info.team_size > 1:
for player in players:
if not player.team:
continue
if not player.team.name in data:
data[player.team.name] = []
data[player.team.name].append({"name": player.user.username, "score": player.score})
else:
for player in players:
data[player.user.username] = player.score
return JsonResponse(data)

View File

@ -2,6 +2,8 @@ from django.contrib import admin
from .models import Category, CTF, CTF_flags
admin.site.register(Category)
#admin.site.register(CTF)
#admin.site.register(CTF_flags)
@admin.register(CTF_flags)
class ctf_flags(admin.ModelAdmin):
@ -12,61 +14,12 @@ class ctf_flags(admin.ModelAdmin):
# search list
search_fields = ['ctf__category__name', 'ctf__name', 'user__username']
def get_queryset(self, request):
qs = super().get_queryset(request)
if request.user.is_superuser:
return qs
groups = list(request.user.groups.values_list('name', flat=True))
return qs.filter(event__name__in=groups)
def has_view_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_view_permission(request, obj)
def has_change_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_change_permission(request, obj)
def has_delete_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_delete_permission(request, obj)
@admin.register(CTF)
class ctf(admin.ModelAdmin):
#list display
list_display = ['name', 'event', 'category', 'points']
list_display = ['name', 'event', 'category']
#list Filter
list_filter = ('category', 'event')
# search list
search_fields = ['category__name', 'name', 'author__username']
def get_queryset(self, request):
qs = super().get_queryset(request)
if request.user.is_superuser:
return qs
groups = list(request.user.groups.values_list('name', flat=True))
return qs.filter(event__name__in=groups)
def has_view_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_view_permission(request, obj)
def has_change_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_change_permission(request, obj)
# Register your models here.

View File

@ -1,26 +0,0 @@
# Generated by Django 3.2.11 on 2022-02-15 16:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ctfs', '0007_ctf_disabled'),
]
operations = [
migrations.RemoveField(
model_name='ctf',
name='description_de',
),
migrations.RemoveField(
model_name='ctf',
name='description_ru',
),
migrations.AddField(
model_name='ctf',
name='port',
field=models.PositiveSmallIntegerField(blank=True, null=True),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.2.11 on 2023-09-17 17:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ctfs', '0008_auto_20220215_1713'),
]
operations = [
migrations.AddField(
model_name='ctf_flags',
name='bonus',
field=models.PositiveSmallIntegerField(default=0),
),
]

View File

@ -15,9 +15,10 @@ class CTF(models.Model):
disabled = models.BooleanField(default=False)
description = models.TextField(blank=True)
description_en = models.TextField(blank=True)
description_ru = models.TextField(blank=True)
description_de = models.TextField(blank=True)
file = models.FileField(blank=True, upload_to='challenges')
ctf_url = models.URLField(blank=True)
port = models.PositiveSmallIntegerField(null=True, blank=True)
event = models.ForeignKey(Event, null=True, blank=True, on_delete=models.CASCADE)
points = models.PositiveSmallIntegerField()
slug = models.SlugField(max_length=55)
@ -45,7 +46,6 @@ class CTF_flags(models.Model):
user = models.ForeignKey(User, unique=False, on_delete=models.CASCADE)
ctf = models.ForeignKey(CTF, unique=False, on_delete=models.CASCADE)
flag_date = models.DateTimeField('Flag date')
bonus = models.PositiveSmallIntegerField(default=0)
class Meta:
ordering = ['-flag_date']

View File

@ -1,26 +0,0 @@
from django.contrib import sitemaps
from django.urls import reverse
from .models import Category, CTF
from .views import category, ctf
class CategorySitemap(sitemaps.Sitemap):
changefreq = "weekly"
priority = 0.7
i18n = True
def items(self):
return Category.objects.all()
def location(self, obj):
return reverse(category, kwargs={'cat_slug': obj.slug})
class CTFSitemap(sitemaps.Sitemap):
changefreq = "weekly"
priority = 0.7
i18n = True
def items(self):
return CTF.objects.all()
def location(self, obj):
return reverse(ctf, kwargs={'cat_slug': obj.category.slug, 'ctf_slug': obj.slug})

@ -1 +0,0 @@
Subproject commit 5c7b5995fe12c0ed1bb10f97e56ec89377c98b54

View File

@ -2,13 +2,11 @@
{% block content %}
{% load i18n %}
{% load is_member %}
{% load get_chall %}
{% get_current_language as lang %}
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<div class="ctf-head">
<h1>{{ ctf.name }}</h1>
<h3>{{ ctf.name }}</h3>
<small>{% trans "Published date" %} : {{ ctf.pub_date }}</small>
</div>
{% if date < ctf.pub_date %}
@ -17,11 +15,11 @@
</div>
{% else %}
<div class="ctf-body">
{% get_chall_by_lang ctf lang as content %}
{{ content | safe }}
<!-- {% if ctf.port %}
<b>nc challenges.42ctf.org {{ ctf.port }}</b>
{% endif %} -->
{% if description %}
{{ description|safe }}
{% else %}
{% trans "No translation available. Please try another language (English or French)." %}
{% endif %}
</div>
<div class="ctf-footer">
{% if request.user.is_authenticated %}

View File

@ -2,10 +2,8 @@
{% block content %}
{% load i18n %}
<div class="row">
<div class="col-12 ctf-head">
<h1>{{ cat.name }}</h1>
</div>
<div class="col-sm-12 col-md-9 news-card">
<h3>{{ cat.name }}</h3>
{% if ctfs %}
<table class="table table-striped table-dark">
<thead>

View File

@ -1,12 +0,0 @@
from django import template
register = template.Library()
@register.simple_tag
def get_chall_by_lang(chall, lang):
filepath = "ctfs/templates/challenges/"+ lang + "/" + chall.slug + ".html"
try:
with open(filepath) as fp:
return fp.read()
except:
return chall.description_en

View File

@ -1,15 +1,7 @@
from django.contrib.sitemaps.views import sitemap
from django.urls import path
from .sitemaps import CategorySitemap, CTFSitemap
from . import views
sitemaps = {
'categories': CategorySitemap(),
'challenges': CTFSitemap(),
}
urlpatterns = [
path('<str:cat_slug>/', views.category, name='category'),
path('<str:cat_slug>/<str:ctf_slug>', views.ctf, name='ctf'),
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
path('<str:cat_slug>/<str:ctf_slug>', views.ctf, name='ctf')
]

View File

@ -8,6 +8,19 @@ from django.utils.translation import get_language
from math import log
from accounts.models import UserProfileInfo
def get_description_by_lang(ctf):
lang = get_language()
ret = None
if lang == "fr":
ret = ctf.description
elif lang == "en":
ret = ctf.description_en
elif lang == "de":
ret = ctf.description_de
elif lang == "ru":
ret = ctf.description_ru
return ret
def actualize_points(ctf):
if ctf.category.name == "-Intro-":
return
@ -37,6 +50,7 @@ def ctf(request, cat_slug, ctf_slug):
ctf_info = get_object_or_404(CTF, slug=ctf_slug, event=None)
flagged = False
solved_list = CTF_flags.objects.filter(ctf=ctf_info).order_by('flag_date')
description = get_description_by_lang(ctf_info)
if request.user.is_authenticated:
if CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
flagged = True
@ -52,12 +66,12 @@ def ctf(request, cat_slug, ctf_slug):
profil.score += ctf_info.points
profil.save()
actualize_points(ctf_info)
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'valitated': True, 'date': timezone.now()})
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'valitated': True, 'description': description, 'date': timezone.now()})
else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'failed': True, 'date': timezone.now()})
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'failed': True, 'description': description, 'date': timezone.now()})
else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': True, 'date': timezone.now()})
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': True, 'description': description, 'date': timezone.now()})
else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'date': timezone.now()})
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'description': description, 'date': timezone.now()})
else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': flagged, 'date': timezone.now()})
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': flagged, 'description': description, 'date': timezone.now()})

View File

@ -1,5 +1,5 @@
from django.contrib import admin
from .models import Event, EventPlayer, Team, Bonus
from .models import Event, EventPlayer, Team
@admin.register(Event)
class event(admin.ModelAdmin):
@ -8,27 +8,6 @@ class event(admin.ModelAdmin):
# search list
search_fields = ['name', 'slug', 'description', 'password']
def get_queryset(self, request):
qs = super().get_queryset(request)
if request.user.is_superuser:
return qs
groups = list(request.user.groups.values_list('name', flat=True))
return qs.filter(name__in=groups)
def has_view_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.name).exists()
return super().has_view_permission(request, obj)
def has_change_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.name).exists()
return super().has_change_permission(request, obj)
@admin.register(EventPlayer)
class score(admin.ModelAdmin):
#list display
@ -38,33 +17,7 @@ class score(admin.ModelAdmin):
# search list
search_fields = ['user__username', 'score', 'event__name']
def get_queryset(self, request):
qs = super().get_queryset(request)
if request.user.is_superuser:
return qs
groups = list(request.user.groups.values_list('name', flat=True))
return qs.filter(event__name__in=groups)
def has_view_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_view_permission(request, obj)
def has_change_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_change_permission(request, obj)
def has_delete_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_delete_permission(request, obj)
# Register your models here.
@admin.register(Team)
class team(admin.ModelAdmin):
@ -74,36 +27,3 @@ class team(admin.ModelAdmin):
list_filter = ('event',)
# search list
search_fields = ['name']
def get_queryset(self, request):
qs = super().get_queryset(request)
if request.user.is_superuser:
return qs
groups = list(request.user.groups.values_list('name', flat=True))
return qs.filter(event__name__in=groups)
def has_view_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_view_permission(request, obj)
def has_change_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_change_permission(request, obj)
def has_delete_permission(self, request, obj=None):
if request.user.is_superuser:
return True
if obj is not None:
return request.user.groups.filter(name=obj.event.name).exists()
return super().has_delete_permission(request, obj)
@admin.register(Bonus)
class bonus(admin.ModelAdmin):
#list display
list_display = ['points', 'absolute']

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.5 on 2022-02-12 18:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0007_event_auto_match'),
]
operations = [
migrations.AddField(
model_name='event',
name='dynamic',
field=models.BooleanField(default=False),
),
]

View File

@ -1,23 +0,0 @@
# Generated by Django 3.2.11 on 2022-02-15 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0008_event_dynamic'),
]
operations = [
migrations.AlterField(
model_name='eventplayer',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='team',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
]

View File

@ -1,19 +0,0 @@
# Generated by Django 3.2.11 on 2022-05-30 07:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0011_migration_campus'),
('events', '0009_auto_20220215_1706'),
]
operations = [
migrations.AddField(
model_name='event',
name='campus',
field=models.ManyToManyField(blank=True, to='accounts.Campus'),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 3.2.11 on 2023-09-17 17:00
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('events', '0010_event_campus'),
]
operations = [
migrations.CreateModel(
name='Bonus',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('absolute', models.BooleanField(default=True)),
('points', models.CharField(max_length=100, validators=[django.core.validators.int_list_validator])),
],
),
migrations.AddField(
model_name='event',
name='bonus',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='events.bonus'),
),
]

View File

@ -1,24 +0,0 @@
# Generated by Django 3.2.11 on 2023-09-17 18:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('events', '0011_bonus_points'),
]
operations = [
migrations.AlterField(
model_name='event',
name='bonus',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='events.bonus'),
),
migrations.AlterField(
model_name='eventplayer',
name='team',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='events.team'),
),
]

View File

@ -1,17 +1,9 @@
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import timezone
from django.core.validators import int_list_validator
import uuid
from accounts.models import Campus
# Create your models here.
class Bonus(models.Model):
absolute = models.BooleanField(default=True)
points = models.CharField(validators=[int_list_validator], max_length=100)
def __str__(self):
return self.points
class Event(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
name = models.CharField(max_length=200)
@ -24,9 +16,6 @@ class Event(models.Model):
slug = models.SlugField(max_length=55)
team_size = models.PositiveIntegerField(default=1)
auto_match = models.BooleanField(default=False)
dynamic = models.BooleanField(default=False)
campus = models.ManyToManyField(Campus, blank=True)
bonus = models.ForeignKey(Bonus, null=True, on_delete=models.SET_NULL, blank=True)
def __str__(self):
return self.name
@ -38,13 +27,15 @@ class Team(models.Model):
last_submission_date = models.DateTimeField('Last Submission Date', default=timezone.now)
auto = models.BooleanField(default=False)
def __str__(self):
return self.name
return self.name
class EventPlayer(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
event = models.ForeignKey(Event, on_delete=models.CASCADE)
score = models.PositiveIntegerField(default=0, db_index=True)
last_submission_date = models.DateTimeField('Last Submission Date', default=timezone.now)
team = models.ForeignKey(Team, on_delete=models.CASCADE, null=True, blank=True)
team = models.ForeignKey(Team, on_delete=models.CASCADE, null=True)
class Meta:
ordering = ['-score', 'last_submission_date', 'user__username']

View File

@ -1,24 +0,0 @@
from django.contrib import sitemaps
from django.urls import reverse
from .models import Event
class EventsSitemap(sitemaps.Sitemap):
changefreq = "daily"
priority = 0.7
i18n = True
def items(self):
return Event.objects.all()
def location(self, obj):
return reverse('events:event_info', kwargs={'event_slug': obj.slug})
class StaticViewSitemap(sitemaps.Sitemap):
priority = 0.7
changefreq = 'daily'
i18n = True
def items(self):
return ['events:events']
def location(self, item):
return reverse(item)

View File

@ -4,7 +4,6 @@
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<a href="{% url 'events:event_info' event_slug=event.slug %}">< Back to event</a>
<div class="ctf-head">
<h3>{{ event.name }}</h3>
<small>{% trans "This event starts at" %} : {{ event.start_date }}</small>
@ -12,29 +11,26 @@
<div class="ctf-footer">
<div class="col-sm-8 col-md-6 mx-auto">
{% if logged == True%}
{% if logged == True%}
{% if registered == False %}
<span class="message error-msg">{% trans "You need to be registered to the event." %}</span>
{% else %}
{% if invalid == True %}
<span class="message error-msg">{% trans "Invalid characters in name" %}</span>
{% endif %}
{% if exist == True %}
<span class="message error-msg">{% trans "Name already taken." %}</span>
{% endif %}
{% if exist == True %}
<span class="message error-msg">{% trans "Name already taken." %}</span>
{% endif %}
<h2>Create Team</h2>
<form method="post" action="{% url 'events:create_team' event_slug=event.slug %}" class="create-team-form">
{% csrf_token %}
<div class="form-group">
<input class="form-control" type="text" name="teamname" placeholder="{% trans "Team name" %} *" maxlength="150" required="" id="id_teamname"></br>
<input class="form-control" type="password" name="password" placeholder="{% trans "Password" %} *" required="" id="id_password"></br>
<input type="submit" name="" class="form-control" value="{% trans "Create Team" %}">
</div>
{% csrf_token %}
<div class="form-group">
<input class="form-control" type="text" name="teamname" placeholder="{% trans "Team name" %} *" maxlength="150" required="" id="id_teamname"></br>
<input class="form-control" type="password" name="password" placeholder="{% trans "Password" %} *" required="" id="id_password"></br>
<input type="submit" name="" class="form-control" value="{% trans "Create Team" %}">
</div>
</form>
{% endif %}
{% else %}
{% else %}
<h4>{% trans "You need to be logged to access this event." %}</h4>
{% endif %}
{% endif %}
</div>
</div>
</div>
@ -42,26 +38,24 @@
<div class="d-none d-md-block col-10 col-md-3 right-sidebar">
<ul class="list-group">
<li class="list-group-item">{{ event.name }}</li>
<li class="list-group-item">{% trans "Starts at" %} : <span style="position:absolute;right: 15px;">{{ event.start_date | date:'H:i d-m-y'}}</span></li>
<li class="list-group-item">{% trans "Ends at" %} : <span style="position:absolute;right: 15px;">{{ event.end_date | date:'H:i d-m-y'}}</span></li>
<li class="list-group-item">{% trans "Starts at" %} : {{ event.start_date | date:'H:i d-m-y'}}</li>
<li class="list-group-item">{% trans "Ends at" %} : {{ event.end_date | date:'H:i d-m-y'}}</li>
</ul>
<ul class="list-group">
<li class="list-group-item">{% trans "Manage my team" %}</li>
<a href="{% url 'events:join_team' event_slug=event.slug %}" class="list-group-item">→{% trans "Join Team" %}</a>
<a href="{% url 'events:create_team' event_slug=event.slug %}" class="list-group-item">{% trans "Create Team" %}</a>
</ul>
{% if event.auto_match %}
<ul class="list-group">
<li class="list-group-item">{% trans "Auto-matching" %}</li>
<form method='GET' action="{% url 'events:find_team' event_slug=event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Find me a team !" %}">
</li>
</form>
</ul>
{% endif %}
<a href="{% url 'events:join_team' event_slug=event.slug %}" class="list-group-item">{% trans "Join Team" %}</a>
</ul>
{% if event.auto_match %}
<ul class="list-group">
<form method='GET' action="{% url 'events:find_team' event_slug=event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Find me a team !" %}">
</li>
</form>
</ul>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -7,7 +7,7 @@
<div class="ctf-block">
<a href="{% url 'events:event_info' event_slug=event.slug %}">< Back to event</a>
<div class="ctf-head">
<h1>{% trans "Event" %} - {{ event.name }}</h1>
<h2>{% trans "Event" %} - {{ event.name }}</h2>
<h4>{{ ctf.name }}</h4>
<small>{% trans "Published date" %} : {{ ctf.pub_date }}</small>
</div>
@ -20,11 +20,16 @@
</div>
<div class="ctf-footer">
{% if request.user.is_authenticated %}
{% if subisover == True %}
<span class="message error-msg">{% trans "Subscriptions is over." %}</span>
{% endif %}
{% if alreadyregistered == True %}
<span class="message error-msg">{% trans "You're already registered to this event." %}</span>
{% endif %}
{% if congrat == True %}
<p>{% trans "Congratulation !" %}</p>
{% if bonus|add:"0" > 0 %}
<p>{% trans "Bonus points awarded" %} : {{ bonus }}</p>
{% endif %}
<p>{% trans "Congratulation !" %}</p>
{% elif alreadyflag == True %}
<p>{% trans "Already flagged" %}</p>
{% elif eventisover == True %}
@ -32,9 +37,7 @@
{% elif errorform == True %}
<p>{% trans "Error while processing your request. (Invalid Form)" %}</p>
{% elif notsub == True %}
<span class="message error-msg">{% trans "You must register to the event before submitting flags." %}</span>
{% elif noteam == True %}
<span class="message error-msg">{% trans "This is a team event, please create or join a team before submitting flags." %}</span>
<span class="message error-msg">{% trans "Error: you're not registered to this event, so you can't register scores, fucking logic." %}</span>
{% if ctf.ctf_url %}
<a class="begin-ctf-link" target="_blank" href="{{ ctf.ctf_url }}">{% trans "Start the challenge" %}</a></br>
{% elif ctf.file %}
@ -99,9 +102,6 @@
<ul class="list-group">
<li class="list-group-item">{% trans "Author" %} : <a style="position:absolute;right: 15px;" class="profile_link {{is_member}}" href="{% url 'accounts:profile' user_name=ctf.author.username %}">{{ ctf.author.username }}</a></li>
<li class="list-group-item">{% trans "Point reward" %} : <span style="position:absolute;right: 15px;">{{ ctf.points }}</span></li>
{% if ctf.event.bonus %}
<li class="list-group-item">{% trans "Speed Bonuses" %} : <span style="position:absolute;right: 15px;">{{ bonus_points }}</span></li>
{% endif %}
</ul>
</div>

View File

@ -13,7 +13,7 @@
{% endif %}
<div class="event-block">
<div class="event-head" style="background-image:linear-gradient(180deg, rgba(102,102,102,0.3) 100%, rgba(29,29,29,1) 100%),url('{{ event.img }}');">
<h1>{{ event.name }}</h1>
<h3>{{ event.name }}</h3>
{% if ended == True %}
<small>{% trans "This event is over." %}</small>
{% else %}
@ -26,7 +26,7 @@
{% endif %}
</div>
<div class="event-footer">
{% if begun == True or is_event_manager == True %}
{% if begun == True %}
<h4>{% trans "Challenges" %}</h4>
{% if ctfs %}

View File

@ -8,38 +8,22 @@
<h3>{{ event.name }}</h3>
<small>{% trans "This event start at" %} : {{ event.start_date }}</small>
</div>
<div class="ctf-footer">
{% if logged == True %}
{% if userHasCampus == False %}
<span class="message error-msg">
{% trans "This event is reserved for one or more 42 campuses. If you have not connected your intranet to 42CTF, you can do so with this button: " %}
<form action="{% url 'accounts:connections-connect-intra42' %}" method='POST' class="form-inline p-2">
{%csrf_token%}
<button class="btn btn-dark" type="submit">{% trans "Connect 42" %}</button>
</form>
</span>
{% if wrongpwd == True %}
<span class="message error-msg">{% trans "Wrong password submited." %}</span>
{% endif %}
{% if campusCanJoin == False %}
<span class="message error-msg">
{% trans "This event is reserved for one or more 42 campuses. And unfortunately your campus can't participate. Do not hesitate to contact us to organize an event on your campus!" %}
</span>
{% endif %}
{% if userHasCampus == True and campusCanJoin == True %}
{% if wrongpwd == True %}
<span class="message error-msg">{% trans "Wrong password submited." %}</span>
{% endif %}
{% if alreadyregistered == True %}
<span class="message error-msg">{% trans "You're already registered to this event." %}</span>
{% endif %}
<h4>{% trans "This event is password protected" %}</h4>
<small>{% trans "You need to submit the event password to gain access to this event." %}</small>
<form method="post" action="{% url 'events:submit_pwd' event_slug=event.slug %}" class="submitflag-form">
{% csrf_token %}
<input type="text" name="password" maxlength="48" required="">
<input class="form-control" type="submit" value=">">
</form>
{% if alreadyregistered == True %}
<span class="message error-msg">{% trans "You're already registered to this event." %}</span>
{% endif %}
<h4>{% trans "This event is password protected" %}</h4>
<small>{% trans "You need to submit the event password to gain access to this event." %}</small>
<form method="post" action="{% url 'events:submit_pwd' event_slug=event.slug %}" class="submitflag-form">
{% csrf_token %}
<input type="text" name="password" maxlength="48" required="">
<input class="form-control" type="submit" value=">">
</form>
{% else %}
<h4>{% trans "You need to be logged to access this event." %}</h4>
{% endif %}
@ -51,7 +35,7 @@
<li class="list-group-item">{{ event.name }}</li>
<li class="list-group-item">{% trans "Starts at" %} : {{ event.start_date | date:'H:i d-m-y'}}</li>
<li class="list-group-item">{% trans "Ends at" %} : {{ event.end_date | date:'H:i d-m-y'}}</li>
</ul>
</div>
</div>

View File

@ -2,8 +2,8 @@
{% block content %}
{% load i18n %}
<div class="row">
<div class="col-12 ctf-head">
<h1>{% trans "Events" %}</h1>
<div class="col-12">
<h3>{% trans "Events" %}</h3>
</div>
{% if events %}
{% for ev in events %}

View File

@ -4,7 +4,6 @@
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<a href="{% url 'events:event_info' event_slug=event.slug %}">< Back to event</a>
<div class="ctf-head">
<h3>{{ event.name }}</h3>
<small>{% trans "This event starts at" %} : {{ event.start_date }}</small>
@ -12,18 +11,18 @@
<div class="ctf-footer">
<div class="col-sm-8 col-md-6 mx-auto">
{% if logged == True%}
{% if logged == True%}
{% if registered == False %}
<span class="message error-msg">{% trans "You need to be registered to the event." %}</span>
{% else %}
{% if notexist == True %}
<span class="message error-msg">{% trans "Team does not exist." %}</span>
{% elif wrongpwd == True %}
<span class="message error-msg">{% trans "Wrong password submited." %}</span>
{% elif max == True %}
<span class="message error-msg">{% trans "Maximum size reached." %}</span>
{% elif exist == True %}
{% endif %}
{% if notexist == True %}
<span class="message error-msg">{% trans "Team does not exist." %}</span>
{% elif wrongpwd == True %}
<span class="message error-msg">{% trans "Wrong password submited." %}</span>
{% elif max == True %}
<span class="message error-msg">{% trans "Maximum size reached." %}</span>
{% elif exist == True %}
{% endif %}
<h2>Join Team</h2>
<form method="post" action="{% url 'events:join_team' event_slug=event.slug %}" class="join-team-form">
{% csrf_token %}
@ -32,11 +31,11 @@
<input class="form-control" type="password" name="password" placeholder="{% trans "Password" %} *" required="" id="id_password"></br>
<input type="submit" name="" class="form-control" value="{% trans "Join Team" %}">
</div>
</form>
</form>
{% endif %}
{% else %}
{% else %}
<h4>{% trans "You need to be logged to access this event." %}</h4>
{% endif %}
{% endif %}
</div>
</div>
</div>
@ -44,26 +43,24 @@
<div class="d-none d-md-block col-10 col-md-3 right-sidebar">
<ul class="list-group">
<li class="list-group-item">{{ event.name }}</li>
<li class="list-group-item">{% trans "Starts at" %} : <span style="position:absolute;right: 15px;">{{ event.start_date | date:'H:i d-m-y'}}</span></li>
<li class="list-group-item">{% trans "Ends at" %} : <span style="position:absolute;right: 15px;">{{ event.end_date | date:'H:i d-m-y'}}</span></li>
<li class="list-group-item">{% trans "Starts at" %} : {{ event.start_date | date:'H:i d-m-y' }}</li>
<li class="list-group-item">{% trans "Ends at" %} : {{ event.end_date | date:'H:i d-m-y' }}</li>
</ul>
<ul class="list-group">
<li class="list-group-item">{% trans "Manage my team" %}</li>
<a href="{% url 'events:join_team' event_slug=event.slug %}" class="list-group-item">{% trans "Join Team" %}</a>
<a href="{% url 'events:join_team' event_slug=event.slug %}" class="list-group-item">{% trans "Join Team" %}</a>
<a href="{% url 'events:create_team' event_slug=event.slug %}" class="list-group-item">{% trans "Create Team" %}</a>
</ul>
{% if event.auto_match %}
<ul class="list-group">
<li class="list-group-item">{% trans "Auto-matching" %}</li>
<form method='GET' action="{% url 'events:find_team' event_slug=event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Find me a team !" %}">
</li>
</form>
</ul>
{% endif %}
</ul>
{% if event.auto_match %}
<ul class="list-group">
<form method='GET' action="{% url 'events:find_team' event_slug=event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Find me a team !" %}">
</li>
</form>
</ul>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -45,28 +45,14 @@
{% for p in members %}
<li class="list-group-item"><a class="profile_link" href="{% url 'accounts:profile' user_name=p.user.username %}">{{ p.user.username }}</a></li>
{% endfor %}
<form method='POST' action="{% url 'events:leave_team' event_slug=player.event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Leave Team" %}">
</li>
</form>
</ul>
<form method='POST' action="{% url 'events:leave_team' event_slug=player.event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Leave Team" %}">
</li>
</form>
{% if player.team.auto == False and player.event.auto_match == True %}
<form method='POST' action="{% url 'events:open_team' event_slug=player.event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Open to automatching" %}">
</li>
</form>
{% elif player.event.auto_match == True %}
<form method='POST' action="{% url 'events:close_team' event_slug=player.event.slug %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Close to automatching" %}">
</li>
</form>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -1,168 +0,0 @@
{% extends 'base.html' %}
{% block content %}
{% load i18n %}
{% load key_value %}
{% load is_member %}
{% ismember user.userprofileinfo as is_member %}
<div class="row">
<div class="col-sm-12 col-md-9">
<a href="{% url 'events:event_info' event_slug=event.slug %}">< Back to event</a>
<div>
<h4>{% trans "Challenges Solved by" %} <span class="{{ is_member }}">{{ user.username }} - {{ event.name }}</span></h4>
{% if solves%}
<div class="table table-dark">
<div class="card-body">
<div id="time-chart"></div>
</div>
</div>
<table class="table table-dark">
<thead>
<tr>
<th scope="col">{% trans "Challenge Name" %}</th>
<th scope="col">{% trans "Category" %}</th>
<th scope="col">{% trans "Points" %}</th>
<th scope="col">{% trans "Bonus" %}</th>
<th scope="col">{% trans "Date" %}</th>
</tr>
</thead>
<tbody>
{% for s in solves %}
<tr>
<th scope="row"><a href="{% url 'events:event_chall_info' event_slug=event.slug chall_slug=s.ctf.slug %}">{{ s.ctf.name }}</a></th>
<td>{{ s.ctf.category.name}}</td>
<td>{{ s.ctf.points }}</td>
<td>{{ s.bonus }}</td>
<td>{{ s.flag_date|date:"Y-m-d H:i:s" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>{% trans "It seems that this user has not solved any challenge yet..." %}</p>
{% endif %}
</div>
</div>
<div class="d-none d-md-block col-10 col-md-3 right-sidebar">
<ul class="list-group">
<li class="list-group-item {{ is_member }}">{{ user.username }}</li>
<li class="list-group-item">{% trans "Score" %} : {{ score }}</li>
<li class="list-group-item">{% trans "Rank" %} : {{ rank }}</li>
{% if user.userprofileinfo.portfolio_site %}
<li class="list-group-item">
<a href="{{ user.userprofileinfo.portfolio_site }}" target="_blank">
{{ user.userprofileinfo.portfolio_site }}
</a>
</li>
{% endif %}
{% if member %}
<li class="list-group-item is-member">{% trans "Status: Member" %}</li>
{% else %}
<li class="list-group-item">{% trans "Status: Visitor" %}</li>
{% endif %}
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"d-m-Y" }}</li>
</ul>
<ul class="list-group">
<li class="list-group-item">{% trans "Categories stats" %}</li>
{% for cat in catsDatas %}
<li class="list-group-item" style="padding-bottom: 3;padding-top: 0;">
<span>{{ cat.0 }}</span>
<div class="progress">
{% if cat.3 == '0' %}
<div class="progress-bar bg-success" role="progressbar" style="width: 0%;color:#d9d9d9;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">0 %</div>
{% else %}
<div class="progress-bar bg-success" role="progressbar" style="width: {{ cat.3 }}%" aria-valuenow="{{ cat.3 }}" aria-valuemin="0" aria-valuemax="100">{{ cat.3 }} %</div>
{% endif %}
</div>
</li>
{% endfor %}
</ul>
<ul class="list-group">
<ul class="list-group">
<li class="list-group-item">{% trans "Challenges created" %}</li>
{% if created %}
{% for creat in created %}
<li class="list-group-item"><a href="{% url 'ctf' cat_slug=creat.category.slug ctf_slug=creat.slug %}">{{ creat.name }}</a></li>
{% endfor %}
{% else %}
<li class="list-group-item">{% trans "It seems that this user has not created any challenge yet..." %}</li>
{% endif %}
</ul>
</ul>
</div>
</div>
<script src="https://code.highcharts.com/highcharts.src.js"></script>
<script>
Highcharts.theme={colors:["#2b908f","#90ee7e","#f45b5b","#7798BF","#aaeeee","#ff0066","#eeaaee","#55BF3B","#DF5353","#7798BF","#aaeeee"],chart:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:1,y2:1},stops:[[0,"#1D1D1D"],[1,"#1D1D1D"]]},style:{fontFamily:"'Unica One', sans-serif"},plotBorderColor:"#606063"},title:{style:{color:"#E0E0E3",textTransform:"uppercase",fontSize:"20px"}},subtitle:{style:{color:"#E0E0E3",textTransform:"uppercase"}},xAxis:{gridLineColor:"#707073",labels:{style:{color:"#E0E0E3"}},lineColor:"#707073",minorGridLineColor:"#505053",tickColor:"#707073",title:{style:{color:"#A0A0A3"}}},yAxis:{gridLineColor:"#707073",labels:{style:{color:"#E0E0E3"}},lineColor:"#707073",minorGridLineColor:"#505053",tickColor:"#707073",tickWidth:1,title:{style:{color:"#A0A0A3"}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.85)",style:{color:"#F0F0F0"}},plotOptions:{series:{dataLabels:{color:"#F0F0F3",style:{fontSize:"13px"}},marker:{lineColor:"#333"}},boxplot:{fillColor:"#505053"},candlestick:{lineColor:"white"},errorbar:{color:"white"}},legend:{backgroundColor:"#1D1D1D",itemStyle:{color:"#E0E0E3"},itemHoverStyle:{color:"#FFF"},itemHiddenStyle:{color:"#606063"},title:{style:{color:"#C0C0C0"}}},credits:{style:{color:"#666"}},labels:{style:{color:"#707073"}},drilldown:{activeAxisLabelStyle:{color:"#F0F0F3"},activeDataLabelStyle:{color:"#F0F0F3"}},navigation:{buttonOptions:{symbolStroke:"#DDDDDD",theme:{fill:"#505053"}}},rangeSelector:{buttonTheme:{fill:"#505053",stroke:"#000000",style:{color:"#CCC"},states:{hover:{fill:"#707073",stroke:"#000000",style:{color:"white"}},select:{fill:"#000003",stroke:"#000000",style:{color:"white"}}}},inputBoxBorderColor:"#505053",inputStyle:{backgroundColor:"#333",color:"silver"},labelStyle:{color:"silver"}},navigator:{handles:{backgroundColor:"#666",borderColor:"#AAA"},outlineColor:"#CCC",maskFill:"rgba(255,255,255,0.1)",series:{color:"#7798BF",lineColor:"#A6C7ED"},xAxis:{gridLineColor:"#505053"}},scrollbar:{barBackgroundColor:"#808083",barBorderColor:"#808083",buttonArrowColor:"#CCC",buttonBackgroundColor:"#606063",buttonBorderColor:"#606063",rifleColor:"#FFF",trackBackgroundColor:"#404043",trackBorderColor:"#404043"}};
Highcharts.setOptions(Highcharts.theme);
Highcharts.chart('time-chart', {
title: {
text: 'Points earned for each category'
},
yAxis: {
title: {
text: 'Points earned'
}
},
xAxis: {
type: 'datetime',
labels: {
formatter: function() {
return Highcharts.dateFormat('%d.%b %Y',
this.value);
}
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
plotOptions: {
pointStart: {{ user.date_joined|timestamp_fromdate }},
series: {
label: {
connectorAllowed: false
},
allowPointSelect: true,
marker: {
enabled: true
}
}
},
series: [
{
name: 'Total',
data: {{ solved|safe }}
},
{% for cat in cats %}
{
name: '{{ cat.name }}',
data: {{ pointDatas|keyvalue:cat.name|safe }},
visible: false,
},
{% endfor %}
],
responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: 'horizontal',
align: 'center',
verticalAlign: 'bottom'
}
}
}]
}
});
</script>
{% endblock %}

View File

@ -1,18 +1,10 @@
from django.contrib.sitemaps.views import sitemap
from django.urls import path
from .sitemaps import StaticViewSitemap, EventsSitemap
from . import views
app_name = "events"
sitemaps = {
'events': EventsSitemap(),
'static': StaticViewSitemap(),
}
urlpatterns = [
path('', views.events, name='events'),
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
path('<str:event_slug>', views.event, name='event_info'),
path('<str:event_slug>/challenge/<str:chall_slug>', views.chall_event_info, name='event_chall_info'),
path('pwd/<str:event_slug>', views.submit_pwd, name='submit_pwd'),
@ -25,6 +17,4 @@ urlpatterns = [
path('<str:event_slug>/manage_team', views.manage_team, name='manage_team'),
path('<str:event_slug>/leave_team', views.leave_team, name='leave_team'),
path('find_team/<str:event_slug>', views.find_team, name='find_team'),
path('<str:event_slug>/open_team', views.open_team, name='open_team'),
path('<str:event_slug>/close_team', views.close_team, name='close_team'),
]

View File

@ -4,11 +4,9 @@ from django.contrib.auth.models import timezone
from ..forms import submit_flag
from ..models import Event, EventPlayer, Team
from ctfs.models import CTF, CTF_flags, Category
from accounts.models import UserProfileInfo
from django.utils.translation import get_language
from django.contrib.auth.models import User
from django.utils.translation import gettext_lazy as _
from math import log
def get_description_by_lang(ctf):
lang = get_language()
@ -23,49 +21,6 @@ def get_description_by_lang(ctf):
ret = ctf.description_ru
return ret
def actualize_points(ctf):
solves = CTF_flags.objects.filter(ctf=ctf)
nb_solves = len(solves)
new_points = max(50 - int(log(nb_solves)*2.5)*5, 5)
if new_points != ctf.points:
diff = ctf.points - new_points
ctf.points = new_points
ctf.save()
for s in solves:
player = EventPlayer.objects.get(event=ctf.event, user=s.user)
player.score -= diff
player.save()
if player.team:
player.team.score -= diff
player.team.save()
def compute_bonus_points(ctf):
if not ctf.event.bonus:
return 0
solves = CTF_flags.objects.filter(ctf=ctf)
bonuses = ctf.event.bonus.points.split(',')
if len(solves) >= len(bonuses):
return 0
else:
if ctf.event.bonus.absolute == True:
return int(bonuses[len(solves)])
else:
return int(bonuses[len(solves)]) * ctf.points // 100
def format_bonus_points(ctf):
if not ctf.event.bonus:
return None
bonuses = ctf.event.bonus.points.split(',')
if ctf.event.bonus.absolute == True:
return ''.join([b + ', ' for b in bonuses])[:-2]
return ''.join([str(ctf.points * int(b) // 100) + ', ' for b in bonuses])[:-2]
# Create your views here.
def events(request):
list_events = Event.objects.filter().order_by('-end_date', 'start_date')
@ -74,9 +29,7 @@ def events(request):
def chall_event_info(request, event_slug, chall_slug):
event_info = get_object_or_404(Event, slug=event_slug)
ctf_info = get_object_or_404(CTF, event__slug=event_info.slug, slug=chall_slug)
is_event_manager = request.user.groups.filter(name=event_info.name).exists() or request.user.is_superuser
if timezone.now() < ctf_info.pub_date and not is_event_manager:
if timezone.now() < ctf_info.pub_date:
return redirect('events:event_info', event_slug=event_slug)
eventisover = False
alreadyflag = False
@ -84,16 +37,14 @@ def chall_event_info(request, event_slug, chall_slug):
wrongflag = False
errorform = False
notsub = False
noteam = False
player = None
bonus = 0
if request.user.is_authenticated and not request.user.is_staff:
player = EventPlayer.objects.filter(event=event_info, user=request.user)
if not player:
return redirect('events:event_info', event_slug=event_slug)
elif not request.user.is_authenticated:
return redirect('accounts:signin')
if request.GET.get('EventIsOver') or timezone.now() > event_info.end_date:
if request.GET.get('EventIsOver'):
eventisover = True
if request.GET.get('AlreadyFlagged'):
alreadyflag = True
@ -105,10 +56,6 @@ def chall_event_info(request, event_slug, chall_slug):
errorform = True
if request.GET.get('NotRegistered'):
notsub = True
if request.GET.get('NoTeam'):
noteam = True
bonus = request.GET.get('Bonus')
bonus_points = format_bonus_points(ctf_info)
solved_challs = CTF_flags.objects.filter(ctf=ctf_info).order_by('flag_date')
solved_list = []
for s in solved_challs:
@ -118,65 +65,56 @@ def chall_event_info(request, event_slug, chall_slug):
solved_list.append([s.user, s.flag_date])
description = get_description_by_lang(ctf_info)
return render(request, 'events/ctf_info.html', { 'ctf' : ctf_info, 'event':event_info, 'solved_list': solved_list, 'description': description, 'eventisover': eventisover, 'alreadyflag': alreadyflag,
'congrat': congrat, 'wrongflag': wrongflag, 'errorform': errorform, 'notsub': notsub, 'noteam':noteam, 'bonus':bonus, 'bonus_points':bonus_points})
'congrat': congrat, 'wrongflag': wrongflag, 'errorform': errorform, 'notsub': notsub})
def event(request, event_slug):
event_info = get_object_or_404(Event, slug=event_slug)
IsRegistered = False
wrongpwd = False
alreadyregistered = False
subisover = False
is_event_manager = request.user.groups.filter(name=event_info.name).exists() or request.user.is_superuser
ended = (timezone.now() >= event_info.end_date)
begun = (timezone.now() >= event_info.start_date)
if is_event_manager: # we want to see all the challenges
challenges = CTF.objects.filter(event=event_info).order_by('category', 'points')
else:
challenges = CTF.objects.filter(event=event_info, pub_date__lte=timezone.now()).order_by('category', 'points')
if event_info.team_size == 1:
solved_list = EventPlayer.objects.filter(event=event_info).order_by('-score', 'last_submission_date', 'user__username')
else:
solved_list = Team.objects.filter(event=event_info).order_by('-score', 'last_submission_date', 'name')
if request.GET.get('WrongPassword'):
wrongpwd = True
if request.GET.get('AlreadyRegistered'):
alreadyregistered = True
if request.GET.get('SubscriptionIsOver'):
subisover = True
if request.user.is_authenticated:
try:
EventPlayer.objects.get(event=event_info, user=request.user)
return render(request, 'events/event_info.html', {'event' : event_info, 'IsRegistered': True, 'ctfs': challenges, 'solved_list':solved_list,
'ended': ended, 'begun': begun, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered, 'subisover': subisover, 'is_event_manager':is_event_manager})
player = EventPlayer.objects.get(event=event_info, user=request.user)
except:
pass
if (event_info.campus.all() or event_info.password) and request.user.is_authenticated is False:
return render(request, 'events/event_pwd.html', {'event' : event_info, 'logged': False})
if event_info.campus.all() and is_event_manager is False:
user = UserProfileInfo.objects.get(user=request.user)
if user.campus is None:
return render(request, 'events/event_pwd.html', {'event' : event_info, 'logged': True, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered, 'userHasCampus': False, 'campusCanJoin': True})
elif user.campus not in event_info.campus.all():
return render(request, 'events/event_pwd.html', {'event' : event_info, 'logged': True, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered, 'userHasCampus': True, 'campusCanJoin': False})
if event_info.password and is_event_manager is False:
return render(request, 'events/event_pwd.html', {'event' : event_info, 'logged': True, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered, 'userHasCampus': True, 'campusCanJoin': True})
return render(request, 'events/event_info.html', {'event' : event_info, 'ctfs': challenges, 'solved_list':solved_list, 'IsRegistered': False,
'ended': ended, 'begun': begun, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered, 'subisover': subisover, 'is_event_manager':is_event_manager})
player = None
if player:
IsRegistered = True
if not player.team and event_info.team_size > 1:
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
if event_info.password:
if request.user.is_authenticated:
if request.user.is_staff is False:
if not player:
return render(request, 'events/event_pwd.html', {'event' : event_info, 'logged': True, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered})
elif not player.team and event_info.team_size > 1:
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
else:
return render(request, 'events/event_pwd.html', {'event' : event_info, 'logged': False, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered})
ended = False
if timezone.now() >= event_info.end_date:
ended = True
begun = False
if timezone.now() >= event_info.start_date:
begun = True
challenges = CTF.objects.filter(event=event_info).order_by('category', 'points')
if event_info.team_size == 1:
solved_list = EventPlayer.objects.filter(event=event_info).order_by('-score', 'last_submission_date', 'user__username')
else:
solved_list = Team.objects.filter(event=event_info).order_by('-score', 'last_submission_date', 'name')
return render(request, 'events/event_info.html', {'event' : event_info, 'IsRegistered': IsRegistered, 'ctfs': challenges, 'solved_list':solved_list,
'ended': ended, 'begun': begun, 'wrongpwd': wrongpwd, 'alreadyregistered': alreadyregistered, 'subisover': subisover})
@login_required
def submit_event_flag(request, event_slug, chall_slug):
ev = get_object_or_404(Event, slug=event_slug)
response = redirect('events:event_chall_info', event_slug=event_slug, chall_slug=chall_slug)
flagged = False
if timezone.now() >= ev.end_date:
response['Location'] += '?EventIsOver=1'
@ -187,19 +125,13 @@ def submit_event_flag(request, event_slug, chall_slug):
if not ctf_info:
response['Location'] += '?ChallengeNotFound=1'
return response
try:
player = EventPlayer.objects.get(event=ev, user=request.user)
except:
player = None
flagged = False
player = EventPlayer.objects.get(user=request.user, event=ev)
if player:
if ev.team_size > 1 and player.team is None:
response['Location'] += '?NoTeam=1'
return response
if ev.team_size == 1:
if CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
flagged = True
if ev.team_size == 1 and CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
flagged = True
else:
solved_list = CTF_flags.objects.filter(ctf=ctf_info)
for s in solved_list:
@ -214,21 +146,18 @@ def submit_event_flag(request, event_slug, chall_slug):
if form.is_valid():
if ctf_info.flag == request.POST.get('flag'):
bonus = compute_bonus_points(ctf_info)
new = CTF_flags(user = request.user, ctf = ctf_info, flag_date = timezone.now(), bonus = bonus)
new = CTF_flags(user = request.user, ctf = ctf_info, flag_date = timezone.now())
new.save()
if ctf_info.points > 0:
player.last_submission_date = timezone.now()
player.score += (ctf_info.points + bonus)
player.score += ctf_info.points
player.save()
if player.team:
if ctf_info.points > 0:
player.team.last_submission_date = timezone.now()
player.team.score += (ctf_info.points + bonus)
player.team.score += ctf_info.points
player.team.save()
if ev.dynamic:
actualize_points(ctf_info)
response['Location'] += '?Congrat=1&Bonus=' + str(bonus)
response['Location'] += '?Congrat=1'
return response
else:
response['Location'] += '?WrongFlag=1'
@ -262,8 +191,10 @@ def submit_pwd(request, event_slug):
else:
new = EventPlayer(user=request.user, event=ev)
new.save()
if event_info.team_size > 1:
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
return redirect('events:event_info', event_slug=event_slug)
@login_required
def register_to_event(request, event_slug):
@ -283,6 +214,8 @@ def register_to_event(request, event_slug):
else:
new = EventPlayer(user=request.user, event=ev, score=0)
new.save()
if ev.team_size > 1:
return render(request, 'events/create_team.html', {'event' : ev, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
return redirect('events:event_info', event_slug=event_slug)
@login_required
@ -310,7 +243,7 @@ def profile(request, user_name, event_slug):
percent = (solved_count / max_count) * 100
catsDatas.append([cat.name, solved_count, max_count, '{:.0f}'.format(percent)])
for flag in solved:
somme += (flag.ctf.points + flag.bonus)
somme += flag.ctf.points
pointDatas[cat.name].append([flag.flag_date.timestamp() * 1000, somme])
solves = CTF_flags.objects.filter(user=user_obj, ctf__event=event_info).order_by('-flag_date')
@ -318,10 +251,10 @@ def profile(request, user_name, event_slug):
somme = 0
solved.append([event_info.start_date.timestamp() * 1000, 0])
for s in solves.reverse():
somme += (s.ctf.points + s.bonus)
somme += s.ctf.points
solved.append([s.flag_date.timestamp() * 1000,somme])
return render(request,'events/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas,
'rank': rank, 'score' : player.score, 'cats':cats, 'event': event_info})
return render(request,'accounts/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas,
'rank': rank, 'score' : somme, 'cats':cats})

View File

@ -11,25 +11,22 @@ from random import randint
@login_required
def create_team(request, event_slug):
response = redirect('events:create_team', event_slug=event_slug)
ev = get_object_or_404(Event, slug=event_slug)
if request.method == 'POST':
teamname = request.POST.get('teamname')
if request.user.is_authenticated and ev.team_size > 1:
if any(c in set('./') for c in teamname):
return render(request, 'events/create_team.html', {'event' : ev, 'logged': True, 'wrongpwd': False, 'registered' : True, 'exist' : False, 'invalid' : True})
if Team.objects.filter(name=teamname, event=ev).exists():
if Team.objects.filter(name=request.POST.get('teamname'), event=ev).exists():
return render(request, 'events/create_team.html', {'event' : ev, 'logged': True, 'wrongpwd': False, 'registered' : True, 'exist' : True})
new = Team(name=teamname, password=request.POST.get('password'), event=ev)
new = Team(name=request.POST.get('teamname'), password=request.POST.get('password'), event=ev)
new.save()
player = EventPlayer.objects.get(user=request.user, event=ev)
player.team = new
player.save()
return redirect('events:event_info', event_slug=event_slug)
else:
return render(request, 'events/create_team.html', {'event' : ev, 'logged': True, 'wrongpwd': False, 'registered' : True, 'exist' : False})
return redirect('events:event_info', event_slug=event_slug)
@login_required
def join_team(request, event_slug):
response = redirect('events:join_team', event_slug=event_slug)
ev = get_object_or_404(Event, slug=event_slug)
if request.method == 'POST':
if request.user.is_authenticated and ev.team_size > 1:
@ -49,9 +46,9 @@ def join_team(request, event_slug):
player = EventPlayer.objects.get(user=request.user, event=ev)
player.team = team
player.save()
return redirect('events:event_info', event_slug=event_slug)
else:
return render(request, 'events/join_team.html', {'event' : ev, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
return redirect('events:event_info', event_slug=event_slug)
@login_required
def team_info(request, name, event_slug):
@ -105,8 +102,6 @@ def team_info(request, name, event_slug):
def manage_team(request, event_slug):
event_info = get_object_or_404(Event, slug=event_slug)
player = EventPlayer.objects.get(user=request.user, event=event_info)
if not player.team:
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
members = EventPlayer.objects.filter(team=player.team, event=event_info)
if request.method == 'POST':
@ -118,10 +113,9 @@ def manage_team(request, event_slug):
pname = p_form.cleaned_data['name']
if pname == tname:
pass
elif any(c in set('./') for c in pname):
error = _("Invalid characters in name")
elif Team.objects.filter(name=pname, event=event_info).exists():
error = _("Name already taken.")
else:
if Team.objects.filter(name=pname, event=event_info).exists():
error = _("Name already taken.")
ppassword = p_form.cleaned_data['password']
if error is None:
p_form.save()
@ -141,21 +135,19 @@ def leave_team(request, event_slug):
player = EventPlayer.objects.get(user=request.user, event=event_info)
team = Team.objects.get(event=event_info, name=player.team.name)
team.score -= player.score
team.save()
player.team = None
player.save()
members = EventPlayer.objects.filter(team=team, event=event_info)
if members.count() == 0:
team.delete()
else:
team.score -= player.score
team.save()
solved = CTF_flags.objects.filter(user=player.user, ctf__event=event_info)
player.score = 0
solved.delete()
player.save()
return redirect('events:event_info', event_slug=event_slug)
members = EventPlayer.objects.filter(team=team, event=event_info)
if members.count() == 0:
team.delete()
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
@login_required
def find_team(request, event_slug):
@ -181,28 +173,4 @@ def find_team(request, event_slug):
player.team = team
player.save()
return redirect('events:event_info', event_slug=event_slug)
@login_required
def open_team(request, event_slug):
event_info = get_object_or_404(Event, slug=event_slug)
player = EventPlayer.objects.get(user=request.user, event=event_info)
if not player.team:
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
player.team.auto = True
player.team.save()
return redirect('events:manage_team', event_slug=event_slug)
@login_required
def close_team(request, event_slug):
event_info = get_object_or_404(Event, slug=event_slug)
player = EventPlayer.objects.get(user=request.user, event=event_info)
if not player.team:
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
player.team.auto = False
player.team.save()
return redirect('events:manage_team', event_slug=event_slug)
return redirect('events:event_info', event_slug=event_slug)

View File

@ -1,12 +0,0 @@
from django.contrib import sitemaps
from django.urls import reverse
class StaticViewSitemap(sitemaps.Sitemap):
priority = 0.5
changefreq = 'monthly'
i18n = True
def items(self):
return ['home', 'cgu']
def location(self, item):
return reverse(item)

View File

@ -4,7 +4,7 @@
{% get_current_language as lang %}
<div class="row">
<div class="col-12 news-card">
<h1>Conditions générales d'utilisation du site 42CTF</h1>
<h2>Conditions générales d'utilisation du site 42CTF</h2>
<h5>Article 1 : Objet</h5>

View File

@ -3,7 +3,6 @@
{% load i18n %}
{% get_current_language as lang %}
{% load is_member %}
{% load get_news %}
<div class="row">
<div class="col-lg-3 col-sm-12 right-sidebar middle-sm">
@ -35,8 +34,17 @@
<div class="card-body">
<h5 class="card-title">{{ n.name|safe }}</h5>
<p class="card-text">
{% get_news_by_lang n lang as content %}
{{ content | safe }}
{% if lang == "fr" and n.content %}
{{ n.content|safe }}
{% elif lang == "en" and n.content_en %}
{{ n.content_en|safe }}
{% elif lang == "de" and n.content_de %}
{{ n.content_de|safe }}
{% elif lang == "ru" and n.content_ru %}
{{ n.content_ru|safe }}
{% else %}
{% trans "No translation available. Please try another language (English or French)." %}
{% endif %}
</p>
</div>
<div class="card-footer text-muted">

View File

@ -1,4 +0,0 @@
Wie Sie es vielleicht schon wissen, braucht man um CTF Herausforderungen zu lösen viele Werkzeuge und es ist manchmal schwierig zu wissen welche benötigt werden.</br>
Wir haben eine VM erstellt, mit vorinstallierten Werkzeugen, damit Sie sich auf das wesentliche konzentrieren können: Flaggen!</br>
Alles was Sie tun müssen ist diese <b><a href="/media/xubuntu-42ctf.ova">OVA</a></b> herunterzuladen und auf <b><a href="https://www.virtualbox.org/wiki/Downloads">Virtual Box</a></b> zu importieren.<br>
Also, worauf warten Sie?

View File

@ -1,7 +0,0 @@
Haben Sie eine Änderung am Punktestand bemerkt?<br><br>
Keine Panik, alle Ihre Flaggen sind in Sicherheit. Wir haben bloß zu dynamischen Belohnungen gewächselt. Das heißt, dass die Punktzahl der Herausforderungen nicht mehr festgelegt ist: sie sinken nun jedes Mal, dass die Herausforderung gelöst wird.
Belohnungspunkte beginnen bei 200 und können nicht unter 5 fallen.<br><br>
Wir erhoffen, dass dadurch die echte Schwierigkeit der Herausforderungen besser gespiegelt werden kann. Zeitgebundene Ereignisse sind von dieser Änderung nicht beinträchtigt.

View File

@ -1,9 +0,0 @@
Suchen Sie Ihren Seelenverwandten, einen neuen Freund oder bloß einen dezenten CTF-Partner?<br><br>
Wir bei 42CTF haben was Sie brauchen: den <a href="/events/speed_dating_2022">Speed Dating CTF</a>!<br><br>
Kommen Sie alleine oder gut begleitet zu diesem sehr kurzen Wettbewerb, der nur 4 Studen dauern wird.<br>
Für dieses Team-CTF können Sie nur auf einen anderen Spieler zählen.<br>
Sie können entweder Ihren Partner aussuchen oder das Schicksal für sie entscheiden lassen.<br><br>
Viel Glück!

View File

@ -1,8 +0,0 @@
Schon immer lust gehabt etwas über SQL-Einbrüche zu lernen?<br>
<br>
Wir bieten Ihnen drei brandneue Herausvorderungen erstellt von <b><a class=profile_link href=https://www.42ctf.org/accounts/profile/aldubar>aldubar</a></b>:<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_1'>Simple Question of Logic 1</a></b> (10 Punkte)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_2'>Simple Question of Logic 2</a></b> (30 Punkte)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_3'>Simple Question of Logic 3</a></b> (40 Punkte)<br>
<br>
Vergessen Sie nicht, dass Sie uns jederzeit auf <a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30"></a> erreichen können, um uns neue Herausforderungen vorzuschalgen!

View File

@ -1,9 +0,0 @@
Neues zeitgebundenes Ereignis: <b>Welcome CTF 2021</b>!<br><br>
Datum: vom 10.12.2021 20 Uhr biz zum 12.12.2021 20 Uhr (Pariser Zeit).<br>
Es ist ein CTF um die Studenten die neulich 42 beigetreten haben zu begrüßen.<br>
Es wird nur für die Personen die ihren Kursus <b>nach</b> dem 01.09.2021 begonnen haben zugänglich sein.<br><br>
Ansonsten können Sie trotzdem die auf der Webseite bereits verfügbaren Herausforderungen lösen und versuchen das Top 10 zu erreichen!<br><br>
Registrieren Sie sich <a href=https://forms.42l.fr/apps/forms/SooTbnT4PCs9na7C>hier</a>.

View File

@ -1,4 +0,0 @@
As you may already be aware, solving CTF challenges require a lot of tools and it may be difficult to find out which ones you need to install. </br>
We've made a VM with everything you need for 42CTF challenges so that you can focus on what is really important: flag ! </br>
All you need to do is download this <b><a href="/media/xubuntu-42ctf.ova">OVA</a></b> and import it in <b><a href="https://www.virtualbox.org/wiki/Downloads">Virtual Box</a>.<br></b>
So, what are you waiting for ?

View File

@ -1,7 +0,0 @@
You noticed a little change in the 42CTF scoreboard ?<br><br>
Don't panic, all your flags are safe and sound. We just switched to dynamic scoring. It means that challenges points are not fixed anymore: they will now decrease with each solve.<br>
Challenges points start at 200, and cannot go below than 5.<br><br>
We hope that this will allow better reflecting of the actual difficulty of the challenges. Limited-time events are not affected by this change.

View File

@ -1,3 +0,0 @@
We're pleased to announce that 42CTF source code is now available on a self-hosted gitea <a class="footer_imgs" href="https://gitea.42ctf.org" target="_blank"><img src="/static/img/gitea_logo.png" width="30" alt="Gitea logo"></a><br><br>
If you want to contribute to the platform (development or translation), you can send us a message on <a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30" alt="Discord logo"></a> or simply fill this <a href="https://forms.42l.fr/apps/forms/bpmyGR37AR4yHGnC">form</a> and we'll contact you !

View File

@ -1,9 +0,0 @@
Looking for your soul mate, a new friend, or just a decent CTF companion ?<br><br>
We at 42CTF have what you need: the <a href="/events/speed_dating_2022">Speed Dating CTF</a> !<br><br>
Come alone or in good company for this very short competition, which will last only 4 hours.<br>
You will be able to count on only one other player for this team CTF.<br>
You can either choose your partner or you can let the fate decide for you.<br><br>
Good luck !

View File

@ -1,8 +0,0 @@
Always wanted to learn about SQL injections ? <br>
<br>
We offer you three brand new challenges created by <b><a class=profile_link href=https://www.42ctf.org/accounts/profile/aldubar>aldubar</a></b>:<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_1'>Simple Question of Logic 1</a></b> (10 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_2'>Simple Question of Logic 2</a></b> (30 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_3'>Simple Question of Logic 3</a></b> (40 points)<br>
<br>
Don't forget that you can always reach out on <a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30" alt="Discord logo"></a> to propose new challenges !

View File

@ -1,9 +0,0 @@
New limited-time event : <b>Welcome CTF 2021</b> !<br><br>
Dates: from 10/12/2021 8pm to 12/12/2021 8pm (Paris time).<br>
This is a CTF to welcome the new students who join us at 42.<br>
It will be accessible only for the persons who started their cursus <b>after</b> the 01/09/2021.<br><br>
For the others, you can still solve the challenges already available on the website and try to reach the top 10 ! <br><br>
Registration <a href=https://forms.42l.fr/apps/forms/SooTbnT4PCs9na7C>here</a>

View File

@ -1,4 +0,0 @@
Como ya sabrás, resolver retos CTF requiere un montón de herramientas y puede ser dificil encontrar cuales tienes que instalar. </br>
Hemos hecho una máquina virtual con todo lo que necesitas para resolver para resolver retos de 42CTF, para que te puedas concentrar en lo importante: Flags! </br>
Todo lo que necesitas es descargar esto <b><a href="/media/xubuntu-42ctf.ova">OVA</a></b> e importarlo en <b><a href="https://www.virtualbox.org/wiki/Downloads">Virtual Box</a>.<br></b>
¿A qué estás esperando?

View File

@ -1,7 +0,0 @@
¿ Has notado un pequeño cambio en la Tabla de Puntos de 42CTF ?<br><br>
No entres en pánico, todas tus flags estan a salvo. Solo hemos cambiado a puntuación dinámica. Esto significa que los puntos de retos no son fijos: irán disminuyendo cada vez que son resueltos.<br>
Los puntos de retos empiezan en 200, y no pueden valer menos de 5 puntos. <br><br>
Esperamos que esto ayude a reflejar la dificultad del reto. Eventos de tiempo limitado nos e ven afectados por este cambio.

View File

@ -1,9 +0,0 @@
¿ Estás buscando tu alma gemela ? ¿ Un nuevo amigo ? ¿ O simplemente un buen compañero de CTF ?<br><br>
Aquí en 42CTF tenemos lo que necesitas: el <a href="/events/speed_dating_2022">Speed Dating CTF</a> !<br><br>
Ven solo o en compañía a esta competición cortita, que solo durará 4 horas.<br>
Podrás contar con un solo compañero para este CTF por equipos.<br>
Puedes o elegir un compañero o dejar a la fortuna que elija por ti.<br><br>
¡ Buena suerte !

View File

@ -1,8 +0,0 @@
¿ Siempre has querido aprender sobre SQL injection ? <br>
<br>
Te ofrecemos tres nuevos retos creados por <b><a class=profile_link href=https://www.42ctf.org/accounts/profile/aldubar>aldubar</a></b>:<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_1'>Cuestión de lógica simple 1</a></b> (10 puntos)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_2'>Cuestión de lógica simple 2</a></b> (30 puntos)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_3'>Cuestión de lógica simple 3</a></b> (40 puntos)<br>
<br>
No te olvides que siempre puedes contactarnos en <a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30"></a> para proponer nuevos retos !

View File

@ -1,9 +0,0 @@
Nuevo evento de tiempo limitado: <b>Bienvenida a CTF 2021</b> !<br><br>
Fechas: desde 10/12/2021 8pm a 12/12/2021 8pm (Hora parís).<br>
Este CTF es una bienvenida para los nuevos estudiantes que se unan a 42.<br>
Solo estará disponible para las personas que empezaron su cursus <b>después</b> de 01/09/2021.<br><br>
Para otros, puedes resolver otros retos ya disponibles e intentar llegar al top 10! <br><br>
Registro: <a href=https://forms.42l.fr/apps/forms/SooTbnT4PCs9na7C>aquí</a>

View File

@ -1,7 +0,0 @@
Comme vous le savez surement déjà, résoudre des challenges nécessite beaucoup d'outils et il peut être difficile de savoir lesquels sont vraiment nécessaires. <br>
Nous avons créé une VM avec tout ce dont vous avez besoin pour 42CTF afin que vous vous concentriez sur ce qui compte vraiment : flag ! <br>
Tout ce dont vous avez besoin est de télécharger cet <b><a href="/media/xubuntu-42ctf.ova">OVA</a></b> et de l'importer dans <b><a href="https://www.virtualbox.org/wiki/Downloads">Virtual Box</a></b>.<br>
Alors, qu'est ce que vous attendez ?

View File

@ -1,7 +0,0 @@
Vous avez remarqué un petit changement sur le scoreboard de 42CTF ?<br><br>
Pas de panique, tous vos flags sont sains et saufs. Nous avons juste basculé sur du scoring dynamique. Cela signifie que les points des challenges ne sont plus fixes : ils diminueront désormais à chaque nouvelle résolution.<br>
Un challenge démarre à 200 points, et ne peut pas descendre en dessous de 5 points.<br><br>
Nous espérons que cela permettra de mieux refléter la véritable difficulté des challenges. Les événements à durée limitée ne sont pas concernés par ce changement.

View File

@ -1,3 +0,0 @@
Nous sommes heureux de vous annoncer que le code source de 42CTF est désormais disponible sur un <a class="footer_imgs" href="https://gitea.42ctf.org" target="_blank"><img src="/static/img/gitea_logo.png" width="30" alt="Logo Gitea"></a> auto-hébergé.<br><br>
Si vous voulez contribuer a la plateforme (développement ou traduction), vous pouvez nous envoyer un message sur <a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30" alt="Logo Discord"></a> ou simplement remplir ce <a href="https://forms.42l.fr/apps/forms/bpmyGR37AR4yHGnC">formulaire</a> et nous vous contacterons !

View File

@ -1,9 +0,0 @@
À la recherche de l'âme soeur, d'un nouvel ami, ou juste d'un compagnon de CTF ?<br><br>
Nous avons ce dont vous avez besoin : le <a href="/events/speed_dating_2022">Speed Dating CTF</a> !<br><br>
Venez seul ou bien accompagné pour cette très courte compétition, qui ne durera que 4 heures.<br>
Vous ne pourrez compter que sur une seule autre personne pour ce CTF en équipe.<br>
Vous pouvez soit choisir votre partenaire, soit laisser laisser le destin décider pour vous.<br><br>
Bonne chance !

View File

@ -1,8 +0,0 @@
Vous avez toujours voulu en apprendre plus sur les injections SQL ? <br>
<br>
On vous propose trois nouveaux challenges créés par <b><a class=profile_link href=https://www.42ctf.org/accounts/profile/aldubar>aldubar</a></b>:<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_1'>Simple Question of Logic 1</a></b> (10 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_2'>Simple Question of Logic 2</a></b> (30 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_3'>Simple Question of Logic 3</a></b> (40 points)<br>
<br>
N'oubliez pas que vous pouvez toujours nous contacter sur <a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30" alt="Logo Discord"></a> pour proposer des nouveaux challenges !

View File

@ -1,9 +0,0 @@
Nouvel évènement en temps limité : <b>Welcome CTF 2021</b> !<br><br>
Dates : du 10/12/2021 20h au 12/12/2021 20h. <br>
Il s'agit d'un CTF pour souhaiter la bienvenue aux nouveaux étudiants qui nous rejoignent à 42.<br>
Il ne sera donc accessible qu'aux personnes ayant effectué leur rentrée <b>après</b> le 01/09/2021.<br><br>
Pour les autres, vous pouvez toujours résoudre les challenges déjà disponibles sur le site et tenter de vous hisser dans le top 10 ! <br><br>
Inscriptions <a href=https://forms.42l.fr/apps/forms/SooTbnT4PCs9na7C>ici</a>

View File

@ -1,4 +0,0 @@
すでにお気づきかもしれませんが、CTFの課題を解くには多くのツールが必要で、どれをインストールすれば良いのかがわかりにくいかもしれません。</br>
私たちは、あなたが本当に重要なことに集中できるように、42CTFの課題に必要な全てのツールを備えたVMを作成しました。重要なのはフラグです</br>
この<b><a href="/media/xubuntu-42ctf.ova">OVA</a></b>をダウンロードし、<b><a href="https://www.virtualbox.org/wiki/Downloads">Virtual Box</a></b>にインポートするだけです。<br>
さて、何をためらっているのですか?

View File

@ -1,7 +0,0 @@
42CTFのスコアボードにちょっとした変化があったことにお気づきですか<br><br>
慌てないでください、 あなたのフラグはすべて無事です。 動的スコアリングに切り替えただけです。 それはチャレンジポイントがもう固定ではないことを意味します。解決するたびに減少します。<br>
チャレンジポイントは200から始まり、5より低くなることはありません。<br><br>
これにより、課題の実際の難易度をより良く反映できるようになると期待しています。期間限定イベントは、この変更の影響は受けません。

View File

@ -1,3 +0,0 @@
42CTFのソースコードがセルフホストのgitea <a class="footer_imgs" href="https://gitea.42ctf.org" target="_blank"><img src="/static/img/gitea_logo.png" width="30"></a> で公開されたことをお知らせします。<br><br>
プラットフォームへの貢献(開発や翻訳)をしていただける方は、 <a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30"></a> にメッセージをお送りいただくか、こちらの <a href="https://forms.42l.fr/apps/forms/bpmyGR37AR4yHGnC">フォーム</a> にご記入いただければご連絡いたします!

View File

@ -1,9 +0,0 @@
ソウルメイト、新しい友達、またはちょうど良いCTFの仲間を探していますか<br><br>
私たち42CTFは、あなたが求めているものを持っています。それは<a href="/events/speed_dating_2022">Speed Dating CTF</a>です!<br><br>
4時間という短い時間ですが、お一人でも、お仲間とご一緒でも、ぜひご参加ください。<br>
このチーム戦CTFでは、自分以外の一人のプレーヤーのみ頼ることができます。<br>
相手を選ぶもよし、運命に身を任せるもよし。<br><br>
幸運を祈ります!

View File

@ -1,8 +0,0 @@
SQLインジェクションについて学びたいと思ったことはありませんか<br>
<br>
<b><a class=profile_link href=https://www.42ctf.org/accounts/profile/aldubar>aldubar</a></b>が作成した全く新しい3つの課題を提供します。<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_1'>Simple Question of Logic 1</a></b> (10 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_2'>Simple Question of Logic 2</a></b> (30 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_3'>Simple Question of Logic 3</a></b> (40 points)<br>
<br>
新しい課題を提案するために、<a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30"></a>へいつでも連絡できることを忘れないでください!

View File

@ -1,9 +0,0 @@
期間限定の新イベント:<b>Welcome CTF 2021</b><br><br>
日程2021年12月10日20時2021年12月12日20時パリ時間<br>
42に入学する新入生を歓迎するためのCTFです。<br>
2021年9月1日<b>以降</b>にカーサスを開始した方のみアクセス可能です。<br><br>
それ以外の方は、ウェブサイト上で公開されている課題を解いて、トップ10入りを目指してください<br><br>
登録は<a href=https://forms.42l.fr/apps/forms/SooTbnT4PCs9na7C>こちら</a>

View File

@ -1,13 +0,0 @@
from django import template
from django.core.files.storage import default_storage
register = template.Library()
@register.simple_tag
def get_news_by_lang(news, lang):
filepath = "home/templates/news/"+ lang + "/" + news.slug + ".html"
try:
with open(filepath) as fp:
return fp.read()
except:
return news.content_en

View File

@ -1,14 +1,7 @@
from django.contrib.sitemaps.views import sitemap
from django.urls import path
from .sitemaps import StaticViewSitemap
from . import views
sitemaps = {
'static': StaticViewSitemap(),
}
urlpatterns = [
path('', views.home, name='home'),
path('CGU', views.cgu, name='cgu'),
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
]

View File

@ -8,16 +8,25 @@ from django.urls import translate_url
from django.utils.translation import (
LANGUAGE_SESSION_KEY, check_for_language, get_language,
)
from django.core.files.storage import default_storage
# import datetime
from django.utils import timezone
import datetime
from collections import defaultdict
import operator
def get_content_by_lang(news):
lang = get_language()
ret = None
if lang == "fr":
ret = news.content
elif lang == "en":
ret = news.content_en
elif lang == "de":
ret = news.content_de
elif lang == "ru":
ret = news.content_ru
return ret
def get_weekly_top():
week_ago = timezone.now() - timezone.timedelta(days=7)
week_ago = datetime.datetime.now() - datetime.timedelta(days=7)
weekly_flags = CTF_flags.objects.filter(flag_date__gt=week_ago, ctf__disabled=False, ctf__event=None)
scores = defaultdict(int)
@ -35,6 +44,7 @@ def home(request):
lang_code = request.session[LANGUAGE_SESSION_KEY]
url_translated = translate_url(request.path, lang_code)
if request.path != url_translated:
print("%s\n%s" % (request.path, url_translated))
response = HttpResponseRedirect(url_translated)
return response
news = new.objects.order_by('-pub_date')[:5]

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-16 19:28+0200\n"
"POT-Creation-Date: 2022-02-02 19:22+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,653 +18,576 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/accounts/templates/accounts/delete.html:8
#: accounts/templates/accounts/delete.html:8
msgid "Delete account"
msgstr ""
#: src/accounts/templates/accounts/delete.html:11
#: accounts/templates/accounts/delete.html:11
msgid "Please confirm your password to delete your account."
msgstr ""
#: src/accounts/templates/accounts/delete.html:12
#: accounts/templates/accounts/delete.html:12
msgid "Deleted accounts cannot be recovered."
msgstr ""
#: src/accounts/templates/accounts/delete.html:15
msgid "Password incorrect."
#: accounts/templates/accounts/delete.html:15
msgid "Password inccorect."
msgstr ""
#: src/accounts/templates/accounts/delete.html:17
#: accounts/templates/accounts/delete.html:17
msgid "Your account has been deleted."
msgstr ""
#: src/accounts/templates/accounts/delete.html:22
#: src/accounts/templates/accounts/login.html:19
#: src/accounts/templates/accounts/register.html:23
#: src/events/templates/events/create_team.html:27
#: src/events/templates/events/join_team.html:32
#: accounts/templates/accounts/delete.html:22
#: accounts/templates/accounts/login.html:19
#: accounts/templates/accounts/register.html:23
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr ""
#: src/accounts/templates/accounts/edit.html:21
#: src/accounts/templates/accounts/login.html:18
#: src/accounts/templates/accounts/register.html:22
#: src/ctfs/templates/ctfs/ctf_info.html:63
#: src/ctfs/templates/ctfs/ctfs_list.html:12
#: src/events/templates/events/ctf_info.html:65
#: src/events/templates/events/event_info.html:64
#: src/scoreboard/templates/scoreboard/scoreboard.html:13
#: accounts/templates/accounts/edit.html:21
#: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22
#: ctfs/templates/ctfs/ctf_info.html:61 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username"
msgstr ""
#: src/accounts/templates/accounts/edit.html:25
#: accounts/templates/accounts/edit.html:25
msgid "Email"
msgstr ""
#: src/accounts/templates/accounts/edit.html:30
#: src/ctfs/templates/ctfs/ctf_info.html:64
#: src/events/templates/events/ctf_info.html:66
#: src/events/templates/events/event_info.html:65
#: src/scoreboard/templates/scoreboard/scoreboard.html:14
#: accounts/templates/accounts/edit.html:30
#: ctfs/templates/ctfs/ctf_info.html:62
#: events/templates/events/ctf_info.html:72
#: events/templates/events/event_info.html:65
#: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website"
msgstr ""
#: src/accounts/templates/accounts/edit.html:36
msgid " Apply"
#: accounts/templates/accounts/edit.html:36
#: events/templates/events/manage_team.html:29
msgid "Apply"
msgstr ""
#: src/accounts/templates/accounts/edit.html:45
msgid "Connected accounts"
msgstr ""
#: src/accounts/templates/accounts/edit.html:53
msgid "Disconnect Discord"
msgstr ""
#: src/accounts/templates/accounts/edit.html:59
msgid "Connect Discord"
msgstr ""
#: src/accounts/templates/accounts/edit.html:68
msgid "Disconnect 42"
msgstr ""
#: src/accounts/templates/accounts/edit.html:74
#: src/events/templates/events/event_pwd.html:19
msgid "Connect 42"
msgstr ""
#: src/accounts/templates/accounts/edit.html:85
#: src/accounts/templates/accounts/profile.html:46
#: src/ctfs/templates/ctfs/ctf_info.html:65
#: src/ctfs/templates/ctfs/ctfs_list.html:13
#: src/events/templates/events/event_info.html:66
#: src/events/templates/events/event_info.html:89
#: src/events/templates/events/manage_team.html:40
#: src/events/templates/events/team.html:45
#: src/scoreboard/templates/scoreboard/scoreboard.html:16
#: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:63 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:66
#: events/templates/events/event_info.html:89
#: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score"
msgstr ""
#: src/accounts/templates/accounts/edit.html:93
#: src/accounts/templates/accounts/profile.html:60
#: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:60
msgid "Registered since"
msgstr ""
#: src/accounts/templates/accounts/edit.html:99
msgid " Delete my account"
#: accounts/templates/accounts/edit.html:61
msgid "Delete my account"
msgstr ""
#: src/accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/login.html:13
msgid "Please, verify your infos."
msgstr ""
#: src/accounts/templates/accounts/login.html:22
#: accounts/templates/accounts/login.html:22
msgid "Reset password"
msgstr ""
#: src/accounts/templates/accounts/login.html:31
#: src/accounts/templates/accounts/register.html:37 src/templates/base.html:97
#: src/templates/registration/password_reset_complete.html:18
#: src/templates/registration/password_reset_confirm.html:38
#: src/templates/registration/password_reset_done.html:18
#: src/templates/registration/password_reset_form.html:26
#: accounts/templates/accounts/login.html:31
#: accounts/templates/accounts/register.html:38 templates/base.html:103
#: templates/registration/password_reset_complete.html:18
#: templates/registration/password_reset_confirm.html:38
#: templates/registration/password_reset_done.html:18
#: templates/registration/password_reset_form.html:26
msgid "Login"
msgstr ""
#: src/accounts/templates/accounts/login.html:32
#: src/accounts/templates/accounts/register.html:36
#: src/templates/registration/password_reset_complete.html:19
#: src/templates/registration/password_reset_confirm.html:39
#: src/templates/registration/password_reset_done.html:19
#: src/templates/registration/password_reset_form.html:27
#: accounts/templates/accounts/login.html:32
#: accounts/templates/accounts/register.html:37
#: templates/registration/password_reset_complete.html:19
#: templates/registration/password_reset_confirm.html:39
#: templates/registration/password_reset_done.html:19
#: templates/registration/password_reset_form.html:27
msgid "Sign up"
msgstr ""
#: src/accounts/templates/accounts/profile.html:10
#: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by"
msgstr ""
#: src/accounts/templates/accounts/profile.html:21
#: src/events/templates/events/team.html:20
#: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20
msgid "Challenge Name"
msgstr ""
#: src/accounts/templates/accounts/profile.html:22
#: src/events/templates/events/team.html:21
#: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21
msgid "Category"
msgstr ""
#: src/accounts/templates/accounts/profile.html:23
#: src/events/templates/events/team.html:22
#: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22
msgid "Points"
msgstr ""
#: src/accounts/templates/accounts/profile.html:24
#: src/ctfs/templates/ctfs/ctf_info.html:66
#: src/events/templates/events/ctf_info.html:67
#: src/events/templates/events/team.html:23
#: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:64
#: events/templates/events/ctf_info.html:73
#: events/templates/events/team.html:23
msgid "Date"
msgstr ""
#: src/accounts/templates/accounts/profile.html:39
#: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..."
msgstr ""
#: src/accounts/templates/accounts/profile.html:47
#: src/events/templates/events/event_info.html:63
#: src/events/templates/events/event_info.html:87
#: src/events/templates/events/manage_team.html:41
#: src/events/templates/events/team.html:46
#: src/scoreboard/templates/scoreboard/scoreboard.html:12
#: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:63
#: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank"
msgstr ""
#: src/accounts/templates/accounts/profile.html:56
msgid "Member"
#: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr ""
#: src/accounts/templates/accounts/profile.html:58
msgid " Visitor"
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr ""
#: src/accounts/templates/accounts/profile.html:64
#: src/events/templates/events/team.html:57
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57
msgid "Categories stats"
msgstr ""
#: src/accounts/templates/accounts/profile.html:81
msgid "Challenges created"
msgstr ""
#: src/accounts/templates/accounts/profile.html:87
msgid "It seems that this user has not created any challenge yet..."
msgstr ""
#: src/accounts/templates/accounts/register.html:13
#: accounts/templates/accounts/register.html:13
msgid "Welcome !"
msgstr ""
#: src/accounts/templates/accounts/register.html:14
#: accounts/templates/accounts/register.html:14
msgid "Your account has been created."
msgstr ""
#: src/accounts/templates/accounts/register.html:25
#: accounts/templates/accounts/register.html:25
msgid "Personal website"
msgstr ""
#: src/accounts/templates/accounts/register.html:26
#: src/events/templates/events/event_info.html:119
#: accounts/templates/accounts/register.html:26
#: events/templates/events/event_info.html:119
msgid "Register"
msgstr ""
#: src/accounts/views/views.py:33
#: accounts/views/views.py:33
msgid "Your account was inactive."
msgstr ""
#: src/accounts/views/views.py:57
msgid "The password must be at least 8 characters long."
msgstr ""
#: src/accounts/views/views.py:67
#: accounts/views/views.py:52
msgid ""
"The password must contain at least one letter and at least one digit or "
"punctuation character."
msgstr ""
#: src/accounts/views/views.py:77
#: accounts/views/views.py:54
msgid "A user with that email already exists."
msgstr ""
#: src/accounts/views/views.py:99
#: accounts/views/views.py:67
msgid "A user with that username already exists."
msgstr ""
#: src/accounts/views/views.py:132
#: accounts/views/views.py:95
msgid "Email already taken."
msgstr ""
#: src/accounts/views/views.py:138
#: accounts/views/views.py:101
msgid "Username already taken."
msgstr ""
#: src/accounts/views/views.py:142 src/events/views/teams.py:124
#: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated."
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:12
#: src/events/templates/events/ctf_info.html:12
#: ctfs/templates/ctfs/ctf_info.html:10
#: events/templates/events/ctf_info.html:12
msgid "Published date"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:16
#: ctfs/templates/ctfs/ctf_info.html:14
msgid "Challenge is not yet available."
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:29
#: src/events/templates/events/ctf_info.html:24
msgid "Congratulation !"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:31
#: src/events/templates/events/ctf_info.html:26
msgid "Already flagged"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:33
#: src/ctfs/templates/ctfs/ctf_info.html:42
#: src/events/templates/events/ctf_info.html:36
#: src/events/templates/events/ctf_info.html:45
msgid "Start the challenge"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:35
#: src/ctfs/templates/ctfs/ctf_info.html:44
#: src/events/templates/events/ctf_info.html:38
#: src/events/templates/events/ctf_info.html:47
msgid "Download"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:39
#: src/events/templates/events/ctf_info.html:42
msgid "Wrong flag ! You can do it !"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:58
#: src/events/templates/events/ctf_info.html:60
msgid "Solved by"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:82
#: src/events/templates/events/ctf_info.html:90
msgid "Nobody has solved this challenge yet."
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:89
#: src/events/templates/events/ctf_info.html:97
msgid "Author"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:90
#: src/events/templates/events/ctf_info.html:98
msgid "Point reward"
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:14
msgid "Solved"
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:37
msgid "No ctf available for this category."
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:42
msgid "Categories"
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:48 src/templates/base.html:56
msgid "No category available."
msgstr ""
#: src/events/templates/events/create_team.html:10
#: src/events/templates/events/join_team.html:10
msgid "This event starts at"
msgstr ""
#: src/events/templates/events/create_team.html:17
#: src/events/templates/events/join_team.html:17
msgid "You need to be registered to the event."
msgstr ""
#: src/events/templates/events/create_team.html:20
#: src/events/views/teams.py:120
msgid "Name already taken."
msgstr ""
#: src/events/templates/events/create_team.html:26
#: src/events/templates/events/join_team.html:31
#: src/events/templates/events/manage_team.html:22
msgid "Team name"
msgstr ""
#: src/events/templates/events/create_team.html:28
#: src/events/templates/events/create_team.html:49
#: src/events/templates/events/join_team.html:54
msgid "Create Team"
msgstr ""
#: src/events/templates/events/create_team.html:33
#: src/events/templates/events/event_pwd.html:44
#: src/events/templates/events/join_team.html:38
msgid "You need to be logged to access this event."
msgstr ""
#: src/events/templates/events/create_team.html:42
#: src/events/templates/events/event_info.html:113
#: src/events/templates/events/event_pwd.html:52
#: src/events/templates/events/join_team.html:47
msgid "Starts at"
msgstr ""
#: src/events/templates/events/create_team.html:43
#: src/events/templates/events/event_info.html:114
#: src/events/templates/events/event_pwd.html:53
#: src/events/templates/events/join_team.html:48
msgid "Ends at"
msgstr ""
#: src/events/templates/events/create_team.html:47
#: src/events/templates/events/event_info.html:129
#: src/events/templates/events/join_team.html:52
msgid "Manage my team"
msgstr ""
#: src/events/templates/events/create_team.html:48
#: src/events/templates/events/join_team.html:33
#: src/events/templates/events/join_team.html:53
msgid "Join Team"
msgstr ""
#: src/events/templates/events/create_team.html:53
#: src/events/templates/events/join_team.html:58
msgid "Auto-matching"
msgstr ""
#: src/events/templates/events/create_team.html:57
#: src/events/templates/events/join_team.html:62
msgid "Find me a team !"
msgstr ""
#: src/events/templates/events/ctf_info.html:10
msgid "Event"
msgstr ""
#: src/events/templates/events/ctf_info.html:18
#: ctfs/templates/ctfs/ctf_info.html:21
#: events/templates/events/ctf_info.html:18 home/templates/home/home.html:46
msgid ""
"No translation available. Please try another language (English or French)."
msgstr ""
#: src/events/templates/events/ctf_info.html:28
#: src/events/templates/events/event_info.html:18
msgid "This event is over."
#: ctfs/templates/ctfs/ctf_info.html:27
#: events/templates/events/ctf_info.html:32
msgid "Congratulation !"
msgstr ""
#: src/events/templates/events/ctf_info.html:30
msgid "Error while processing your request. (Invalid Form)"
#: ctfs/templates/ctfs/ctf_info.html:29
#: events/templates/events/ctf_info.html:34
msgid "Already flagged"
msgstr ""
#: src/events/templates/events/ctf_info.html:32
msgid "You must register to the event before submitting flags."
#: ctfs/templates/ctfs/ctf_info.html:31 ctfs/templates/ctfs/ctf_info.html:40
#: events/templates/events/ctf_info.html:42
#: events/templates/events/ctf_info.html:51
msgid "Start the challenge"
msgstr ""
#: src/events/templates/events/ctf_info.html:34
msgid ""
"This is a team event, please create or join a team before submitting flags."
#: ctfs/templates/ctfs/ctf_info.html:33 ctfs/templates/ctfs/ctf_info.html:42
#: events/templates/events/ctf_info.html:44
#: events/templates/events/ctf_info.html:53
msgid "Download"
msgstr ""
#: src/events/templates/events/event_info.html:9
#: ctfs/templates/ctfs/ctf_info.html:37
#: events/templates/events/ctf_info.html:48
msgid "Wrong flag ! You can do it !"
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:56
#: events/templates/events/ctf_info.html:66
msgid "Solved by"
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:80
#: events/templates/events/ctf_info.html:96
msgid "Nobody has solved this challenge yet."
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:87
#: events/templates/events/ctf_info.html:103
msgid "Author"
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:88
#: events/templates/events/ctf_info.html:104
msgid "Point reward"
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:14
msgid "Solved"
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:37
msgid "No ctf available for this category."
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:42
msgid "Categories"
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:48 templates/base.html:54
msgid "No category available."
msgstr ""
#: events/templates/events/create_team.html:9
#: events/templates/events/join_team.html:9
msgid "This event starts at"
msgstr ""
#: events/templates/events/create_team.html:16
#: events/templates/events/join_team.html:16
msgid "You need to be registered to the event."
msgstr ""
#: events/templates/events/create_team.html:19 events/views/teams.py:118
msgid "Name already taken."
msgstr ""
#: events/templates/events/create_team.html:25
#: events/templates/events/join_team.html:30
#: events/templates/events/manage_team.html:22
msgid "Team name"
msgstr ""
#: events/templates/events/create_team.html:27
#: events/templates/events/create_team.html:46
#: events/templates/events/join_team.html:52
msgid "Create Team"
msgstr ""
#: events/templates/events/create_team.html:32
#: events/templates/events/event_pwd.html:28
#: events/templates/events/join_team.html:37
msgid "You need to be logged to access this event."
msgstr ""
#: events/templates/events/create_team.html:41
#: events/templates/events/event_info.html:113
#: events/templates/events/event_pwd.html:36
#: events/templates/events/join_team.html:46
msgid "Starts at"
msgstr ""
#: events/templates/events/create_team.html:42
#: events/templates/events/event_info.html:114
#: events/templates/events/event_pwd.html:37
#: events/templates/events/join_team.html:47
msgid "Ends at"
msgstr ""
#: events/templates/events/create_team.html:47
#: events/templates/events/join_team.html:32
#: events/templates/events/join_team.html:51
msgid "Join Team"
msgstr ""
#: events/templates/events/create_team.html:54
#: events/templates/events/join_team.html:59
msgid "Find me a team !"
msgstr ""
#: events/templates/events/ctf_info.html:10
msgid "Event"
msgstr ""
#: events/templates/events/ctf_info.html:25
#: events/templates/events/event_info.html:9
msgid "Subscriptions is over."
msgstr ""
#: src/events/templates/events/event_info.html:12
#: src/events/templates/events/event_pwd.html:33
#: events/templates/events/ctf_info.html:28
#: events/templates/events/event_info.html:12
#: events/templates/events/event_pwd.html:18
msgid "You're already registered to this event."
msgstr ""
#: src/events/templates/events/event_info.html:20
#: src/events/templates/events/event_pwd.html:9
#: events/templates/events/ctf_info.html:36
#: events/templates/events/event_info.html:18
msgid "This event is over."
msgstr ""
#: events/templates/events/ctf_info.html:38
msgid "Error while processing your request. (Invalid Form)"
msgstr ""
#: events/templates/events/ctf_info.html:40
msgid ""
"Error: you're not registered to this event, so you can't register scores, "
"fucking logic."
msgstr ""
#: events/templates/events/event_info.html:20
#: events/templates/events/event_pwd.html:9
msgid "This event start at"
msgstr ""
#: src/events/templates/events/event_info.html:30
#: events/templates/events/event_info.html:30
msgid "Challenges"
msgstr ""
#: src/events/templates/events/event_info.html:47
#: events/templates/events/event_info.html:47
msgid "No challenges available."
msgstr ""
#: src/events/templates/events/event_info.html:51
#: events/templates/events/event_info.html:51
msgid "The event has not started yet."
msgstr ""
#: src/events/templates/events/event_info.html:57
#: events/templates/events/event_info.html:57
msgid "ScoreBoard"
msgstr ""
#: src/events/templates/events/event_info.html:88
#: events/templates/events/event_info.html:88
msgid "Team"
msgstr ""
#: src/events/templates/events/event_info.html:106
#: events/templates/events/event_info.html:106
msgid "No one have earn point yet, you gonna be the first ?"
msgstr ""
#: src/events/templates/events/event_pwd.html:16
msgid ""
"This event is reserved for one or more 42 campuses. If you have not "
"connected your intranet to 42CTF, you can do so with this button: "
#: events/templates/events/event_info.html:129
msgid "Manage my team"
msgstr ""
#: src/events/templates/events/event_pwd.html:25
msgid ""
"This event is reserved for one or more 42 campuses. And unfortunately your "
"campus can't participate. Do not hesitate to contact us to organize an event "
"on your campus!"
msgstr ""
#: src/events/templates/events/event_pwd.html:30
#: src/events/templates/events/join_team.html:22
#: events/templates/events/event_pwd.html:15
#: events/templates/events/join_team.html:21
msgid "Wrong password submited."
msgstr ""
#: src/events/templates/events/event_pwd.html:35
#: events/templates/events/event_pwd.html:20
msgid "This event is password protected"
msgstr ""
#: src/events/templates/events/event_pwd.html:36
#: events/templates/events/event_pwd.html:21
msgid "You need to submit the event password to gain access to this event."
msgstr ""
#: src/events/templates/events/events_list.html:6 src/templates/base.html:65
#: events/templates/events/events_list.html:6 templates/base.html:63
msgid "Events"
msgstr ""
#: src/events/templates/events/events_list.html:38
#: events/templates/events/events_list.html:38
msgid "See more"
msgstr ""
#: src/events/templates/events/events_list.html:44
#: events/templates/events/events_list.html:44
msgid "No events available."
msgstr ""
#: src/events/templates/events/join_team.html:20
#: events/templates/events/join_team.html:19
msgid "Team does not exist."
msgstr ""
#: src/events/templates/events/join_team.html:24
#: events/templates/events/join_team.html:23
msgid "Maximum size reached."
msgstr ""
#: src/events/templates/events/manage_team.html:26
#: events/templates/events/manage_team.html:26
msgid "Team password"
msgstr ""
#: src/events/templates/events/manage_team.html:29
msgid "Apply"
msgstr ""
#: src/events/templates/events/manage_team.html:44
#: src/events/templates/events/team.html:49
#: events/templates/events/manage_team.html:44
#: events/templates/events/team.html:49
msgid "Members"
msgstr ""
#: src/events/templates/events/manage_team.html:52
#: events/templates/events/manage_team.html:51
msgid "Leave Team"
msgstr ""
#: src/events/templates/events/manage_team.html:59
msgid "Open to automatching"
msgstr ""
#: src/events/templates/events/manage_team.html:66
msgid "Close to automatching"
msgstr ""
#: src/events/templates/events/team.html:38
#: events/templates/events/team.html:38
msgid "It seems that this team has not solved any challenge yet..."
msgstr ""
#: src/home/templates/home/home.html:21
#: home/templates/home/home.html:20
msgid "Weekly Top 5"
msgstr ""
#: src/home/templates/home/home.html:48
#: home/templates/home/home.html:56
msgid "No article available."
msgstr ""
#: src/home/templates/home/home.html:53
#: home/templates/home/home.html:61
msgid "Latest challenges added"
msgstr ""
#: src/home/templates/home/home.html:58
#: home/templates/home/home.html:66
msgid "points"
msgstr ""
#: src/home/templates/home/home.html:62
#: home/templates/home/home.html:70
msgid "No ctf available."
msgstr ""
#: src/home/templates/home/home.html:66
#: home/templates/home/home.html:74
msgid "Latest Flags"
msgstr ""
#: src/home/templates/home/home.html:80
#: home/templates/home/home.html:88
msgid "Flags"
msgstr ""
#: src/home/templates/home/home.html:86
#: home/templates/home/home.html:94
msgid "Users"
msgstr ""
#: src/project/settings.py:116
#: project/settings.py:115
msgid "English"
msgstr ""
#: src/project/settings.py:117
#: project/settings.py:116
msgid "German"
msgstr ""
#: src/project/settings.py:118
#: project/settings.py:117
msgid "French"
msgstr ""
#: src/project/settings.py:119
#: project/settings.py:118
msgid "Russian"
msgstr ""
#: src/project/settings.py:120
msgid "Japanese"
msgstr ""
#: src/project/settings.py:121
msgid "Spanish"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Campus"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:47
#: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:51
#: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page "
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:55
#: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:56
#: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last"
msgstr ""
#: src/templates/base.html:62
#: templates/base.html:59
msgid "Scoreboard"
msgstr ""
#: src/templates/base.html:83
msgid "Become a member"
#: templates/base.html:66
msgid "Resources"
msgstr ""
#: src/templates/base.html:93
#: templates/base.html:99
msgid "Logout"
msgstr ""
#: src/templates/base.html:100
#: templates/base.html:106
msgid "Sign Up"
msgstr ""
#: src/templates/registration/password_reset_complete.html:11
#: templates/base.html:144
msgid "Become a Patron!"
msgstr ""
#: templates/registration/password_reset_complete.html:11
msgid "Your new password has been set."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:20
#: templates/registration/password_reset_confirm.html:20
msgid "Your password cant be too similar to your other personal information."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:21
#: templates/registration/password_reset_confirm.html:21
msgid "Your password must contain at least 8 characters."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:22
#: templates/registration/password_reset_confirm.html:22
msgid "Your password cant be a commonly used password."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:23
#: templates/registration/password_reset_confirm.html:23
msgid "Your password cant be entirely numeric."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:26
#: templates/registration/password_reset_confirm.html:26
msgid "Confirm"
msgstr ""
#: src/templates/registration/password_reset_confirm.html:28
#: templates/registration/password_reset_confirm.html:28
msgid "Submit"
msgstr ""
#: src/templates/registration/password_reset_done.html:11
#: templates/registration/password_reset_done.html:11
msgid ""
"We've emailed you instructions for setting your password. You should receive "
"the email shortly!"
msgstr ""
#: src/templates/registration/password_reset_form.html:16
#: templates/registration/password_reset_form.html:16
msgid "Reset"
msgstr ""

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-16 19:28+0200\n"
"POT-Creation-Date: 2022-02-02 19:22+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,241 +18,189 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: src/accounts/templates/accounts/delete.html:8
#: accounts/templates/accounts/delete.html:8
#, fuzzy
#| msgid "Connected accounts"
msgid "Delete account"
msgstr "Comptes connectés"
#: src/accounts/templates/accounts/delete.html:11
#: accounts/templates/accounts/delete.html:11
msgid "Please confirm your password to delete your account."
msgstr ""
#: src/accounts/templates/accounts/delete.html:12
#: accounts/templates/accounts/delete.html:12
msgid "Deleted accounts cannot be recovered."
msgstr ""
#: src/accounts/templates/accounts/delete.html:15
msgid "Password incorrect."
#: accounts/templates/accounts/delete.html:15
msgid "Password inccorect."
msgstr ""
#: src/accounts/templates/accounts/delete.html:17
#: accounts/templates/accounts/delete.html:17
#, fuzzy
#| msgid "Your account has been created."
msgid "Your account has been deleted."
msgstr "Votre compte a été créé."
#: src/accounts/templates/accounts/delete.html:22
#: src/accounts/templates/accounts/login.html:19
#: src/accounts/templates/accounts/register.html:23
#: src/events/templates/events/create_team.html:27
#: src/events/templates/events/join_team.html:32
#: accounts/templates/accounts/delete.html:22
#: accounts/templates/accounts/login.html:19
#: accounts/templates/accounts/register.html:23
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr "Mot de passe"
#: src/accounts/templates/accounts/edit.html:21
#: src/accounts/templates/accounts/login.html:18
#: src/accounts/templates/accounts/register.html:22
#: src/ctfs/templates/ctfs/ctf_info.html:63
#: src/ctfs/templates/ctfs/ctfs_list.html:12
#: src/events/templates/events/ctf_info.html:65
#: src/events/templates/events/event_info.html:64
#: src/scoreboard/templates/scoreboard/scoreboard.html:13
#: accounts/templates/accounts/edit.html:21
#: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22
#: ctfs/templates/ctfs/ctf_info.html:61 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username"
msgstr "Pseudo"
#: src/accounts/templates/accounts/edit.html:25
#: accounts/templates/accounts/edit.html:25
msgid "Email"
msgstr "Email"
#: src/accounts/templates/accounts/edit.html:30
#: src/ctfs/templates/ctfs/ctf_info.html:64
#: src/events/templates/events/ctf_info.html:66
#: src/events/templates/events/event_info.html:65
#: src/scoreboard/templates/scoreboard/scoreboard.html:14
#: accounts/templates/accounts/edit.html:30
#: ctfs/templates/ctfs/ctf_info.html:62
#: events/templates/events/ctf_info.html:72
#: events/templates/events/event_info.html:65
#: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website"
msgstr "Site internet"
#: src/accounts/templates/accounts/edit.html:36
#, fuzzy
#| msgid "Apply"
msgid " Apply"
#: accounts/templates/accounts/edit.html:36
#: events/templates/events/manage_team.html:29
msgid "Apply"
msgstr "Appliquer"
#: src/accounts/templates/accounts/edit.html:45
#, fuzzy
#| msgid "Connected accounts"
msgid "Connected accounts"
msgstr "Comptes connectés"
#: src/accounts/templates/accounts/edit.html:53
msgid "Disconnect Discord"
msgstr "Déconnecter Discord"
#: src/accounts/templates/accounts/edit.html:59
msgid "Connect Discord"
msgstr "Connecter Discord"
#: src/accounts/templates/accounts/edit.html:68
#, fuzzy
#| msgid "Disconnect Discord"
msgid "Disconnect 42"
msgstr "Déconnecter Discord"
#: src/accounts/templates/accounts/edit.html:74
#: src/events/templates/events/event_pwd.html:19
#, fuzzy
#| msgid "Connect Discord"
msgid "Connect 42"
msgstr "Connecter Discord"
#: src/accounts/templates/accounts/edit.html:85
#: src/accounts/templates/accounts/profile.html:46
#: src/ctfs/templates/ctfs/ctf_info.html:65
#: src/ctfs/templates/ctfs/ctfs_list.html:13
#: src/events/templates/events/event_info.html:66
#: src/events/templates/events/event_info.html:89
#: src/events/templates/events/manage_team.html:40
#: src/events/templates/events/team.html:45
#: src/scoreboard/templates/scoreboard/scoreboard.html:16
#: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:63 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:66
#: events/templates/events/event_info.html:89
#: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score"
msgstr "Score"
#: src/accounts/templates/accounts/edit.html:93
#: src/accounts/templates/accounts/profile.html:60
#: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:60
msgid "Registered since"
msgstr "Inscrit depuis"
#: src/accounts/templates/accounts/edit.html:99
#: accounts/templates/accounts/edit.html:61
#, fuzzy
#| msgid "Connected accounts"
msgid " Delete my account"
msgid "Delete my account"
msgstr "Comptes connectés"
#: src/accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/login.html:13
msgid "Please, verify your infos."
msgstr "Merci de vérifier vos informations."
#: src/accounts/templates/accounts/login.html:22
#: accounts/templates/accounts/login.html:22
msgid "Reset password"
msgstr "Réinitialiser le mot de passe"
#: src/accounts/templates/accounts/login.html:31
#: src/accounts/templates/accounts/register.html:37 src/templates/base.html:97
#: src/templates/registration/password_reset_complete.html:18
#: src/templates/registration/password_reset_confirm.html:38
#: src/templates/registration/password_reset_done.html:18
#: src/templates/registration/password_reset_form.html:26
#: accounts/templates/accounts/login.html:31
#: accounts/templates/accounts/register.html:38 templates/base.html:103
#: templates/registration/password_reset_complete.html:18
#: templates/registration/password_reset_confirm.html:38
#: templates/registration/password_reset_done.html:18
#: templates/registration/password_reset_form.html:26
msgid "Login"
msgstr "Connexion"
#: src/accounts/templates/accounts/login.html:32
#: src/accounts/templates/accounts/register.html:36
#: src/templates/registration/password_reset_complete.html:19
#: src/templates/registration/password_reset_confirm.html:39
#: src/templates/registration/password_reset_done.html:19
#: src/templates/registration/password_reset_form.html:27
#: accounts/templates/accounts/login.html:32
#: accounts/templates/accounts/register.html:37
#: templates/registration/password_reset_complete.html:19
#: templates/registration/password_reset_confirm.html:39
#: templates/registration/password_reset_done.html:19
#: templates/registration/password_reset_form.html:27
msgid "Sign up"
msgstr "Inscription"
#: src/accounts/templates/accounts/profile.html:10
#: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by"
msgstr "Challenges résolus par"
#: src/accounts/templates/accounts/profile.html:21
#: src/events/templates/events/team.html:20
#: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20
msgid "Challenge Name"
msgstr "Nom du challenge"
#: src/accounts/templates/accounts/profile.html:22
#: src/events/templates/events/team.html:21
#: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21
msgid "Category"
msgstr "Catégorie"
#: src/accounts/templates/accounts/profile.html:23
#: src/events/templates/events/team.html:22
#: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22
msgid "Points"
msgstr "Points"
#: src/accounts/templates/accounts/profile.html:24
#: src/ctfs/templates/ctfs/ctf_info.html:66
#: src/events/templates/events/ctf_info.html:67
#: src/events/templates/events/team.html:23
#: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:64
#: events/templates/events/ctf_info.html:73
#: events/templates/events/team.html:23
msgid "Date"
msgstr "Date"
#: src/accounts/templates/accounts/profile.html:39
#: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..."
msgstr "Il semble que cet utilisateur n'a pas encore résolu de CTF..."
#: src/accounts/templates/accounts/profile.html:47
#: src/events/templates/events/event_info.html:63
#: src/events/templates/events/event_info.html:87
#: src/events/templates/events/manage_team.html:41
#: src/events/templates/events/team.html:46
#: src/scoreboard/templates/scoreboard/scoreboard.html:12
#: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:63
#: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank"
msgstr "Rang"
#: src/accounts/templates/accounts/profile.html:56
#, fuzzy
#| msgid "Members"
msgid "Member"
msgstr "Membres"
#: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr "Status : Membre"
#: src/accounts/templates/accounts/profile.html:58
#, fuzzy
#| msgid "Status: Visitor"
msgid " Visitor"
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr "Status : Visiteur"
#: src/accounts/templates/accounts/profile.html:64
#: src/events/templates/events/team.html:57
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57
#, fuzzy
#| msgid "Categories"
msgid "Categories stats"
msgstr "Catégories"
#: src/accounts/templates/accounts/profile.html:81
#, fuzzy
#| msgid "Challenge Name"
msgid "Challenges created"
msgstr "Nom du challenge"
#: src/accounts/templates/accounts/profile.html:87
#, fuzzy
#| msgid "It seems that this user has not solved any challenge yet..."
msgid "It seems that this user has not created any challenge yet..."
msgstr "Il semble que cet utilisateur n'a pas encore résolu de CTF..."
#: src/accounts/templates/accounts/register.html:13
#: accounts/templates/accounts/register.html:13
msgid "Welcome !"
msgstr "Bienvenue !"
#: src/accounts/templates/accounts/register.html:14
#: accounts/templates/accounts/register.html:14
msgid "Your account has been created."
msgstr "Votre compte a été créé."
#: src/accounts/templates/accounts/register.html:25
#: accounts/templates/accounts/register.html:25
msgid "Personal website"
msgstr "Site personnel"
#: src/accounts/templates/accounts/register.html:26
#: src/events/templates/events/event_info.html:119
#: accounts/templates/accounts/register.html:26
#: events/templates/events/event_info.html:119
msgid "Register"
msgstr "Inscription"
#: src/accounts/views/views.py:33
#: accounts/views/views.py:33
msgid "Your account was inactive."
msgstr "Votre compte était inactif."
#: src/accounts/views/views.py:57
#, fuzzy
#| msgid "Your password must contain at least 8 characters."
msgid "The password must be at least 8 characters long."
msgstr "Votre mot de passe doit contenir au moins 8 caractères."
#: src/accounts/views/views.py:67
#: accounts/views/views.py:52
msgid ""
"The password must contain at least one letter and at least one digit or "
"punctuation character."
@ -260,454 +208,411 @@ msgstr ""
"Le mot de passe doit contenir au moins une lettre, un chiffre et un signe de "
"ponctuation."
#: src/accounts/views/views.py:77
#: accounts/views/views.py:54
msgid "A user with that email already exists."
msgstr "Un utilisateur avec cet email existe déjà."
#: src/accounts/views/views.py:99
#: accounts/views/views.py:67
msgid "A user with that username already exists."
msgstr "Un utilisateur avec ce pseudo existe déjà."
#: src/accounts/views/views.py:132
#: accounts/views/views.py:95
msgid "Email already taken."
msgstr "L'adresse mail est déjà utilisée."
#: src/accounts/views/views.py:138
#: accounts/views/views.py:101
msgid "Username already taken."
msgstr "Le pseudo est déjà utilisé."
#: src/accounts/views/views.py:142 src/events/views/teams.py:124
#: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated."
msgstr "Mis à jour."
#: src/ctfs/templates/ctfs/ctf_info.html:12
#: src/events/templates/events/ctf_info.html:12
#: ctfs/templates/ctfs/ctf_info.html:10
#: events/templates/events/ctf_info.html:12
msgid "Published date"
msgstr "Date de publication"
#: src/ctfs/templates/ctfs/ctf_info.html:16
#: ctfs/templates/ctfs/ctf_info.html:14
#, fuzzy
#| msgid "No category available."
msgid "Challenge is not yet available."
msgstr "Il n'y a pas de catégorie disponible."
#: src/ctfs/templates/ctfs/ctf_info.html:29
#: src/events/templates/events/ctf_info.html:24
#: ctfs/templates/ctfs/ctf_info.html:21
#: events/templates/events/ctf_info.html:18 home/templates/home/home.html:46
msgid ""
"No translation available. Please try another language (English or French)."
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:27
#: events/templates/events/ctf_info.html:32
msgid "Congratulation !"
msgstr "Félicitations !"
#: src/ctfs/templates/ctfs/ctf_info.html:31
#: src/events/templates/events/ctf_info.html:26
#: ctfs/templates/ctfs/ctf_info.html:29
#: events/templates/events/ctf_info.html:34
msgid "Already flagged"
msgstr "Déjà résolu"
#: src/ctfs/templates/ctfs/ctf_info.html:33
#: src/ctfs/templates/ctfs/ctf_info.html:42
#: src/events/templates/events/ctf_info.html:36
#: src/events/templates/events/ctf_info.html:45
#: ctfs/templates/ctfs/ctf_info.html:31 ctfs/templates/ctfs/ctf_info.html:40
#: events/templates/events/ctf_info.html:42
#: events/templates/events/ctf_info.html:51
msgid "Start the challenge"
msgstr "Démarrer le challenge"
#: src/ctfs/templates/ctfs/ctf_info.html:35
#: src/ctfs/templates/ctfs/ctf_info.html:44
#: src/events/templates/events/ctf_info.html:38
#: src/events/templates/events/ctf_info.html:47
#: ctfs/templates/ctfs/ctf_info.html:33 ctfs/templates/ctfs/ctf_info.html:42
#: events/templates/events/ctf_info.html:44
#: events/templates/events/ctf_info.html:53
msgid "Download"
msgstr "Télécharger"
#: src/ctfs/templates/ctfs/ctf_info.html:39
#: src/events/templates/events/ctf_info.html:42
#: ctfs/templates/ctfs/ctf_info.html:37
#: events/templates/events/ctf_info.html:48
msgid "Wrong flag ! You can do it !"
msgstr "Mauvais flag ! Vous pouvez le faire !"
#: src/ctfs/templates/ctfs/ctf_info.html:58
#: src/events/templates/events/ctf_info.html:60
#: ctfs/templates/ctfs/ctf_info.html:56
#: events/templates/events/ctf_info.html:66
msgid "Solved by"
msgstr "Résolu par"
#: src/ctfs/templates/ctfs/ctf_info.html:82
#: src/events/templates/events/ctf_info.html:90
#: ctfs/templates/ctfs/ctf_info.html:80
#: events/templates/events/ctf_info.html:96
msgid "Nobody has solved this challenge yet."
msgstr "Personne n'a résolu ce CTF."
#: src/ctfs/templates/ctfs/ctf_info.html:89
#: src/events/templates/events/ctf_info.html:97
#: ctfs/templates/ctfs/ctf_info.html:87
#: events/templates/events/ctf_info.html:103
msgid "Author"
msgstr "Auteur"
#: src/ctfs/templates/ctfs/ctf_info.html:90
#: src/events/templates/events/ctf_info.html:98
#: ctfs/templates/ctfs/ctf_info.html:88
#: events/templates/events/ctf_info.html:104
msgid "Point reward"
msgstr "Points"
#: src/ctfs/templates/ctfs/ctfs_list.html:14
#: ctfs/templates/ctfs/ctfs_list.html:14
msgid "Solved"
msgstr "Résolu"
#: src/ctfs/templates/ctfs/ctfs_list.html:37
#: ctfs/templates/ctfs/ctfs_list.html:37
msgid "No ctf available for this category."
msgstr "Il n'y a pas de challenges dans cette catégorie."
#: src/ctfs/templates/ctfs/ctfs_list.html:42
#: ctfs/templates/ctfs/ctfs_list.html:42
msgid "Categories"
msgstr "Catégories"
#: src/ctfs/templates/ctfs/ctfs_list.html:48 src/templates/base.html:56
#: ctfs/templates/ctfs/ctfs_list.html:48 templates/base.html:54
msgid "No category available."
msgstr "Il n'y a pas de catégorie disponible."
#: src/events/templates/events/create_team.html:10
#: src/events/templates/events/join_team.html:10
#: events/templates/events/create_team.html:9
#: events/templates/events/join_team.html:9
#, fuzzy
#| msgid "This event start at"
msgid "This event starts at"
msgstr "Cet événement débute à"
#: src/events/templates/events/create_team.html:17
#: src/events/templates/events/join_team.html:17
#: events/templates/events/create_team.html:16
#: events/templates/events/join_team.html:16
#, fuzzy
#| msgid "You're already registered to this event."
msgid "You need to be registered to the event."
msgstr "Vous êtes déjà inscrit à cet événement."
#: src/events/templates/events/create_team.html:20
#: src/events/views/teams.py:120
#: events/templates/events/create_team.html:19 events/views/teams.py:118
#, fuzzy
#| msgid "Username already taken."
msgid "Name already taken."
msgstr "Ce nom est déjà utilisé."
#: src/events/templates/events/create_team.html:26
#: src/events/templates/events/join_team.html:31
#: src/events/templates/events/manage_team.html:22
#: events/templates/events/create_team.html:25
#: events/templates/events/join_team.html:30
#: events/templates/events/manage_team.html:22
msgid "Team name"
msgstr "Nom de l'équipe"
#: src/events/templates/events/create_team.html:28
#: src/events/templates/events/create_team.html:49
#: src/events/templates/events/join_team.html:54
#: events/templates/events/create_team.html:27
#: events/templates/events/create_team.html:46
#: events/templates/events/join_team.html:52
msgid "Create Team"
msgstr "Créer une équipe"
#: src/events/templates/events/create_team.html:33
#: src/events/templates/events/event_pwd.html:44
#: src/events/templates/events/join_team.html:38
#: events/templates/events/create_team.html:32
#: events/templates/events/event_pwd.html:28
#: events/templates/events/join_team.html:37
msgid "You need to be logged to access this event."
msgstr "Vous devez être connecté pour accéder à cet événement."
#: src/events/templates/events/create_team.html:42
#: src/events/templates/events/event_info.html:113
#: src/events/templates/events/event_pwd.html:52
#: src/events/templates/events/join_team.html:47
#: events/templates/events/create_team.html:41
#: events/templates/events/event_info.html:113
#: events/templates/events/event_pwd.html:36
#: events/templates/events/join_team.html:46
msgid "Starts at"
msgstr "Début"
#: src/events/templates/events/create_team.html:43
#: src/events/templates/events/event_info.html:114
#: src/events/templates/events/event_pwd.html:53
#: src/events/templates/events/join_team.html:48
#: events/templates/events/create_team.html:42
#: events/templates/events/event_info.html:114
#: events/templates/events/event_pwd.html:37
#: events/templates/events/join_team.html:47
msgid "Ends at"
msgstr "Fin"
#: src/events/templates/events/create_team.html:47
#: src/events/templates/events/event_info.html:129
#: src/events/templates/events/join_team.html:52
msgid "Manage my team"
msgstr "Gérer mon équipe"
#: src/events/templates/events/create_team.html:48
#: src/events/templates/events/join_team.html:33
#: src/events/templates/events/join_team.html:53
#: events/templates/events/create_team.html:47
#: events/templates/events/join_team.html:32
#: events/templates/events/join_team.html:51
msgid "Join Team"
msgstr "Rejoindre une équipe"
#: src/events/templates/events/create_team.html:53
#: src/events/templates/events/join_team.html:58
msgid "Auto-matching"
msgstr ""
#: src/events/templates/events/create_team.html:57
#: src/events/templates/events/join_team.html:62
#: events/templates/events/create_team.html:54
#: events/templates/events/join_team.html:59
msgid "Find me a team !"
msgstr ""
#: src/events/templates/events/ctf_info.html:10
#: events/templates/events/ctf_info.html:10
msgid "Event"
msgstr "Événement"
#: src/events/templates/events/ctf_info.html:18
msgid ""
"No translation available. Please try another language (English or French)."
msgstr ""
#: src/events/templates/events/ctf_info.html:28
#: src/events/templates/events/event_info.html:18
msgid "This event is over."
msgstr "Cet événement est terminé."
#: src/events/templates/events/ctf_info.html:30
msgid "Error while processing your request. (Invalid Form)"
msgstr "Erreur lors du traitement de votre requête. (Formulaire non valide)"
#: src/events/templates/events/ctf_info.html:32
msgid "You must register to the event before submitting flags."
msgstr ""
#: src/events/templates/events/ctf_info.html:34
msgid ""
"This is a team event, please create or join a team before submitting flags."
msgstr ""
#: src/events/templates/events/event_info.html:9
#: events/templates/events/ctf_info.html:25
#: events/templates/events/event_info.html:9
msgid "Subscriptions is over."
msgstr "Les inscriptions sont terminées."
#: src/events/templates/events/event_info.html:12
#: src/events/templates/events/event_pwd.html:33
#: events/templates/events/ctf_info.html:28
#: events/templates/events/event_info.html:12
#: events/templates/events/event_pwd.html:18
msgid "You're already registered to this event."
msgstr "Vous êtes déjà inscrit à cet événement."
#: src/events/templates/events/event_info.html:20
#: src/events/templates/events/event_pwd.html:9
#: events/templates/events/ctf_info.html:36
#: events/templates/events/event_info.html:18
msgid "This event is over."
msgstr "Cet événement est terminé."
#: events/templates/events/ctf_info.html:38
msgid "Error while processing your request. (Invalid Form)"
msgstr "Erreur lors du traitement de votre requête. (Formulaire non valide)"
#: events/templates/events/ctf_info.html:40
msgid ""
"Error: you're not registered to this event, so you can't register scores, "
"fucking logic."
msgstr ""
"Erreur : vous n'êtes pas inscrit à cet événement, vous ne pouvez donc pas "
"enregistrer de scores,C'est putain de logique."
#: events/templates/events/event_info.html:20
#: events/templates/events/event_pwd.html:9
msgid "This event start at"
msgstr "Cet événement débute à"
#: src/events/templates/events/event_info.html:30
#: events/templates/events/event_info.html:30
#, fuzzy
#| msgid "Challenge Name"
msgid "Challenges"
msgstr "Nom du challenge"
#: src/events/templates/events/event_info.html:47
#: events/templates/events/event_info.html:47
#, fuzzy
#| msgid "No category available."
msgid "No challenges available."
msgstr "Il n'y a pas de catégorie disponible."
#: src/events/templates/events/event_info.html:51
#: events/templates/events/event_info.html:51
msgid "The event has not started yet."
msgstr "L'événement n'a pas encore commencé."
#: src/events/templates/events/event_info.html:57
#: events/templates/events/event_info.html:57
#, fuzzy
#| msgid "Scoreboard"
msgid "ScoreBoard"
msgstr "Classement"
#: src/events/templates/events/event_info.html:88
#: events/templates/events/event_info.html:88
msgid "Team"
msgstr "Équipe"
#: src/events/templates/events/event_info.html:106
#: events/templates/events/event_info.html:106
msgid "No one have earn point yet, you gonna be the first ?"
msgstr "Personne n'a encore gagné de point, allez-vous être le premier ?"
#: src/events/templates/events/event_pwd.html:16
msgid ""
"This event is reserved for one or more 42 campuses. If you have not "
"connected your intranet to 42CTF, you can do so with this button: "
msgstr ""
#: events/templates/events/event_info.html:129
msgid "Manage my team"
msgstr "Gérer mon équipe"
#: src/events/templates/events/event_pwd.html:25
msgid ""
"This event is reserved for one or more 42 campuses. And unfortunately your "
"campus can't participate. Do not hesitate to contact us to organize an event "
"on your campus!"
msgstr ""
#: src/events/templates/events/event_pwd.html:30
#: src/events/templates/events/join_team.html:22
#: events/templates/events/event_pwd.html:15
#: events/templates/events/join_team.html:21
msgid "Wrong password submited."
msgstr "Mauvais mot de passe saisi."
#: src/events/templates/events/event_pwd.html:35
#: events/templates/events/event_pwd.html:20
msgid "This event is password protected"
msgstr "Cet événement est protégé par un mot de passe"
#: src/events/templates/events/event_pwd.html:36
#: events/templates/events/event_pwd.html:21
msgid "You need to submit the event password to gain access to this event."
msgstr "Vous devez saisir le mot de passe de l'événement pour y avoir accès."
#: src/events/templates/events/events_list.html:6 src/templates/base.html:65
#: events/templates/events/events_list.html:6 templates/base.html:63
msgid "Events"
msgstr "Événements"
#: src/events/templates/events/events_list.html:38
#: events/templates/events/events_list.html:38
msgid "See more"
msgstr "Voir plus"
#: src/events/templates/events/events_list.html:44
#: events/templates/events/events_list.html:44
msgid "No events available."
msgstr "Pas d'évènement disponible."
#: src/events/templates/events/join_team.html:20
#: events/templates/events/join_team.html:19
msgid "Team does not exist."
msgstr "Cette équipe n'existe pas."
#: src/events/templates/events/join_team.html:24
#: events/templates/events/join_team.html:23
msgid "Maximum size reached."
msgstr "Taille maximale atteinte."
#: src/events/templates/events/manage_team.html:26
#: events/templates/events/manage_team.html:26
msgid "Team password"
msgstr "Mot de passe de l'équipe"
#: src/events/templates/events/manage_team.html:29
msgid "Apply"
msgstr "Appliquer"
#: src/events/templates/events/manage_team.html:44
#: src/events/templates/events/team.html:49
#: events/templates/events/manage_team.html:44
#: events/templates/events/team.html:49
msgid "Members"
msgstr "Membres"
#: src/events/templates/events/manage_team.html:52
#: events/templates/events/manage_team.html:51
msgid "Leave Team"
msgstr "Quitte l'équipe"
#: src/events/templates/events/manage_team.html:59
msgid "Open to automatching"
msgstr ""
#: src/events/templates/events/manage_team.html:66
msgid "Close to automatching"
msgstr ""
#: src/events/templates/events/team.html:38
#: events/templates/events/team.html:38
msgid "It seems that this team has not solved any challenge yet..."
msgstr "Il semble que cette équipe n'a pas encore résolu de challenge..."
#: src/home/templates/home/home.html:21
#: home/templates/home/home.html:20
msgid "Weekly Top 5"
msgstr ""
#: src/home/templates/home/home.html:48
#: home/templates/home/home.html:56
msgid "No article available."
msgstr "Il n'y a pas d'article disponible."
#: src/home/templates/home/home.html:53
#: home/templates/home/home.html:61
msgid "Latest challenges added"
msgstr "Derniers challenges ajoutés"
#: src/home/templates/home/home.html:58
#: home/templates/home/home.html:66
#, fuzzy
#| msgid "Points"
msgid "points"
msgstr "Points"
#: src/home/templates/home/home.html:62
#: home/templates/home/home.html:70
msgid "No ctf available."
msgstr "Pas de challenge disponible"
#: src/home/templates/home/home.html:66
#: home/templates/home/home.html:74
msgid "Latest Flags"
msgstr ""
#: src/home/templates/home/home.html:80
#: home/templates/home/home.html:88
msgid "Flags"
msgstr ""
#: src/home/templates/home/home.html:86
#: home/templates/home/home.html:94
#, fuzzy
#| msgid "Username"
msgid "Users"
msgstr "Pseudo"
#: src/project/settings.py:116
#: project/settings.py:115
msgid "English"
msgstr "Anglais"
#: src/project/settings.py:117
#: project/settings.py:116
msgid "German"
msgstr "Allemand"
#: src/project/settings.py:118
#: project/settings.py:117
msgid "French"
msgstr "Français"
#: src/project/settings.py:119
#: project/settings.py:118
msgid "Russian"
msgstr "Russe"
#: src/project/settings.py:120
msgid "Japanese"
msgstr ""
#: src/project/settings.py:121
msgid "Spanish"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Campus"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First"
msgstr "Début"
#: src/scoreboard/templates/scoreboard/scoreboard.html:47
#: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous"
msgstr "Précédente"
#: src/scoreboard/templates/scoreboard/scoreboard.html:51
#: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page "
msgstr "Page"
#: src/scoreboard/templates/scoreboard/scoreboard.html:55
#: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next"
msgstr "Suivante"
#: src/scoreboard/templates/scoreboard/scoreboard.html:56
#: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last"
msgstr "Fin"
#: src/templates/base.html:62
#: templates/base.html:59
msgid "Scoreboard"
msgstr "Classement"
#: src/templates/base.html:83
#, fuzzy
#| msgid "Become a Patron!"
msgid "Become a member"
msgstr "Soutenez nous via Patreon !"
#: templates/base.html:66
msgid "Resources"
msgstr ""
#: src/templates/base.html:93
#: templates/base.html:99
msgid "Logout"
msgstr "Déconnexion"
#: src/templates/base.html:100
#: templates/base.html:106
msgid "Sign Up"
msgstr "Inscription"
#: src/templates/registration/password_reset_complete.html:11
#: templates/base.html:144
msgid "Become a Patron!"
msgstr "Soutenez nous via Patreon !"
#: templates/registration/password_reset_complete.html:11
msgid "Your new password has been set."
msgstr "Votre mot de passe a été mis à jour."
#: src/templates/registration/password_reset_confirm.html:20
#: templates/registration/password_reset_confirm.html:20
msgid "Your password cant be too similar to your other personal information."
msgstr "Votre mot de passe ne peut pas être similaire à votre adresse mail."
#: src/templates/registration/password_reset_confirm.html:21
#: templates/registration/password_reset_confirm.html:21
msgid "Your password must contain at least 8 characters."
msgstr "Votre mot de passe doit contenir au moins 8 caractères."
#: src/templates/registration/password_reset_confirm.html:22
#: templates/registration/password_reset_confirm.html:22
msgid "Your password cant be a commonly used password."
msgstr "Votre mot de passe ne peut pas être un mot de passe commun."
#: src/templates/registration/password_reset_confirm.html:23
#: templates/registration/password_reset_confirm.html:23
msgid "Your password cant be entirely numeric."
msgstr "Votre mot de passe ne peut pas être entièrement numérique."
#: src/templates/registration/password_reset_confirm.html:26
#: templates/registration/password_reset_confirm.html:26
msgid "Confirm"
msgstr "Confirmer"
#: src/templates/registration/password_reset_confirm.html:28
#: templates/registration/password_reset_confirm.html:28
msgid "Submit"
msgstr "Soumettre"
#: src/templates/registration/password_reset_done.html:11
#: templates/registration/password_reset_done.html:11
msgid ""
"We've emailed you instructions for setting your password. You should receive "
"the email shortly!"
@ -715,27 +620,18 @@ msgstr ""
"Vous devrierz recevoir rapidement un email avec des instructions pour "
"réinitialiser votre mot de passe."
#: src/templates/registration/password_reset_form.html:16
#: templates/registration/password_reset_form.html:16
msgid "Reset"
msgstr "Réinitialiser"
#~ msgid "Status: Member"
#~ msgstr "Status : Membre"
#~ msgid ""
#~ "Error: you're not registered to this event, so you can't register scores, "
#~ "fucking logic."
#~ msgstr ""
#~ "Erreur : vous n'êtes pas inscrit à cet événement, vous ne pouvez donc pas "
#~ "enregistrer de scores,C'est putain de logique."
#, fuzzy
#~| msgid "Manage my team"
#~ msgid "Manage team"
#~ msgstr "Gérer mon équipe"
#~ msgid "Start at"
#~ msgstr "Début"
#~ msgid "End at"
#~ msgstr "Fin"
#~ msgid "Disconnect Discord"
#~ msgstr "Déconnecter Discord"
#~ msgid "Connect Discord"
#~ msgstr "Connecter Discord"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-16 19:28+0200\n"
"POT-Creation-Date: 2022-02-02 19:22+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,653 +18,576 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/accounts/templates/accounts/delete.html:8
#: accounts/templates/accounts/delete.html:8
msgid "Delete account"
msgstr ""
#: src/accounts/templates/accounts/delete.html:11
#: accounts/templates/accounts/delete.html:11
msgid "Please confirm your password to delete your account."
msgstr ""
#: src/accounts/templates/accounts/delete.html:12
#: accounts/templates/accounts/delete.html:12
msgid "Deleted accounts cannot be recovered."
msgstr ""
#: src/accounts/templates/accounts/delete.html:15
msgid "Password incorrect."
#: accounts/templates/accounts/delete.html:15
msgid "Password inccorect."
msgstr ""
#: src/accounts/templates/accounts/delete.html:17
#: accounts/templates/accounts/delete.html:17
msgid "Your account has been deleted."
msgstr ""
#: src/accounts/templates/accounts/delete.html:22
#: src/accounts/templates/accounts/login.html:19
#: src/accounts/templates/accounts/register.html:23
#: src/events/templates/events/create_team.html:27
#: src/events/templates/events/join_team.html:32
#: accounts/templates/accounts/delete.html:22
#: accounts/templates/accounts/login.html:19
#: accounts/templates/accounts/register.html:23
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr ""
#: src/accounts/templates/accounts/edit.html:21
#: src/accounts/templates/accounts/login.html:18
#: src/accounts/templates/accounts/register.html:22
#: src/ctfs/templates/ctfs/ctf_info.html:63
#: src/ctfs/templates/ctfs/ctfs_list.html:12
#: src/events/templates/events/ctf_info.html:65
#: src/events/templates/events/event_info.html:64
#: src/scoreboard/templates/scoreboard/scoreboard.html:13
#: accounts/templates/accounts/edit.html:21
#: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22
#: ctfs/templates/ctfs/ctf_info.html:61 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username"
msgstr ""
#: src/accounts/templates/accounts/edit.html:25
#: accounts/templates/accounts/edit.html:25
msgid "Email"
msgstr ""
#: src/accounts/templates/accounts/edit.html:30
#: src/ctfs/templates/ctfs/ctf_info.html:64
#: src/events/templates/events/ctf_info.html:66
#: src/events/templates/events/event_info.html:65
#: src/scoreboard/templates/scoreboard/scoreboard.html:14
#: accounts/templates/accounts/edit.html:30
#: ctfs/templates/ctfs/ctf_info.html:62
#: events/templates/events/ctf_info.html:72
#: events/templates/events/event_info.html:65
#: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website"
msgstr ""
#: src/accounts/templates/accounts/edit.html:36
msgid " Apply"
#: accounts/templates/accounts/edit.html:36
#: events/templates/events/manage_team.html:29
msgid "Apply"
msgstr ""
#: src/accounts/templates/accounts/edit.html:45
msgid "Connected accounts"
msgstr ""
#: src/accounts/templates/accounts/edit.html:53
msgid "Disconnect Discord"
msgstr ""
#: src/accounts/templates/accounts/edit.html:59
msgid "Connect Discord"
msgstr ""
#: src/accounts/templates/accounts/edit.html:68
msgid "Disconnect 42"
msgstr ""
#: src/accounts/templates/accounts/edit.html:74
#: src/events/templates/events/event_pwd.html:19
msgid "Connect 42"
msgstr ""
#: src/accounts/templates/accounts/edit.html:85
#: src/accounts/templates/accounts/profile.html:46
#: src/ctfs/templates/ctfs/ctf_info.html:65
#: src/ctfs/templates/ctfs/ctfs_list.html:13
#: src/events/templates/events/event_info.html:66
#: src/events/templates/events/event_info.html:89
#: src/events/templates/events/manage_team.html:40
#: src/events/templates/events/team.html:45
#: src/scoreboard/templates/scoreboard/scoreboard.html:16
#: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:63 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:66
#: events/templates/events/event_info.html:89
#: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score"
msgstr ""
#: src/accounts/templates/accounts/edit.html:93
#: src/accounts/templates/accounts/profile.html:60
#: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:60
msgid "Registered since"
msgstr ""
#: src/accounts/templates/accounts/edit.html:99
msgid " Delete my account"
#: accounts/templates/accounts/edit.html:61
msgid "Delete my account"
msgstr ""
#: src/accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/login.html:13
msgid "Please, verify your infos."
msgstr ""
#: src/accounts/templates/accounts/login.html:22
#: accounts/templates/accounts/login.html:22
msgid "Reset password"
msgstr ""
#: src/accounts/templates/accounts/login.html:31
#: src/accounts/templates/accounts/register.html:37 src/templates/base.html:97
#: src/templates/registration/password_reset_complete.html:18
#: src/templates/registration/password_reset_confirm.html:38
#: src/templates/registration/password_reset_done.html:18
#: src/templates/registration/password_reset_form.html:26
#: accounts/templates/accounts/login.html:31
#: accounts/templates/accounts/register.html:38 templates/base.html:103
#: templates/registration/password_reset_complete.html:18
#: templates/registration/password_reset_confirm.html:38
#: templates/registration/password_reset_done.html:18
#: templates/registration/password_reset_form.html:26
msgid "Login"
msgstr ""
#: src/accounts/templates/accounts/login.html:32
#: src/accounts/templates/accounts/register.html:36
#: src/templates/registration/password_reset_complete.html:19
#: src/templates/registration/password_reset_confirm.html:39
#: src/templates/registration/password_reset_done.html:19
#: src/templates/registration/password_reset_form.html:27
#: accounts/templates/accounts/login.html:32
#: accounts/templates/accounts/register.html:37
#: templates/registration/password_reset_complete.html:19
#: templates/registration/password_reset_confirm.html:39
#: templates/registration/password_reset_done.html:19
#: templates/registration/password_reset_form.html:27
msgid "Sign up"
msgstr ""
#: src/accounts/templates/accounts/profile.html:10
#: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by"
msgstr ""
#: src/accounts/templates/accounts/profile.html:21
#: src/events/templates/events/team.html:20
#: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20
msgid "Challenge Name"
msgstr ""
#: src/accounts/templates/accounts/profile.html:22
#: src/events/templates/events/team.html:21
#: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21
msgid "Category"
msgstr ""
#: src/accounts/templates/accounts/profile.html:23
#: src/events/templates/events/team.html:22
#: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22
msgid "Points"
msgstr ""
#: src/accounts/templates/accounts/profile.html:24
#: src/ctfs/templates/ctfs/ctf_info.html:66
#: src/events/templates/events/ctf_info.html:67
#: src/events/templates/events/team.html:23
#: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:64
#: events/templates/events/ctf_info.html:73
#: events/templates/events/team.html:23
msgid "Date"
msgstr ""
#: src/accounts/templates/accounts/profile.html:39
#: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..."
msgstr ""
#: src/accounts/templates/accounts/profile.html:47
#: src/events/templates/events/event_info.html:63
#: src/events/templates/events/event_info.html:87
#: src/events/templates/events/manage_team.html:41
#: src/events/templates/events/team.html:46
#: src/scoreboard/templates/scoreboard/scoreboard.html:12
#: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:63
#: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank"
msgstr ""
#: src/accounts/templates/accounts/profile.html:56
msgid "Member"
#: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr ""
#: src/accounts/templates/accounts/profile.html:58
msgid " Visitor"
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr ""
#: src/accounts/templates/accounts/profile.html:64
#: src/events/templates/events/team.html:57
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57
msgid "Categories stats"
msgstr ""
#: src/accounts/templates/accounts/profile.html:81
msgid "Challenges created"
msgstr ""
#: src/accounts/templates/accounts/profile.html:87
msgid "It seems that this user has not created any challenge yet..."
msgstr ""
#: src/accounts/templates/accounts/register.html:13
#: accounts/templates/accounts/register.html:13
msgid "Welcome !"
msgstr ""
#: src/accounts/templates/accounts/register.html:14
#: accounts/templates/accounts/register.html:14
msgid "Your account has been created."
msgstr ""
#: src/accounts/templates/accounts/register.html:25
#: accounts/templates/accounts/register.html:25
msgid "Personal website"
msgstr ""
#: src/accounts/templates/accounts/register.html:26
#: src/events/templates/events/event_info.html:119
#: accounts/templates/accounts/register.html:26
#: events/templates/events/event_info.html:119
msgid "Register"
msgstr ""
#: src/accounts/views/views.py:33
#: accounts/views/views.py:33
msgid "Your account was inactive."
msgstr ""
#: src/accounts/views/views.py:57
msgid "The password must be at least 8 characters long."
msgstr ""
#: src/accounts/views/views.py:67
#: accounts/views/views.py:52
msgid ""
"The password must contain at least one letter and at least one digit or "
"punctuation character."
msgstr ""
#: src/accounts/views/views.py:77
#: accounts/views/views.py:54
msgid "A user with that email already exists."
msgstr ""
#: src/accounts/views/views.py:99
#: accounts/views/views.py:67
msgid "A user with that username already exists."
msgstr ""
#: src/accounts/views/views.py:132
#: accounts/views/views.py:95
msgid "Email already taken."
msgstr ""
#: src/accounts/views/views.py:138
#: accounts/views/views.py:101
msgid "Username already taken."
msgstr ""
#: src/accounts/views/views.py:142 src/events/views/teams.py:124
#: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated."
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:12
#: src/events/templates/events/ctf_info.html:12
#: ctfs/templates/ctfs/ctf_info.html:10
#: events/templates/events/ctf_info.html:12
msgid "Published date"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:16
#: ctfs/templates/ctfs/ctf_info.html:14
msgid "Challenge is not yet available."
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:29
#: src/events/templates/events/ctf_info.html:24
msgid "Congratulation !"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:31
#: src/events/templates/events/ctf_info.html:26
msgid "Already flagged"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:33
#: src/ctfs/templates/ctfs/ctf_info.html:42
#: src/events/templates/events/ctf_info.html:36
#: src/events/templates/events/ctf_info.html:45
msgid "Start the challenge"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:35
#: src/ctfs/templates/ctfs/ctf_info.html:44
#: src/events/templates/events/ctf_info.html:38
#: src/events/templates/events/ctf_info.html:47
msgid "Download"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:39
#: src/events/templates/events/ctf_info.html:42
msgid "Wrong flag ! You can do it !"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:58
#: src/events/templates/events/ctf_info.html:60
msgid "Solved by"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:82
#: src/events/templates/events/ctf_info.html:90
msgid "Nobody has solved this challenge yet."
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:89
#: src/events/templates/events/ctf_info.html:97
msgid "Author"
msgstr ""
#: src/ctfs/templates/ctfs/ctf_info.html:90
#: src/events/templates/events/ctf_info.html:98
msgid "Point reward"
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:14
msgid "Solved"
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:37
msgid "No ctf available for this category."
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:42
msgid "Categories"
msgstr ""
#: src/ctfs/templates/ctfs/ctfs_list.html:48 src/templates/base.html:56
msgid "No category available."
msgstr ""
#: src/events/templates/events/create_team.html:10
#: src/events/templates/events/join_team.html:10
msgid "This event starts at"
msgstr ""
#: src/events/templates/events/create_team.html:17
#: src/events/templates/events/join_team.html:17
msgid "You need to be registered to the event."
msgstr ""
#: src/events/templates/events/create_team.html:20
#: src/events/views/teams.py:120
msgid "Name already taken."
msgstr ""
#: src/events/templates/events/create_team.html:26
#: src/events/templates/events/join_team.html:31
#: src/events/templates/events/manage_team.html:22
msgid "Team name"
msgstr ""
#: src/events/templates/events/create_team.html:28
#: src/events/templates/events/create_team.html:49
#: src/events/templates/events/join_team.html:54
msgid "Create Team"
msgstr ""
#: src/events/templates/events/create_team.html:33
#: src/events/templates/events/event_pwd.html:44
#: src/events/templates/events/join_team.html:38
msgid "You need to be logged to access this event."
msgstr ""
#: src/events/templates/events/create_team.html:42
#: src/events/templates/events/event_info.html:113
#: src/events/templates/events/event_pwd.html:52
#: src/events/templates/events/join_team.html:47
msgid "Starts at"
msgstr ""
#: src/events/templates/events/create_team.html:43
#: src/events/templates/events/event_info.html:114
#: src/events/templates/events/event_pwd.html:53
#: src/events/templates/events/join_team.html:48
msgid "Ends at"
msgstr ""
#: src/events/templates/events/create_team.html:47
#: src/events/templates/events/event_info.html:129
#: src/events/templates/events/join_team.html:52
msgid "Manage my team"
msgstr ""
#: src/events/templates/events/create_team.html:48
#: src/events/templates/events/join_team.html:33
#: src/events/templates/events/join_team.html:53
msgid "Join Team"
msgstr ""
#: src/events/templates/events/create_team.html:53
#: src/events/templates/events/join_team.html:58
msgid "Auto-matching"
msgstr ""
#: src/events/templates/events/create_team.html:57
#: src/events/templates/events/join_team.html:62
msgid "Find me a team !"
msgstr ""
#: src/events/templates/events/ctf_info.html:10
msgid "Event"
msgstr ""
#: src/events/templates/events/ctf_info.html:18
#: ctfs/templates/ctfs/ctf_info.html:21
#: events/templates/events/ctf_info.html:18 home/templates/home/home.html:46
msgid ""
"No translation available. Please try another language (English or French)."
msgstr ""
#: src/events/templates/events/ctf_info.html:28
#: src/events/templates/events/event_info.html:18
msgid "This event is over."
#: ctfs/templates/ctfs/ctf_info.html:27
#: events/templates/events/ctf_info.html:32
msgid "Congratulation !"
msgstr ""
#: src/events/templates/events/ctf_info.html:30
msgid "Error while processing your request. (Invalid Form)"
#: ctfs/templates/ctfs/ctf_info.html:29
#: events/templates/events/ctf_info.html:34
msgid "Already flagged"
msgstr ""
#: src/events/templates/events/ctf_info.html:32
msgid "You must register to the event before submitting flags."
#: ctfs/templates/ctfs/ctf_info.html:31 ctfs/templates/ctfs/ctf_info.html:40
#: events/templates/events/ctf_info.html:42
#: events/templates/events/ctf_info.html:51
msgid "Start the challenge"
msgstr ""
#: src/events/templates/events/ctf_info.html:34
msgid ""
"This is a team event, please create or join a team before submitting flags."
#: ctfs/templates/ctfs/ctf_info.html:33 ctfs/templates/ctfs/ctf_info.html:42
#: events/templates/events/ctf_info.html:44
#: events/templates/events/ctf_info.html:53
msgid "Download"
msgstr ""
#: src/events/templates/events/event_info.html:9
#: ctfs/templates/ctfs/ctf_info.html:37
#: events/templates/events/ctf_info.html:48
msgid "Wrong flag ! You can do it !"
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:56
#: events/templates/events/ctf_info.html:66
msgid "Solved by"
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:80
#: events/templates/events/ctf_info.html:96
msgid "Nobody has solved this challenge yet."
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:87
#: events/templates/events/ctf_info.html:103
msgid "Author"
msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:88
#: events/templates/events/ctf_info.html:104
msgid "Point reward"
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:14
msgid "Solved"
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:37
msgid "No ctf available for this category."
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:42
msgid "Categories"
msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:48 templates/base.html:54
msgid "No category available."
msgstr ""
#: events/templates/events/create_team.html:9
#: events/templates/events/join_team.html:9
msgid "This event starts at"
msgstr ""
#: events/templates/events/create_team.html:16
#: events/templates/events/join_team.html:16
msgid "You need to be registered to the event."
msgstr ""
#: events/templates/events/create_team.html:19 events/views/teams.py:118
msgid "Name already taken."
msgstr ""
#: events/templates/events/create_team.html:25
#: events/templates/events/join_team.html:30
#: events/templates/events/manage_team.html:22
msgid "Team name"
msgstr ""
#: events/templates/events/create_team.html:27
#: events/templates/events/create_team.html:46
#: events/templates/events/join_team.html:52
msgid "Create Team"
msgstr ""
#: events/templates/events/create_team.html:32
#: events/templates/events/event_pwd.html:28
#: events/templates/events/join_team.html:37
msgid "You need to be logged to access this event."
msgstr ""
#: events/templates/events/create_team.html:41
#: events/templates/events/event_info.html:113
#: events/templates/events/event_pwd.html:36
#: events/templates/events/join_team.html:46
msgid "Starts at"
msgstr ""
#: events/templates/events/create_team.html:42
#: events/templates/events/event_info.html:114
#: events/templates/events/event_pwd.html:37
#: events/templates/events/join_team.html:47
msgid "Ends at"
msgstr ""
#: events/templates/events/create_team.html:47
#: events/templates/events/join_team.html:32
#: events/templates/events/join_team.html:51
msgid "Join Team"
msgstr ""
#: events/templates/events/create_team.html:54
#: events/templates/events/join_team.html:59
msgid "Find me a team !"
msgstr ""
#: events/templates/events/ctf_info.html:10
msgid "Event"
msgstr ""
#: events/templates/events/ctf_info.html:25
#: events/templates/events/event_info.html:9
msgid "Subscriptions is over."
msgstr ""
#: src/events/templates/events/event_info.html:12
#: src/events/templates/events/event_pwd.html:33
#: events/templates/events/ctf_info.html:28
#: events/templates/events/event_info.html:12
#: events/templates/events/event_pwd.html:18
msgid "You're already registered to this event."
msgstr ""
#: src/events/templates/events/event_info.html:20
#: src/events/templates/events/event_pwd.html:9
#: events/templates/events/ctf_info.html:36
#: events/templates/events/event_info.html:18
msgid "This event is over."
msgstr ""
#: events/templates/events/ctf_info.html:38
msgid "Error while processing your request. (Invalid Form)"
msgstr ""
#: events/templates/events/ctf_info.html:40
msgid ""
"Error: you're not registered to this event, so you can't register scores, "
"fucking logic."
msgstr ""
#: events/templates/events/event_info.html:20
#: events/templates/events/event_pwd.html:9
msgid "This event start at"
msgstr ""
#: src/events/templates/events/event_info.html:30
#: events/templates/events/event_info.html:30
msgid "Challenges"
msgstr ""
#: src/events/templates/events/event_info.html:47
#: events/templates/events/event_info.html:47
msgid "No challenges available."
msgstr ""
#: src/events/templates/events/event_info.html:51
#: events/templates/events/event_info.html:51
msgid "The event has not started yet."
msgstr ""
#: src/events/templates/events/event_info.html:57
#: events/templates/events/event_info.html:57
msgid "ScoreBoard"
msgstr ""
#: src/events/templates/events/event_info.html:88
#: events/templates/events/event_info.html:88
msgid "Team"
msgstr ""
#: src/events/templates/events/event_info.html:106
#: events/templates/events/event_info.html:106
msgid "No one have earn point yet, you gonna be the first ?"
msgstr ""
#: src/events/templates/events/event_pwd.html:16
msgid ""
"This event is reserved for one or more 42 campuses. If you have not "
"connected your intranet to 42CTF, you can do so with this button: "
#: events/templates/events/event_info.html:129
msgid "Manage my team"
msgstr ""
#: src/events/templates/events/event_pwd.html:25
msgid ""
"This event is reserved for one or more 42 campuses. And unfortunately your "
"campus can't participate. Do not hesitate to contact us to organize an event "
"on your campus!"
msgstr ""
#: src/events/templates/events/event_pwd.html:30
#: src/events/templates/events/join_team.html:22
#: events/templates/events/event_pwd.html:15
#: events/templates/events/join_team.html:21
msgid "Wrong password submited."
msgstr ""
#: src/events/templates/events/event_pwd.html:35
#: events/templates/events/event_pwd.html:20
msgid "This event is password protected"
msgstr ""
#: src/events/templates/events/event_pwd.html:36
#: events/templates/events/event_pwd.html:21
msgid "You need to submit the event password to gain access to this event."
msgstr ""
#: src/events/templates/events/events_list.html:6 src/templates/base.html:65
#: events/templates/events/events_list.html:6 templates/base.html:63
msgid "Events"
msgstr ""
#: src/events/templates/events/events_list.html:38
#: events/templates/events/events_list.html:38
msgid "See more"
msgstr ""
#: src/events/templates/events/events_list.html:44
#: events/templates/events/events_list.html:44
msgid "No events available."
msgstr ""
#: src/events/templates/events/join_team.html:20
#: events/templates/events/join_team.html:19
msgid "Team does not exist."
msgstr ""
#: src/events/templates/events/join_team.html:24
#: events/templates/events/join_team.html:23
msgid "Maximum size reached."
msgstr ""
#: src/events/templates/events/manage_team.html:26
#: events/templates/events/manage_team.html:26
msgid "Team password"
msgstr ""
#: src/events/templates/events/manage_team.html:29
msgid "Apply"
msgstr ""
#: src/events/templates/events/manage_team.html:44
#: src/events/templates/events/team.html:49
#: events/templates/events/manage_team.html:44
#: events/templates/events/team.html:49
msgid "Members"
msgstr ""
#: src/events/templates/events/manage_team.html:52
#: events/templates/events/manage_team.html:51
msgid "Leave Team"
msgstr ""
#: src/events/templates/events/manage_team.html:59
msgid "Open to automatching"
msgstr ""
#: src/events/templates/events/manage_team.html:66
msgid "Close to automatching"
msgstr ""
#: src/events/templates/events/team.html:38
#: events/templates/events/team.html:38
msgid "It seems that this team has not solved any challenge yet..."
msgstr ""
#: src/home/templates/home/home.html:21
#: home/templates/home/home.html:20
msgid "Weekly Top 5"
msgstr ""
#: src/home/templates/home/home.html:48
#: home/templates/home/home.html:56
msgid "No article available."
msgstr ""
#: src/home/templates/home/home.html:53
#: home/templates/home/home.html:61
msgid "Latest challenges added"
msgstr ""
#: src/home/templates/home/home.html:58
#: home/templates/home/home.html:66
msgid "points"
msgstr ""
#: src/home/templates/home/home.html:62
#: home/templates/home/home.html:70
msgid "No ctf available."
msgstr ""
#: src/home/templates/home/home.html:66
#: home/templates/home/home.html:74
msgid "Latest Flags"
msgstr ""
#: src/home/templates/home/home.html:80
#: home/templates/home/home.html:88
msgid "Flags"
msgstr ""
#: src/home/templates/home/home.html:86
#: home/templates/home/home.html:94
msgid "Users"
msgstr ""
#: src/project/settings.py:116
#: project/settings.py:115
msgid "English"
msgstr ""
#: src/project/settings.py:117
#: project/settings.py:116
msgid "German"
msgstr ""
#: src/project/settings.py:118
#: project/settings.py:117
msgid "French"
msgstr ""
#: src/project/settings.py:119
#: project/settings.py:118
msgid "Russian"
msgstr ""
#: src/project/settings.py:120
msgid "Japanese"
msgstr ""
#: src/project/settings.py:121
msgid "Spanish"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Campus"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:47
#: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:51
#: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page "
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:55
#: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next"
msgstr ""
#: src/scoreboard/templates/scoreboard/scoreboard.html:56
#: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last"
msgstr ""
#: src/templates/base.html:62
#: templates/base.html:59
msgid "Scoreboard"
msgstr ""
#: src/templates/base.html:83
msgid "Become a member"
#: templates/base.html:66
msgid "Resources"
msgstr ""
#: src/templates/base.html:93
#: templates/base.html:99
msgid "Logout"
msgstr ""
#: src/templates/base.html:100
#: templates/base.html:106
msgid "Sign Up"
msgstr ""
#: src/templates/registration/password_reset_complete.html:11
#: templates/base.html:144
msgid "Become a Patron!"
msgstr ""
#: templates/registration/password_reset_complete.html:11
msgid "Your new password has been set."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:20
#: templates/registration/password_reset_confirm.html:20
msgid "Your password cant be too similar to your other personal information."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:21
#: templates/registration/password_reset_confirm.html:21
msgid "Your password must contain at least 8 characters."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:22
#: templates/registration/password_reset_confirm.html:22
msgid "Your password cant be a commonly used password."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:23
#: templates/registration/password_reset_confirm.html:23
msgid "Your password cant be entirely numeric."
msgstr ""
#: src/templates/registration/password_reset_confirm.html:26
#: templates/registration/password_reset_confirm.html:26
msgid "Confirm"
msgstr ""
#: src/templates/registration/password_reset_confirm.html:28
#: templates/registration/password_reset_confirm.html:28
msgid "Submit"
msgstr ""
#: src/templates/registration/password_reset_done.html:11
#: templates/registration/password_reset_done.html:11
msgid ""
"We've emailed you instructions for setting your password. You should receive "
"the email shortly!"
msgstr ""
#: src/templates/registration/password_reset_form.html:16
#: templates/registration/password_reset_form.html:16
msgid "Reset"
msgstr ""

Some files were not shown because too many files have changed in this diff Show More