mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-09-18 23:57:25 +02:00
.idea
assets
server_files
classes
controllers
services
views
admins.php
ajouter_admin.php
ajouter_equipe.php
calendrier.php
commenter_echange.php
connexion.php
envoyer_video.php
equipe.php
exporter_donnees.php
footer.php
header.php
index.html
index.php
informations.php
inscription.php
ma_participation.php
mon_compte.php
mon_equipe.php
poser_questions.php
probleme.php
profils_orphelins.php
rejoindre_equipe.php
repondre_questions.php
suivi_correspondances.php
403.php
404.php
config.php
model.php
utils.php
setup
.htaccess
Dockerfile
dispatcher.php
index.html
26 lines
878 B
PHP
26 lines
878 B
PHP
<?php require_once "header.php";
|
|
|
|
if (isset($_GET["edit"])) { ?>
|
|
<form method="POST">
|
|
<label for="content">Contenu de la page :</label>
|
|
<textarea id="content" name="content" class="form-control" rows="<?= substr_count($CONFIG->getIndexPage(), "\n") + 1 ?>"><?php echo $CONFIG->getIndexPage() ?></textarea>
|
|
|
|
<hr />
|
|
|
|
<div class="form-group row">
|
|
<input class="btn btn-primary btn-lg btn-block" name="edit_page" type="submit" value="Modifier"/>
|
|
</div>
|
|
</form>
|
|
<?php } else {
|
|
|
|
echo htmlspecialchars_decode($CONFIG->getIndexPage());
|
|
|
|
if (isset($_SESSION["user_id"]) && $_SESSION["role"] == Role::ADMIN) { ?>
|
|
<hr/>
|
|
<a class="btn btn-primary btn-block btn-lg" style="background-color: #ff2e34;" href="/modifier-page">
|
|
Modifier la page
|
|
</a>
|
|
<?php }
|
|
}
|
|
|
|
require_once "footer.php";
|