$p = '
'; // for some adsense includes $file = $_SERVER['PHP_SELF']; $file = preg_replace( "|.*/|", "", $file, 1 ); preg_match( "|(.*)\.|", $file, $match ); $name = $match[1]; $pages = array( 'index', 'internet-oasis', 'barcelona', 'manhattan', 'opportunity', 'team', 'alert' ); $n = count( $pages ); $done = 0; for ( $i = 0; $i < $n; ++$i ) { if ( !strcmp( $name, $pages[ $i ] ) ) { $previous = $i >= 1 ? $pages[ $i - 1] : ""; $next = $i < $n ? $pages[ $i + 1] : ""; $i = $n; } } ?>
| include("topnav.html") ?> |
| include("$name.html") ?> |
| if ( strcmp( $previous, "" ) ) { echo "Previous "; } if ( strcmp( $next, "" ) ) { echo "Next"; } ?> |