[code lang=”php”] function show_file_func( $atts ) { extract( shortcode_atts( array( ‘file’ => ” ), $atts ) );
if ($file!=”) return @file_get_contents($file); }
add_shortcode( ‘show_file’, ‘show_file_func’ ); [/code]
You must be logged in to post a comment.