<?php
if($_SESSION['username'])
{
echo '<p>Välkommen, du är inloggad som ' .
$_SESSION['username'] .
'!</p>';
@$file = $_POST['file'];
@$script = $_POST['script'];
if($file&&$script)
{
}
if ($handle =
opendir('../inc/txt/')) {
echo "Filer som kan ändras:</br>";
while (false !==
($file =
readdir($handle)))
{
$link = "editor.php?file=$file";
echo "<a href=$link>Ändra</a></br>";
}
}
echo '<p><a href="logout.php">Logga ut</a></p>';
}
else
{
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=index.php">';
}
?>