AROS stuff
<?
    
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&amp;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">&quot;<?= $_POST["file"]; ?>&quot; 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 &quot;<?= $file?>&quot;</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?>" /> &nbsp; &nbsp;
                    <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
Migration
kal, 2005/11/26 14:09:10.

"Code changes!" they cried.
kal, 2004/12/08 11:38:01.

Ages
kal, 2004/09/25 02:01:04.

Linkish
kal, 2004/07/10 07:40:57.

No updates
kal, 2004/05/16 06:57:33.

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.

Select Theme
  

Copyright © 2003, 2004 Kalle Räisänen.
Sources: index.php, global.inc, init.inc, theme.inc, navigation.php, sources.php, rightbar.php, xml.inc, io.inc, theme.php, footer.php