/** * Capture the return of a single function * Example: ob_capture( 'readfile', '/tmp/file.txt' ); * @return String of every output during the function */ function ob_capture() { $args = func_get_args(); if ( function_exists( $args[0] ) ) { ob_start(); eval( array_shift( $args ) . '( $args[' . implode( '], $args[', array_keys( $args ) ) . '] );' ); $str = ob_get_contents(); ob_end_clean(); return $str; } } function include_content( $src ) { $file = ob_capture( 'readfile', $_SERVER['DOCUMENT_ROOT'] . $src ); echo str_replace( ' href="', ' target="_content" href="', $file ); } ?>
| = gmdate( "m/d/Y H:i:s" ) ?>gmt | ||||
| desktopian | ||||
![]() | ||||
![]() |
include_content( "/includes/headlines.html" ) ?> | ![]() |
||
![]() | ||||
![]() | ![]() | ![]() | ||
![]() | ||||
| community news | ||||
![]() | ||||
![]() |
include_content( "/includes/osheadlines.html" ) ?>
|
![]() |
||
![]() | ||||
![]() | ![]() | ![]() | ||
![]() | ||||