fix php tags

This commit is contained in:
quenousimporte 2024-10-08 17:52:02 +02:00
parent 5e61fba372
commit feb3fad070
1 changed files with 9 additions and 9 deletions

View File

@ -79,7 +79,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title><? echo $title; ?></title> <title><?php echo $title; ?></title>
<link rel="manifest" href="manifest.json" /> <link rel="manifest" href="manifest.json" />
<meta name="theme-color" content="white" /> <meta name="theme-color" content="white" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
@ -88,7 +88,7 @@
</head> </head>
<body> <body>
<!-- editor --> <!-- editor -->
<div <? if(isset($_GET['preview'])) echo 'hidden'; ?>> <div <?php if(isset($_GET['preview'])) echo 'hidden'; ?>>
<form action="note.php" method="POST"> <form action="note.php" method="POST">
<div> <div>
<input type="submit" name="home" value="home" accesskey="h"> <input type="submit" name="home" value="home" accesskey="h">
@ -96,13 +96,13 @@
<input type="submit" name="preview" value="preview" accesskey="p"> <input type="submit" name="preview" value="preview" accesskey="p">
<input type="submit" name="download" value="download" accesskey="d"> <input type="submit" name="download" value="download" accesskey="d">
<input type="submit" name="delete" value="delete"> <input type="submit" name="delete" value="delete">
<input hidden name="lastchanged" value="<? echo $lastchanged; ?>"> <input hidden name="lastchanged" value="<?php echo $lastchanged; ?>">
<div><input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"></div> <div><input autocomplete="off" class="title" name="title" value="<?php echo $title; ?>"></div>
</div> </div>
<div class="editor"> <div class="editor">
<textarea rows="<? echo $rows; ?>" autofocus name="content" spellcheck="false"><? echo $content; ?></textarea> <textarea rows="<?php echo $rows; ?>" autofocus name="content" spellcheck="false"><?php echo $content; ?></textarea>
</div> </div>
<input hidden name="previoustitle" value="<? echo $title; ?>"> <input hidden name="previoustitle" value="<?php echo $title; ?>">
<?php <?php
echo '<div class="grey">' . $lines . '&nbsp;' . $words . '&nbsp;' . $chars . '&nbsp;' . $title . '.md</div>'; echo '<div class="grey">' . $lines . '&nbsp;' . $words . '&nbsp;' . $chars . '&nbsp;' . $title . '.md</div>';
echo linksdiv($content); echo linksdiv($content);
@ -111,9 +111,9 @@
</div> </div>
<!-- preview --> <!-- preview -->
<div <? if(!isset($_GET['preview'])) echo 'hidden'; ?>> <div <?php if(!isset($_GET['preview'])) echo 'hidden'; ?>>
<div><a class="grey" href="note.php?title=<? echo $title; ?>">back</a></div> <div><a class="grey" href="note.php?title=<?php echo $title; ?>">back</a></div>
<? <?php
echo computepreview($title, $content); echo computepreview($title, $content);
?> ?>
</div> </div>