<?php
/*
Copyright (C) 2007 Mercier Benjamin

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
*/
$SelectionQuota = $MySql->Select("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
if ($SelectionQuota != FALSE)
	{
	$Espace = $SelectionQuota[0]["Espace"];
	$BandePassante = $SelectionQuota[0]["BandePassante"];
	}
else
	{
	$Espace = 0;
	$BandePassante = 0;
	}
	
?>
<p>Bienvenue sur l'administration l'hébergement Kelio !
<br />Veuillez choisir une action à effectuer dans le menu ci-contre.</p>
<div style="background-image: url(image/icons/message-info.png); background-repeat: no-repeat; padding-left: 35px; min-height: 24px;">
<p>N'oubliez pas que notre hébergement vit grâce à vos dons et à la publicité ! Mettre une petite publicité sur votre site nous aidera à continuer ! Vous êtes satisfait du service que nous vous offrons ? Alors faites nous le savoir par votre contribution. <a href="./Page-Divers-Contribuer.html">En savoir plus</a>
</p>
</div>

<br /><br />

<table border="0" style="width: 30%; float: left;">
  <tbody>
    <tr>
      <td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Accès rapide</strong></td>
    </tr>
    <tr>
      <td><img alt="Bases de données" src="image/icons/database.png" /></td>
      <td><a style=" cursor:pointer" onclick="Cache('JS_bdd');">Bases de données</a></td>
    </tr>
	<tr id="JS_bdd" style="display: none">
	<td colspan="2">
	<img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-AjoutBdd.html">Ajouter</a><br />
	<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-SuppressionBdd.html">Supprimer</a>
	</td>
	</tr>
    <tr>
      <td><img alt="FTP" src="image/icons/arrow_refresh.png" /></td>
      <td><a style=" cursor:pointer" onclick="Cache('JS_ftp');">Comptes FTP</a></td>
    </tr>
	<tr id="JS_ftp" style="display: none">
	<td colspan="2">
	<img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-AjoutCompte.html">Ajouter</a><br />
	<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-SuppressionCompte.html">Supprimer</a><br/>	
	<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://webftp.kelio.org">Webftp</a>
	</td>
	</tr>
    <tr >
      <td><img alt="Messagerie" src="image/icons/email.png" /></td>
      <td><a style=" cursor:pointer" onclick="Cache('JS_email');">Comptes messagerie</a></td>
    </tr>
	<tr id="JS_email" style="display: none">
	<td colspan="2">
	
	<img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutCompte.html">Ajouter compte</a><br />
    <img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutAlias.html">Ajouter alias</a><br />
	<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-Suppression.html">Supprimer compte</a><br/>
	<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://webmail.kelio.org">Webmail</a>
	</td>
	</tr>
    <tr>
      <td><img alt="Domaines" src="image/icons/house.png" /></td>
      <td><a style=" cursor:pointer" onclick="Cache('JS_domaine');">Noms de domaine externes</a></td>
    </tr>
	<tr id="JS_domaine" style="display: none">
	<td colspan="2">
	<img src="image/icons/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Domaine-AjoutDomaineExterne.html">Ajouter</a><br />
	<img src="image/icons/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Domaine-SuppressionDomaineExterne.html">Supprimer</a><br/>
	<!--<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Domaine-Stats.html">Statistiques web</a><sup>nouveau</sup>-->
	</td>
	</tr>
    <tr>
      <td><img alt="Compte" src="image/icons/16-member-profile.png" /></td>
      <td><a style=" cursor:pointer" onclick="Cache('JS_compte');">Votre compte</a></td>
    </tr>
	<tr id="JS_compte" style="display: none">
	<td colspan="2">
	<!--<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Compte-Profile.html">Profil</a><br />-->
	<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Compte-MotdePasse.html">Mot de passe</a>
	</td>
	</tr>
    <tr>
      <td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Assistance</strong></td>
    </tr>
    <tr>
      <td><img alt="Documentation" src="image/icons/book_open.png" /></td>
      <td><a href="http://doc.kelio.org">Documentation</a></td>
    </tr>
    <tr>
      <td><img alt="assistance en ligne" src="image/icons/user_comment.png" /></td>
      <td><a style=" cursor:pointer" onclick="Cache('JS_assistance');">Assistance en ligne</a></td>
    </tr>
	<tr id="JS_assistance" style="display: none">
	<td colspan="2">
	<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /><a href="http://www.kelio.asso.fr/contact.html">Formulaire</a>
		<br />
	<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /><a href="http://forum.kelio.asso.fr/viewforum.php?id=10">Forum</a>
		<br />
	<img src="image/icons/em-check.png" alt="info" style="padding-right: 5px;" /><a href="irc://irc.freenode.net/kelio">Dialogue en ligne (IRC)</a></td>
	</tr>
   <tr>
      <td><img alt="Maintenances ou travaux" src="image/icons/cog.png" /></td>
      <td><a href="http://suivi.kelio.asso.fr">Maintenances ou travaux</a></td>
    </tr>
    </tbody>
</table>

<table border="0" style="width: 70%; margin-left: 5px;">
  <tbody>
    <tr>
      <td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Informations générales</strong></td>
    </tr>
    <tr>
      <td><img src="image/icons/wrench.png" alt="technique" style="padding-right: 5px;" />Informations techniques</td>
    </tr>
    <tr>
      <td style="width: 45%">Version :</td>
      <td>Kelio Panel <strong>0.8.0</strong> (<a href="Page-Divers-Changelog.html">Changelog</a>)</td>
    </tr>
    <tr>
      <td>Finalisé le :</td>
      <td>04 octobre 2009</td>
    </tr>
    <tr>
      <td>Codé par :</td>
      <td>Mogui et Vinux</td>
    </tr>
    <tr>
      <td>Version PHP :</td>
      <td>5.2 (<a href="http://www.kelio.asso.fr/phpinfo.php">phpinfo</a>)</td>
    </tr>
    <tr>
     <td>Version MySQL :</td>
     <td>5.0</td>
    </tr>
    <tr>
      <td><img src="image/icons/group.png" alt="utilisateur" style="padding-right: 5px;" />Informations utilisateur</td>
    </tr>
		<tr>
      <td style="width: 45%">Offre : </td>
      <td><strong><?php echo $_SESSION['Offre']['Nom']; ?></strong></td>
    </tr>
    <tr>
      <td style="width: 45%">Domaine du client : </td>
      <td><a href="http://<?php echo $_SESSION['Utilisateur']; ?>.kelio.org">http://<?php echo $_SESSION['Utilisateur']; ?>.kelio.org</a></td>
    </tr>
    <tr>
      <td>Chemin absolu :</td>
      <td>/var/www/web/<?php echo $_SESSION['Utilisateur']; ?>/</td>
    </tr>
    <tr>
      <td>Serveur de Stockage :</td>
      <td><?php echo $SelectionQuota[0]["ServeurFichier"] ; ?> (<?php echo gethostbyname ($SelectionQuota[0]["ServeurFichier"]); ?>)</td>
    </tr>
    <tr>
      <td>Serveur MySql :</td>
      <td><?php echo $SelectionQuota[0]["ServeurMysql"] ; ?> (<?php echo gethostbyname ($SelectionQuota[0]["ServeurMysql"]); ?>)</td>
    </tr>
    <tr>
      <td>Espace disque :</td>
      <td><?php echo $Espace; ?> Mo<?php if ($_SESSION['Offre']['EspaceDisque'] != '-1'):?> sur <?php echo $_SESSION['Offre']['EspaceDisque']; ?>Mo autorisé<?php endif; ?></td>
    </tr>
    <tr>
      <td colspan="2" style="background-color: #eee;"><img src="image/icons/cube_green.png" alt="info" style="padding-right: 5px;" /><strong>Services complémentaires</strong></td>
    </tr>
    <tr>
      <td><img src="image/icons/application_home.png" alt="technique" style="padding-right: 5px;" /><a href="http://www.azote.org">Noms de domaine gratuits Azote.org</a></td>
    </tr>
  </tbody>
</table>
