List of the publications'; if (file_exists($fileName)) { $file = fopen( $fileName, "r" ); echoIndexFileContent( $file, $strToReplace, $pubId, $topicHRef, null ); fclose( $file ); } /** * Initialization of the possibly requested publication and topic, * retrieving the information from the URL. * @global String $pubId publication notus identifier, set here if present in the URL * @global String $topicHRef topic H reference, set here if present in the URL * @param String $params the part of the requested URL following the 'index.html/' string */ function getURLPieces($params) { global $pubId, $topicHRef; if ($params) { $url_pieces = explode('/', $params); if ($url_pieces && count($url_pieces)) { $char = $url_pieces[0]{0}; if( $char >= '0' && $char <= '9' ) { $pubId = (isset($url_pieces[0])) ? $url_pieces[0] : null; $topicHRef = (isset($url_pieces[1])) ? $url_pieces[1] : null; } else { $pubId = (isset($url_pieces[1])) ? $url_pieces[1] : null; $topicHRef = (isset($url_pieces[2])) ? $url_pieces[2] : null; } if ($pubId == '__PublicationList') { $pubId = NULL ; // set it to null in order for the all list to be shown } } } }