Wgrałem te pliki na server i nie wiem jak się do tego dalej zabrać.
mam panel admina który wygląda tak
<?php
require("auth.php");
$basedir = "../text-base";
print '<?xml version="1.0" encoding="iso-8859-2"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
<meta name="content-language" content="pl" />
<meta name="author" content="" />
<meta name="description" content="pf" />
<title></title>
<style type="text/css">
<!--
body { font:normal 11px verdana; margin: 0; padding: 0; }
input, textarea { color: Green; border: solid 1px Green; }
input.button { background: #9c6; color: #4f680c; }
form { margin : 0; padding: 0;}
/* menu */
#menu {
border-bottom: solid 1px #4f680c;
color: #4f680c;
padding: 5px;
background: #9c6;
}
#menu a {
text-decoration: none;
color: #4f680c;
}
/* END menu */
-->
</style>
</head>
<body xml:lang="pl">
<div id="menu">
<form action="./index.php" method="post">
L: <input type="text" name="login" /> P: <input type="password" name="password" /> <input class="button" type="submit" value="OK" />
</form>
</div>
</body>
po zalogowaniu przechodzi do pliku
<?php
require("auth.php");
$basedir = "../text-base";
$handle = fopen("$basedir/text_news.txt", "r");
if ($handle) {
$buffer .= fgets($handle, 4096
);
}
}
foreach($news as $key => $new)
$newsexp[$key] = explode("|126124|", $new);
for($i = (count($newsexp)-1
); $i>=0; $i--)
if($newsexp[$i][0] != '' && $i == $_GET['id'])
$newsexp[$i][0],
$newsexp[$i][1],
$newsexp[$i][2] );
print '<?xml version="1.0" encoding="iso-8859-2"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
<meta name="content-language" content="pl" />
<meta name="author" content="" />
<meta name="description" content="pf" />
<title></title>
<style type="text/css">
<!--
body { font:normal 11px verdana; margin: 0; padding: 0; }
input, textarea { color: Green; border: solid 1px Green; }
input.button { background: #9c6; color: #4f680c; }
/* menu */
#menu {
border-bottom: solid 1px #4f680c;
color: #8b5;
padding: 5px;
background: #9c6;
}
#menu a {
text-decoration: none;
color: #4f680c;
}
/* END menu */
-->
</style>
</head>
<body xml:lang="pl">
<div id="menu"> | <a href="../index.php">Powrót</a> | <a href="text_edit.php?a=rozne">
rozne</a> | <a href="text_edit.php?a=aktualnosci">Aktualności</a> |
<a href="logout.php">Wyloguj</a> |</div>
<div style="width: 500px; margin: 5px">
<form action="save.php?a=editnews&id=
<? print $output[0] ?>" method="post">
<input type="hidden" name="date" value="
<? print $output[2] ?>" /><br />
Treść:<br />
<textarea name="text" rows="8" cols="60">
<? print $output[3] ?></textarea><br />
<input type="submit" class="button" value="Zapisano" /><br /><br />
</form>
</div>
Co dalej powinienem zrobić?