/************************************************************************/
/* HARDROCKMG: Le portail du hard rock malgache */
/* =========================== */
/* */
/* Original Copyright (c) 2005 www.hardrockmg.com - Andry R. */
/* http://www.hardrockmg.com */
/* */
/************************************************************************/
/*
_____________________________________________________________
Mettre les fichiers encodés en .rm dans
le sous-dossier rm et les commentaires dans le dossier ram
avec le même nom et l'extention txt
_____________________________________________________________
*/
if(!IsSet($mainfile)) { include ("mainfile.php"); }
global $pdsts;
$pdst="1";
include ("header.php");
echo '
';
/**********************************************
VARIABLES
**********************************************/
// chemin relatif du module
/*$ModName = basename( dirname( __FILE__ ) );
$ModDir = 'modules/'.$ModName;
$chem_dom = "http://www.hardrockmg.com/";
$chem_rm = "$ModDir/ram/rm/";
$chem_ram = "$ModDir/ram/";
$chem_ima = "$ModDir/ram/images";
*/
// variable lancement video
/*$var_tv = "&ontv=";
$video_x = "242";
$video_y = "187";*/
// comment appeler le module...
// define('REALF',"modules.php?ModPath=ppm&ModStart=index&");
$realf = "modules.php?ModPath=$ModName&ModStart=$ModName";
/*********************************************/
///////////////////////////////////////////////////////
// Détecte les fichiers RealMédias dans le rep rm ///
///////////////////////////////////////////////////////
/*$myDirectory = opendir($chem_rm);
while($entryName = readdir($myDirectory))
{
if ($entryName !="." && $entryName !=".." && $entryName !="index.html")
{
$ma_liste .= "$entryName"."|" ;
}
}
closedir($myDirectory);
$ma_liste = substr($ma_liste,0,(strlen($ma_liste)-1));
$entree = explode("|", $ma_liste);*/
///////////////////////////////////////////////////////
// Plasse les .rm plus récents en premier ///
///////////////////////////////////////////////////////
/*function inverser( &$tableau ) {
for($i = 0; $i < sizeof($tableau); $i++)
$nTab[$i] = $tableau[ sizeof($tableau) - $i - 1];
return $nTab; }
$entree = inverser($entree);*/
///////////////////////////////////////////////////////
/* include('header.php'); */
?>
if ($ontv != "")
{$commentsfile = $chem_ram.$ontv.".txt";
if (file_exists($commentsfile))
{echo "
";
include($commentsfile);
echo " | ";
}}
echo '
|
';
include('footer.php');
?>