% include_once( "../php_scripts/auto_prepend.php" ); %>
<%
// initialize some globals
include_once( "../setup.php" );
// the general functions
include_once ( "../inc/ac_helpers.php");
if ( $article_id )
{ // get the author's id
$contents = fetch_article_contents( $article_id );
$article_info = fetch_article_info( $article_id );
$author_id = $article_info[author_id];
$image_data = fetch_article_photos( $article_id );
}
// draw the header!
include_once( "../inc/header.php" );
%>
<% @start_left_column(); %>
<% if ( $article_id ) {
if ( !$page ) { $page = 1; }
@start_section( "My Recent Articles", $ACGLOBALS[LEFT_COL_WIDTH], $ACGLOBALS[LEFT_COL] );
display_articles( 8, "", $author_id, "" );
%>
<%
@end_section( );
echo " ";
} %>
<% @start_section( "Articles by Author", $ACGLOBALS[LEFT_COL_WIDTH], $ACGLOBALS[LEFT_COL]); %>
<% @display_authors( 10, "" ); %>
<% end_section(); %>
<% @display_left_column_contents( "articles" ); %>
<%
echo " ";
if ( $author_id ) {
@start_section( "About the Author", $ACGLOBALS[LEFT_COL_WIDTH], $ACGLOBALS[LEFT_COL] );
display_author_profile( $author_id );
@end_section( );
}
echo "
";
%>