This commit is contained in:
Ventricule 2018-02-19 22:48:41 +01:00
commit da13fb7f55
483 changed files with 126400 additions and 0 deletions

41
index.php Normal file
View file

@ -0,0 +1,41 @@
<?php
include('snippets/functions.php');
if(isset($_POST['new_name'])):
if($new_name = $_POST['new_name']) :
header('Location: ' . 'http://' . $_SERVER["SERVER_NAME"] . '/' . urlencode($new_name) );
endif;
endif;
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Libreto</title>
<link rel="stylesheet" href="/assets/style-index.css">
</head>
<body>
<div id="container">
<article>
<?php
$markdown = file_get_contents("readme.md");
$Parsedown = new ParsedownExtra();
$html = $Parsedown->setBreaksEnabled(true)->text($markdown);
echo $html;
?>
<div class="create_libreto">
<form action="" method="POST">
<input type="input" autofocus="autofocus" onfocus="this.select()" name="new_name" />
<button type="submit" />Créer un Libreto</button>
</form>
</div>
</article>
</div>
</body>
</html>