<?
include_once("$INCLUDE_DIR/xml.inc");
include("$INCLUDE_DIR/auth.inc");
if(isset($_POST["title"]) &&
isset($_POST["file"]) &&
( ($_POST["file"] == "software" && isset($_POST["relno"])) || isset($_POST["link"])) &&
isset($_POST["mode"]) &&
isset($_POST["where"]) &&
isset($_POST["description"]) &&
isset($_POST["update"]))
{
if($_POST["file"] == "software")
{
$entry = array(
"title" => stripslashes($_POST["title"]),
"description" => stripslashes($_POST["description"]),
"link" => "http://sourceforge.net/project/showfiles.php?group_id=98284&release_id=".$_POST["relno"],
"guid" => "http://sourceforge.net/project/shownotes.php?release_id=" . $_POST["relno"],
"author" => "$username",
"pubDate" => $_POST["pubd"]
);
}
else
{
$entry = array(
"title" => stripslashes($_POST["title"]),
"description" => stripslashes($_POST["description"]),
"link" => $_POST["link"],
"author" => "$username",
"pubDate" => $_POST['pubd']
);
}
modify("rss/" . $_POST["file"] .".rss", $_POST["where"], $_POST["mode"], $entry, $_POST["update"]);
?>
<div class="commonMain"><div class="commonCaption">"<?= $_POST["file"]; ?>" modified</div>
<div class="commonContent"><?= $_POST["mode"] . " of " . $_POST["file"] . " succeeded." ?></div></div>
<?
exit;
}
if(isset($_GET["mode"])) $mode = $_GET["mode"];
else $mode = "add";
if(isset($_GET["where"])) $where = $_GET["where"];
else $where = -1;
if(isset($_GET["file"])) $file = $_GET["file"];
else $file = "software";
if($where >= 0)
{
$parsed = get_items("rss/$file.rss");
if($file == "software")
$relno = get_relno($parsed["link"][$where]);
else
$link = $parsed["link"][$where];
$title = stripslashes($parsed["title"][$where]);
$desc = stripslashes($parsed["description"][$where]);
$pubd = $parsed["pubDate"][$where];
}
else
$relno = $link = $title = $desc = $pubd = 0;
?>
<div class="commonMain">
<div class="commonCaption">Modify "<?= $file; ?>"</div>
<div class="commonContent">
<form action="/?content=modify" method="post">
<fieldset>
<div class="float">
Title:<br />
<input type="text" name="title" value="<?= $title; ?>" size="40" /><br /><br />
<? if($file == "software") { ?>
Release No.:<br />
<input type="text" name="relno" value="<?= $relno; ?>" size="10" /><br /><br />
<? } else { ?>
Link:<br />
<input type="text" name="link" value="<?= $link?>" size="40" /><br /><br />
<? } ?>
</div>
<div>
Update pubDate:<br />
<select name="update">
<option value="1">Yes</option>
<option value="0">No</option>
</select>
<br clear="all" />
</div>
Description:<br />
<textarea name="description" cols="50" rows="24"><?= $desc; ?></textarea><br /><br />
<input type="hidden" name="file" value="<?= $file; ?>" />
<input type="hidden" name="mode" value="<?= $mode; ?>" />
<input type="hidden" name="where" value="<?= $where; ?>" />
<input type="hidden" name="pubd" value="<?= $pubd; ?>" />
<div class="right">
<input type="submit" value="<?= $mode; ?>" />
<input type="reset" value="Reset" />
</div>
</fieldset>
</form>
<p>
The syntax for URLs is <code>[URL|Title]</code>; eg.
<code>[http://www.aros.org/|Official AROS site]</code>.
</p>
</div>
</div>
Latest News
Latest Software
read 0.3.6
kal, 2004/04/30 07:14:24.
nroff 1.10
kal, 2004/04/22 08:29:10.
Nenscript 1.13.3
kal, 2004/04/22 08:23:53.
necho 0.2.3
kal, 2004/04/19 10:58:47.
dgrep 0.1.4
kal, 2004/04/19 10:49:42.
kal, 2004/04/30 07:14:24.
nroff 1.10
kal, 2004/04/22 08:29:10.
Nenscript 1.13.3
kal, 2004/04/22 08:23:53.
necho 0.2.3
kal, 2004/04/19 10:58:47.
dgrep 0.1.4
kal, 2004/04/19 10:49:42.
Select Theme
Links