source: trunk/format_html.php

Last change on this file was 3, checked in by chronos, 8 years ago
  • Modified: Updated to work with PHP7. Old database class replaced by Common package.
  • Property svn:executable set to *
File size: 508 bytes
Line 
1<?php
2
3include('global.php');
4
5ShowHeader(array('Formátovač HTML' => '/format_html.php'), 'Formátovač HTML kódu');
6
7if(array_key_exists('code', $_POST))
8{
9 $Output .= '<pre>'.htmlspecialchars(FormatOutput($_POST['code'])).'</pre>';
10} else
11$Output .= '<strong>Vložte kód, který chcete zformátovat</strong><br>'.
12'<form method="post" action="format_html.php">
13<textarea name="code" cols="80" rows="30"></textarea><br>
14<input type="submit" value="Odeslat">
15</form>';
16
17ShowFooter();
18
Note: See TracBrowser for help on using the repository browser.