Location: PHPKode > scripts > XML Weblication > xml-weblication/modules/article.php
<?php

function module_article() {

  global $cfg,$aid;
  
  $fname = $cfg["articles"] . "/" . $aid . ".xml";
  if ( ! file_exists( $fname ) ) {
    return( Error( "Couldn't find/open article $fname" ));
  }
  
  $xml = new xml( $fname );
  if ( $xml->load() ) {
    $article = new Article( $xml->element );
	$rc .= $article->display();;
    $xml->free();
  }
  else {
    return( Error( "Couldn't parse $fname" ));
  }
  
  return( $rc );
}



?>
Return current item: XML Weblication