Advertisement
Guest User

memberlist ( page en question )

a guest
Dec 11th, 2010
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.80 KB | None | 0 0
  1. <?php session_start();
  2. include ('libs/config.php');
  3. include ('libs/fonctions.php');
  4. error_reporting(0);
  5. htmlspecialchars($input);
  6. htmlentities($input);
  7. addslashes($input);
  8. include "samp_query.php";
  9. ?>
  10.  
  11. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"><!-- Langue de la page sous la forme d'une abréviation fr = français -->
  12.     <head>
  13.  
  14.         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><!-- Définit la table de caractères à utiliser .  -->
  15.        
  16.         <script type="text/javascript" src="lightbox.js"></script>
  17.         <meta name="category" content="jeux, jeux vidéo, amusement"/><!-- Catégorie de la page pour les annuaires -->
  18.         <meta name="keywords" content="server grand thef auto san andreas gta sa multiplayer red angel roleplay" /><!-- Mots Clés que certains annuaires se serviront pour indexer votre site. Seuls les mots clés qui figurent dans le reste de la page seront réellement pris en compte par les robots. -->
  19.         <meta name="description" content="Communauté sur GTA SA mode [RP]" /><!-- Cette description est fréquemment reprise par les annuaires qui indexent votre site. Elle est également utilisée pour présenter un résumé de votre page dans les résultats des moteurs de recherche. -->
  20.         <meta name="robots" content="all" /><!-- Autorisation d'indexage pour les robots. index (cette page sera indexée), noindex (cette page ne sera pas prise en compte), follow (les liens seront suivis par les moteurs), nofollow (ne pas suivre les liens) La valeur "all" est équivalente à "Index,follow". La valeur "none" est équivalente à "noindex,nofollow"  -->
  21.  
  22.        
  23.         <title>Red Angel -- Accueil</title>
  24.  
  25.         <link rel="stylesheet" media="screen" type="text/css" title="Feuille de style CSS" href="style.css" /><!-- URL de la feuille de style -->
  26.         <link rel="shortcut icon" href="images/favicon.ico" /><!-- Icone dans la barre d'adresse du navigateur internet -->
  27.        
  28.     </head>
  29.     <body>
  30.         <div id="Cadre"><!-- Cadre qui sépare le l'arriere plan du fond su site  -->
  31.             <a href="index.php"><div id="Header"></div></a><!-- Bannière -->
  32.             <div id="BasHeader"></div><!-- BAS de la bannière -->
  33.  
  34.                 <div id="ColoneG">
  35.                                         <div class="TitreColoneG"><h1>Accueil</h1></div>
  36.                     <ul class="MenuG">
  37.                       <li><a href="index.php">Accueil</a></li>
  38.                       <li><a href="http://red-angel.lescigales.org">Le Forum</a></li>
  39.                       <li><a href="memberlist.php">Les joueurs en ligne</a></li>  
  40.                       <li><a href="administration.php">L'équipe de Red Angel</a></li>
  41.                     </ul>
  42.                     <div class="TitreColoneG"></div>                </div><!-- Fermeture du Colone -->
  43.                 <div id="ColoneD">
  44.                 <div class="TitreColoneD"><h1>Zone Membre</h1></div>
  45.                     <ul class="MenuD">
  46.                         <?php include ('inc/infocompte.php');?>
  47.                     </ul>
  48.                 <div class="TitreColoneD"><h1>Vous aider</h1></div>
  49.                     <ul class="MenuD">
  50.                    
  51.                         <li><a href="definitionsrp.php">Définitions RolePlay</a></li>
  52.                         <li><a href="factions.php">Les Factions</a></li>
  53.                         <li><a href="jobs.php">Les Jobs</a></li>
  54.  
  55.                     </ul>
  56.                                         <div class="TitreColoneD"><h1>Nous aider</h1></div>
  57.                     <ul class="MenuD">
  58.                         <li><a href="don.php">Don</a></li>
  59.                         <li><a href="http://red-angel.lescigales.org/viewforum.php?f=28&sid=6ea1817d43b5a150f4caf74d770cc03e">Rapport de bug</a></li>
  60.                        
  61.                     </ul>
  62.                     <div class="TitreColoneD"></div>                </div><
  63.  
  64.             <div id="FondCorps">
  65.                 <div id="Corps">
  66. </br></br></br></br>
  67.                     <div style="padding-bottom:150px;">
  68.                         <div style="background:url('images/titre_news.png');background-repeat:no-repeat;height:100px;width:640px;margin:auto;"><p class="Titrenews">Information du serveur</p></div>
  69.                         <div class="Debut"></div>
  70.                         <div class="Corps">
  71.                             <p>
  72. <?php
  73.  
  74.  
  75. $serverIP = "88.191.120.184";
  76. $serverPort = 7800;
  77.  
  78. try
  79. {
  80.         $rQuery = new QueryServer( $serverIP, $serverPort );
  81.  
  82.         $aInformation  = $rQuery->GetInfo( );
  83.         $aServerRules  = $rQuery->GetRules( );
  84.         $aBasicPlayer  = $rQuery->GetPlayers( );
  85.         $aTotalPlayers = $rQuery->GetDetailedPlayers( );
  86.  
  87.         $rQuery->Close( );
  88. }
  89. catch (QueryServerException $pError)
  90. {
  91.        echo 'Le serveur est actuelement off. Surement dû a une maintenance (in)volontaire.';
  92. }
  93.  
  94. if(isset($aInformation) && is_array($aInformation)){
  95. ?>
  96.     <b>Information générales</b>
  97.     <table width="400">
  98.             <tr>
  99.                     <td>Nom du serveur:</td>
  100.                     <td><?php echo htmlentities($aInformation['Hostname']); ?></td>
  101.             </tr>
  102.             <tr>
  103.                     <td>Gamemode</td>
  104.                     <td><?php echo htmlentities($aInformation['Gamemode']); ?></td>
  105.             </tr>
  106.             <tr>
  107.                     <td>Joueurs</td>
  108.                     <td><?php echo $aInformation['Players']; ?> / <?php echo $aInformation['MaxPlayers']; ?></td>
  109.             </tr>
  110.             <tr>
  111.                     <td>Ville</td>
  112.                     <td><?php echo htmlentities($aInformation['Map']); ?></td>
  113.             </tr>
  114.             <tr>
  115.                     <td>Météo</td>
  116.                     <td><?php echo $aServerRules['weather']; ?></td>
  117.             </tr>
  118.             <tr>
  119.                     <td>Version</td>
  120.                     <td><?php echo $aServerRules['version']; ?></td>
  121.             </tr>
  122.             <tr>
  123.                     <td>Mot de passe <SUB>( utilisé lors de mise a jour a tester )</SUB> </td>
  124.                     <td><?php echo $aInformation['Password'] ? 'Oui' : 'Non'; ?></td>
  125.             </tr>
  126.     </table>
  127.  
  128.     <br />
  129.     <b>Joueurs actuelement connectés</b><br/>
  130.     <?php
  131.     if(!is_array($aTotalPlayers) || count($aTotalPlayers) == 0){
  132.             echo '<br /><i>Aucun habitant est actuelement connecté</i>';
  133.     } else {
  134.     ?>
  135.        <table width="400">
  136.                <tr>
  137.                        <td><b>ID</b></td>
  138.                        <td><b>Prenom_Nom</b></td>
  139.                        <td><b>Niveau</b></td>
  140.                        <td><b>Ping</b></td>
  141.                </tr>
  142.        <?php
  143.        foreach($aTotalPlayers AS $id => $value){
  144.        ?>
  145.                <tr>
  146.                        <td><?php echo $value['PlayerID']; ?></td>
  147.                        <td><?php echo htmlentities($value['Nickname']); ?></td>
  148.                        <td><?php echo $value['Score']; ?></td>
  149.                        <td><?php echo $value['Ping']; ?></td>
  150.                </tr>
  151.        <?php
  152.        }
  153.    
  154.        echo '</table>';
  155.    }
  156. }
  157. ?><br/><br/>
  158.                             </p>
  159.                         </div> 
  160. <div class="Fin"></div>                    
  161.                     </div>
  162.                 </div><!-- Fermeture du Corps -->
  163.             <div id="Footer"><p><b>Copyright © 2010 [ <a style="color:black;" href="">Red Angel RolePlay</a> ] - Tous droits réservés </b></p></div><!-- Image du pied de page -->
  164.  
  165.             </div><!-- Fermeture du FondCorps -->
  166.         </div><!-- Fermeture du Cadre -->
  167.     <br/>
  168.     </body>
  169. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement