Skip to content

Commit

Permalink
page complete
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Feb 20, 2010
1 parent 2f75814 commit 2ec46a3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
Binary file added Thumbs.db
Binary file not shown.
2 changes: 1 addition & 1 deletion content/butiken.tpl
@@ -1 +1 @@
<p>Butiken</p>
<p>Butiken 1234</p>
2 changes: 1 addition & 1 deletion content/index.tpl
@@ -1 +1 @@
<p>Stefan la till detta</p>
<p>Stefan la till detta 1234 . nn<br /><br />wweawe&nbsp;</p>
4 changes: 3 additions & 1 deletion content/kontakt.tpl
@@ -1 +1,3 @@
kontakt
<p>kontakt 1234 555</p>
<p>&nbsp;</p>
<p>Kontaktuppgifter</p>
6 changes: 5 additions & 1 deletion content/sortiment.tpl
@@ -1 +1,5 @@
<p>sortimenter</p>
<p>sortiment ny</p>
<p>&nbsp;</p>
<p>V&auml;lkommen till Amazoonas</p>
<p>&nbsp;</p>
<p>141 50 Stockholm</p>
12 changes: 11 additions & 1 deletion index.php
Expand Up @@ -41,9 +41,11 @@
$submit = $_GET['submit'];
$file = 'content/'.$submit.'.tpl';
$fh = fopen ($file, 'w') or die('fopen error');
$text = $_POST['text'];
$_SESSION['msg'] = '<span style="color: red"><b>'.$_SESSION['focus'].'</b> Sparad</span>';
$text = $_POST['text'];
fwrite ($fh, $text);
fclose ($fh);
header ('location: index.php?pageID='.$_SESSION['focus'].'&saved='.$_SESSION['focus']);
}

}
Expand Down Expand Up @@ -96,7 +98,15 @@
echo '</textarea>';
echo '<input type="submit" name="button" value="Spara"/>';
echo '<input type="submit" name="button" value="Logga ut"/>';


if (isset ($_GET['saved']))
{
echo '<span style="color: red"><b>'.$_GET['saved'].'</b> Sparad</span>';
}
echo '</form>';

$_SESSION['focus'] = $page;
}
else
require 'content/'.$page.'.tpl';
Expand Down

0 comments on commit 2ec46a3

Please sign in to comment.