"What's New", 'author' => 'Jan van der Steen', 'editor' => 'editor@gobase.org', 'modified' => '2002-10-20', 'flag' => 'nn', 'section_path' => array( 'General Information', "What's New", ), 'references' => array( 'home' => array( 'url' => "/", ), 'prev' => array( 'txt' => "Contributors", 'url' => "../contributors/", ), 'index' => array( 'url' => "../", ), 'next' => array( 'txt' => "Contributing", 'url' => "../contributing/", ), ), 'path' => array( array( 'txt' => 'home', 'url' => '/', ), array( 'txt' => 'general information', 'url' => '/information/', ), array( 'txt' => "what's new", ), ), ); // // Create the mutation information // $sgf_list = array(); $data = '../../games/mutation'; for ($n = $range_min; $n <= $range_max; $n++) { $path = "$data/sgf.{$n}"; if (file_exists($path)) $sgf_list[$n] = $path; } if (isset($_GET['sgf'])) { $sgf = $_GET['sgf']; if ($sgf < $range_min || $sgf > $range_max || !isset($sgf_list[$sgf])) unset($sgf); } function sec_intro() { print <<<__EOF

This page keeps track of new or modified information on this site. Both documents and electronic game records are daily being monitored. __EOF; } function emit_days($days) // // Emit "# day(s) ago" // { return "$days day" . (($days > 1) ? "s" : ""); } // // This array determines how many days we go back in time // Used by sec_tour() and sec_page() // $changed = array( '1' => array(), '2' => array(), '3' => array(), '4' => array(), '5' => array(), '6' => array(), '7' => array(), '8' => array(), '9' => array(), '10' => array(), '11' => array(), '12' => array(), '13' => array(), '14' => array(), ); function sec_tour() // // Tournament pages // { global $changed; $modified_tour = collect_modified_tournaments($changed); print "

\n"; print "\n"; print ""; print ""; print ""; print "\n"; foreach($modified_tour as $cat => $val) { if (count($val) == 0) continue; print "\n"; print "\n"; print "\n"; print "\n"; } print "
agepage
"; print emit_days($cat); print ""; foreach ($val as $ref) { print ""; print $ref['txt']; print "
\n"; } print "
\n"; print "
\n"; } // // Never examine these URL's // $killlist = array( '/', '/sheet/', '/online/sgf2misc/', '/help/changes/', '/replay/', '/replay/doc/', '/information/whatsnew/', '/information/design/', '/information/PandaNet/', '/information/PandaNet/ideas/', '/information/PandaNet/inquiry/', '/information/PandaNet/tour/', '/information/PandaNet/clients/', '/information/PandaNet/comparison/', '/studying/dev/', '/studying/dev2/', '/studying/articles/myong-ji/', '/studying/articles/myong-ji/slides/vanderSteen/', '/reading/preview/firstkyu/', '/games/', '/games/china/', '/games/china/TITLES/', '/games/inter/', '/games/inter/TITLES/', '/games/japan/', '/games/japan/TITLES/', '/games/korea/', '/games/korea/TITLES/', '/games/taiwan/', '/games/taiwan/TITLES/', '/13x13/suwarrow/', '/13x13/phoenixnl/', '/19x19/edlee/', '/19x19/suwarrow/', '/19x19/meerkat/', '/19x19/vunderink/', ); function sec_page() // // Documents pages // { global $changed; global $killlist; $modified_page = collect_modified_pages($changed, $killlist); print "
\n"; print "\n"; print ""; print ""; print ""; print "\n"; foreach($modified_page as $cat => $val) { if (count($val) == 0) continue; print "\n"; print "\n"; print "\n"; print "\n"; } print "
agepage
"; print emit_days($cat); print ""; foreach ($val as $ref) { print ""; print $ref['txt']; print "
\n"; } print "
\n"; print "
\n"; } function sec_sgf() // // SGF game records // { global $sgf; global $sgf_list; print "
\n"; print "\n"; print ""; print ""; print ""; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "
agegames
"; print "

\n"; reset($sgf_list); while (list($key, $val) = each($sgf_list)) { if (!isset($sgf) || $key != $sgf) { print ""; print emit_days($key); print ""; } else { print emit_days($key); } print "
\n"; } print "

"; print "

\n"; reset($sgf_list); while (list($key, $val) = each($sgf_list)) { $ngames = `wc -l $val | awk '{print $1}'`; if (!isset($sgf) || $key != $sgf) { print ""; print "$ngames game record"; if ($ngames > 1) print "s"; print ''; } else { print "$ngames game record"; if ($ngames > 1) print "s"; } print "
\n"; } print "

\n"; print "
\n"; if (!isset($sgf)) { print "

\n"; print "(select to create a detailed listing)
\n"; } print "

\n"; print "Visit the search page to list more games
\n"; } function sec_list() // // List SGF game records // { global $sgf; global $sgf_list; sgf_list( `sed "s#^/#{$_SERVER['DOCUMENT_ROOT']}/#" $sgf_list[$sgf] | tr '\n' ' '` , 'ev:pb:pw:dt:pc:re:mn'); } ?>