mirror of
https://github.com/zamentur/libreto.git
synced 2025-11-06 06:15:01 +05:30
Launch !
This commit is contained in:
commit
da13fb7f55
483 changed files with 126400 additions and 0 deletions
41
index.php
Normal file
41
index.php
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue