AROS stuff
<?
    
include_once("$INCLUDE_DIR/xml.inc");

    if(!isset(
$_GET['file']))
        
$file 'news';
    else
        
$file $_GET['file'];

    function 
nav_links($start$pos$num_parsed$limsize$cpage)
    {
        
$num_parsed--;
        if(
$start || $num_parsed $pos)
        {
            echo 
'<div class="commonMain">';
            echo 
'<div class="commonContent boldlinks">';
            if(
$start 0)
                {
                echo 
'<div' . (($num_parsed $pos) ? ' class="float"' '') . ">\n";
                echo 
'<a href="/?content=parse&amp;file='$cpage '&amp;start=' 
                        
. ($start $limsize) . '">&lt;&lt;&lt&nbsp;Prev</a>';
                echo 
"\n<br /></div>\n";
                }
            if(
$num_parsed $pos)
                {
                echo 
"<div class=\"right\">\n";
                echo 
'<a href="/?content=parse&amp;file=' $cpage '&amp;start=' 
                        
. ($start $limsize) . '">Next&nbsp;&gt;&gt;&gt</a>';
                echo 
"\n</div>\n";
                }
            echo 
"\n</div>\n</div>\n";
        }
    }
    

    
$parsed get_items("rss/$file.rss");
    
$start 0;
    if(isset(
$_GET['start']))
        
$start $_GET['start'];

    if(
$start 0$start 0;

    if(isset(
$_GET['id']))
        {
        
$id $_GET['id'];
        
$pn id2pagenum($parsed$id);
        if(
$pn >= 0$start $pn;
        }
    
    
$limsize 10;
    
$limit $start $limsize;

//    nav_links($start, $limit - 1, count($parsed['title']), $limsize, $file);

    
$tpl_data read_file("templates/$file.tmpl");
    
$mod_lnk  "<a href=\"/?content=modify&amp;file=$file";

    for(
$i $start$i count($parsed['title']) && $i $limit$i++)
        {
        if(isset(
$username))
            echo 
data_2_html($parsed$i$tpl_data
                
'<div class="right" style="border-top: 1px solid black; margin-top: 15px; padding: .5em">'.
                                 
"$mod_lnk&amp;mode=add&amp;where=-1\">Add last</a>\n &nbsp; | &nbsp;".
                                  
"$mod_lnk&amp;mode=add&amp;where=$i\">Add here</a>\n &nbsp; | &nbsp;".
                                  
"$mod_lnk&amp;mode=modify&amp;where=$i\">Modify</a>\n &nbsp; | &nbsp;".
                                  
"$mod_lnk&amp;mode=delete&amp;where=$i\">Delete</a>\n".
                                  
'</div>' );
        else
            echo 
data_2_html($parsed$i$tpl_data);

        }
    
nav_links($start$limit 1count($parsed['title']), $limsize$file);

?>
 
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