| Line | |
|---|
| 1 | <?
|
|---|
| 2 | if(array_key_exists('text', $_GET))
|
|---|
| 3 | {
|
|---|
| 4 | $Soubor = fopen('index.php', 'a+');
|
|---|
| 5 | fputs($Soubor, date('j.n.Y.h.m', time()).'-'.$_GET['text'].'<br>');
|
|---|
| 6 | fclose($Soubor);
|
|---|
| 7 | echo('Aktualita pøidána<br><br>');
|
|---|
| 8 | } else
|
|---|
| 9 | {
|
|---|
| 10 | echo('<form action="pridat.php" method="get">
|
|---|
| 11 | <strong>Obsah aktuality:</strong><br>
|
|---|
| 12 | <textarea name="text" cols="60" rows="15"></textarea><br>
|
|---|
| 13 | <input type="submit" value="Pøidat aktualitu">
|
|---|
| 14 | </form>
|
|---|
| 15 | ');
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | include('index.php');
|
|---|
| 19 | ?>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.