<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
//
// Fichier index.php pour serveur joomla! propulsé par Mov'AMP
// Adaptation du fichier index.php de EasyPHP par Jean-Louis Servais aka Papounet
// Pour toutes remarques et suggestion vous pouvez me contacter via joomladraft.com

// Ne pas utiliser sur un site WEB en ligne



// Versions
$versionJoomla = "1.5.4";
$versionServer = "1.5.4";
$versionApache = "2.0.54";
$versionMySQL = "4.1.12";
$versionPHP = "5.2.3";
$versionPhpMyAdmin = "2.6.2-pl1";

// Par défaut : anglais
$directoryListing = "Carpetas en el directorio ra&#237;z (\"www\")";
$noDir = "no folder";
$presentation = "<b style='color:#0088B2;'>Administraci&#243;n Joomla!:</b> Login=<b>admin</b>; Contrase&#241;a=<b>contrasena</b> - <b style='color:#0088B2;'>phpMyAdmin:</b> Login=<b>root;</b> Contrase&#241;a=nada.<br />Puedes realizar varias instalaciones de Joomla!. La &#250;nica limitaci&#243;n es la capacidad de la memoria USB o de tu disco duro. Para ello, crea una nueva base de datos en phpMyAdmin, descomprime un paquete de instalaci&#243;n de Joomla! en una nueva carpeta dentro de la carpeta /www/ y realiza la instalaci&#243;n web.";
$designText ="Design et intégration par Jean-Louis Servais aka Papounet";

// Faire seulement...
$browser_languages = explode(",", getenv("HTTP_ACCEPT_LANGUAGE"));
$nb_browser_languages = sizeof($browser_languages);
$browser_lang = "";	// ne pas initialiser
$biContinue = true;

for ($niI = 0; $biContinue==true && $niI < $nb_browser_languages; $niI++)
{
	$biContinue = false;
	$lg = explode("-", $browser_languages[$niI]);
	switch ($lg[0])
	{
	case "fr" : $directoryListing = "R&eacute;pertoire(s) &agrave; la racine du serveur (\"www\")";
				$noDir = "aucun répertoire";
				$presentation = "<b style='color: #4682B4;'>Site web :</b> Login = <b>admin</b> et Mot de passe = <b>admin</b> - <b style='color: #4682B4;'>Base de données :</b> Login = <b>root</b> et pas de mot de passe.<br />Vous pouvez installer plusieurs joomla. La seule limite est la capacité de votre clef USB ou de votre disque dur. Pour ce faire, Créez une nouvelle base de données à l’aide de phpMyAdmin et décompressez une archive de joomla dans un nouveau dossier du répertoire www.";
				$designText ="Design et intégration par Jean-Louis Servais aka Papounet";
				break;
	case "en" : break;
	default: $biContinue = true;
	}
}

?>
<html>
<head>
<title>Servidor aut&#243;nomo Joomla! Mov'AMP - Para USB y Pc con Windows</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
* {font-family: Arial, Helvetica, sans-serif; font-size:14px; line-height:18px;padding:0; margin:0;}
a.movamp { text-decoration: none;}
a {color: #0088B2; }
a:hover {color: #FF8C00; }
.titre1 {color: #0088B2; background-color: #F0F0F0; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; padding-top: 26px; border-bottom: 1px solid #CCCCCC;}
.text1 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; text-align : left;}
br { font-size: 6px; line-height: 6px;}
</style>
</head>

<body style="background: #FFFFFF url(img/bg_body.png) repeat left top;">
	<!-- NEW TEMPLATE -->
	<div align="center">
		<div style="background: white; padding: 4px; border: 1px solid gray; margin:24px auto; width: 760px;">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border: 1px solid silver;">
				<tr>
					<!-- HEADER -->
					<td  colspan="3" style="background: url(img/bg_header.png) repeat-x left top; height:54px;"">
						<div style="color:#FF8C00; background: url(img/bg_header_logo.png) no-repeat right top; height: 54px; font-size:24px; line-height:48px; font-weight:bold; text-align: left; padding-left: 24px;">
									Mov'AMP Joomla! <?php echo $versionServer; ?>
						</div>
					</td>
				</tr>
				<!-- SLOGAN -->
				<tr>
					<td colspan="3" style="background-color:#F0F0F0; color:navy; font-size: 15px; line-height: 23px; font-weight: normal; text-align: center; padding: 4px; border-bottom:1px solid #CCCCCC;">
						Servidor aut&#243;nomo con Joomla! preinstalado - Funciona en memorias USB y Pc con Windows 2000, XP y Vista
					</td>
				</tr>
				<!-- CONTENT -->
				<tr>
					<!-- LEFT COLUMN -->
					<td valign="top" style="color: gray; padding: 4px; border-right: 1px solid #CCCCCC; text-align: left; width: 188px;">
						<br />
						&nbsp;Powered by :<br />
						<div style="text-align: center;">
							<a class="movamp" href="http://www.movamp.net/" target="_blank">
								<img src="http://localhost/img/logo_movamp.png" width="180" height="68" border="0" alt="movamp.net" />
							</a>
						</div>
						<br />
						&nbsp;Adapted by :<br />
						<div style="text-align: center;">
							<a class="movamp" href="http://www.joomladraft.com/" target="_blank">
								<img src="img/logo_joomladraft.png" width="180" height="127" border="0">
							</a>
						</div>
						<br />
						&nbsp;Joomla! extensions, tutoriels,<br />
						&nbsp;documentations et forum en<br />
						&nbsp;langue française&nbsp;:<br />
						<div style="text-align: center;">
							<a class="movamp" href="http://www.joomla.fr/" target="_blank" alt="www.joomla.fr">
								<img src="img/pw_joomlafr.png" width="95" height="44" border="0" hspace="6">
							</a>
						</div>
					</td>
					<!-- CENTER COLUMN -->
					<td valign="top">
						<table border="0" cellspacing="0" cellpadding="0" align="center">
							<tr>
								<td valign="top" width="56" style="background-color: #F0F0F0; padding: 12px; border-bottom: 1px solid #CCCCCC;">
									<img src="img/ico_website.png" hspace="6" vspace="2" />
								</td>
								<td  valign="top" width="100%" nowrap class="titre1">
									&nbsp;<? echo $directoryListing; ?>&nbsp;:
								</td>
							</tr>
						</table>
									<?php
										$rep=opendir('.');
										$bAuMoinsUnRepertoire = false;
										while ($file = readdir($rep)){
											if($file != '..' && $file !='.' && $file !='' && $file !='img'){
												if (is_dir($file)){
													$bAuMoinsUnRepertoire = true;
													print("<table border='0' cellspacing='6' cellpadding='6' width='100%' style='border-bottom:1px solid silver;'>");
													print("<tr>");
													print("<td width='44' nowrap class='text1'>&nbsp;</td>");
													print("<td width='100%' class='text1' colspan='2'>");
													print("<img src='img/ico_administrator.png' vspace='2' align='absmiddle' />");
													print("&nbsp;<a href='$file/administrator/' class='text1'>$file/administrator/</a>");
													print("</td>");
													print("</tr><tr>");
													print("<td width='44' nowrap class='text1'>&nbsp;</td>");
													print("<td width='32' nowrap class='text1'>&nbsp;</td>");
													print("<td width='100%' class='text1'>");
													print("<img src='img/ico_home.png' vspace='2' align='absmiddle' />");
													print("&nbsp;<a href='$file/' class='text1'>$file</a>");
													print("</td>");
													print("</tr>");
													print("</table>");
												}
											}
										}
										if ($bAuMoinsUnRepertoire == false) {
											print("<table border='0' cellspacing='4' cellpadding='4' width='100%' style='padding-bottom:6px;'>");
                      print("<tr>");
											print("<td nowrap class='text1'>");
											print("<div align='center'>-&nbsp; $noDir &nbsp;-</div>");
											print("</td>");
											print("</td></tr></table>");
										}
										closedir($rep);
										clearstatcache();
									?>
					</td>
					<!-- RIGHT COLUMN -->
					<td  valign="top" style="color: gray; text-align: center; padding: 4px; border-left: 1px solid #CCCCCC; width: 120px;">
						<br />
						<a class="movamp" href="http://www.joomla.org/" target="_blank" alt="www.joomla.org">
							<img src="img/pw_joomla.png" width="94" height="44" border="0" hspace="6"><br /><?php echo $versionJoomla; ?>
						</a><br />
						<hr style="border-width:1px 0 0 0; border-color:red; margin:4px;" />
						<a class="movamp" href="http://www.apache.org/" target="_blank" alt="http://www.apache.org/">
							<img src="img/pw_apache.png" width="104" height="44" border="0" hspace="6"><br /><?php echo $versionApache; ?>
						</a><br />
						<hr style="border-width:1px 0 0 0; border-color:red; margin:4px;" />
						<a class="movamp" href="http://www.mysql.com/" target="_blank" alt="www.mysql.com">
							<img src="img/pw_mysql.png" width="94" height="44" border="0" hspace="6"><br /><?php echo $versionMySQL; ?>
						</a><br />
						<hr style="border-width:1px 0 0 0; border-color:red; margin:4px;" />
						<a class="movamp" href="http://fr.php.net/" target="_blank" alt="fr.php.net">
							<img src="img/pw_php.png" width="66" height="44" border="0" hspace="6"><br /><?php echo $versionPHP; ?>
						</a><br />
						<hr style="border-width:1px 0 0 0; border-color:red; margin:4px;" />
						<a class="movamp" href="http://www.phpmyadmin.net/home_page/index.php" target="_blank" alt="www.phpmyadmin.net">
							<img src="img/pw_phpmyadmin.png" width="82" height="44" border="0" hspace="6"><br /><?php echo $versionPhpMyAdmin; ?>
						</a><br />
					</td>
				</tr>
				<!-- INSTRUCTION FOR USE -->
				<tr>
					<td colspan="3" style="color: gray; background-color: #F0F0F0; padding: 4px; border-top: 1px solid #CCCCCC; text-align:justify;">
						<?php echo $presentation ?><br />
					</td>
				</tr>
				<!-- FOOTER -->
				<tr>
					<td colspan="3" style="color: gray; background: white url(img/bg_footer_spacer.png) repeat-x left top;text-align: center; padding: 17px 4px 8px 4px; border-top: 1px solid #CCCCCC;">
						&copy; <?php echo $designText; ?> - <a href="http://www.joomladraft.com/" target="_blank">JoomlaDraft.com</a> 2008<br />
						<a href="http://www.joomla.org/" target="_blank">Joomla!</a> Open Source est un logiciel libre sous licence <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC1" target="blank">GNU General Public License</a>.<br />
					</td>
				</tr>
		</table>
		</div>
	</div>
</body>
</html>
