Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_MYBB', NULL);
- include('serveur_samp.php');
- include('inc/class.ini.php');
- require_once './global.php';
- require_once './inc/class.MyBBIntegrator.php';
- $MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);
- $data_users = $MyBBI->getUser();
- $lastvisit = $data_users['lastvisit'];
- $lastvisitday = date('d/m/Y', $lastvisit);
- $lastvisitdeure = date('h:i [A]', $lastvisit);
- $my_key = $MyBBI->mybb->user['logoutkey'];
- $login_status = $MyBBI->login($MyBBI->mybb->input['name'], $MyBBI->mybb->input['password']);
- include('header.php');
- $contents = ftp_nlist($conn_id, "/scriptfiles/LARP/Users");
- $count = count($contents);
- $count = ($count - 2);
- $max = 0;
- sort($contents);
- $x = $count;
- $y = 25;
- $page = $x / $y;
- $page = floor($page);
- if (fmod($x, $y) != 0)
- {
- $page = ($page + 1);
- }
- else
- {
- $page = ($page);
- }
- if (!isset($_GET['page']))
- {
- $x = 0;
- $max = 25;
- }
- else
- {
- if ($_GET['page'] <= $page)
- {
- if ($_GET['page'] == 0)
- {
- ?>
- <META HTTP-EQUIV="Refresh" CONTENT=60; URL="listeplayer.php?page=1">
- <?php
- }
- if ($_GET['page'] == 1)
- {
- $x = 0 ;
- $max = 25;
- }
- if ($_GET['page'] > 1)
- {
- $get_page = $_GET['page'];
- $x = 1 + (25 * $get_page);
- $max = 25 + (25 * $get_page);
- }
- }
- }
- ?>
- <div id="content">
- <div class="wrapper">
- <div class="navigation">
- <a href="index.php">Forums</a> > <a href="listplayer.php">Liste joueur</a>
- <br /><img src="images/night/nav_bit.gif" alt="" /><span class="active">Liste des joueurs</span>
- </div>
- <br />
- <table border="0" cellspacing="0" cellpadding="5" class="tborder">
- <tr>
- <td class="trow1" style="text-align: center;"><strong>Joueur</strong></td>
- <td class="trow1" style="text-align: center;"><strong>level</strong></td>
- <td class="trow1" style="text-align: center;"><strong>sexe</strong></td>
- <td class="trow1" style="text-align: center;"><strong>age</strong></td>
- <td class="trow1" style="text-align: center;"><strong>Telephone</strong></td>
- <td class="trow1" style="text-align: center;"><strong>banque</strong></td>
- <td class="trow1" style="text-align: center;"><strong>skin</strong></td>
- <td class="trow1" style="text-align: center;"><strong>Derniére Connection</strong></td>
- <td class="trow1" style="text-align: center;"><strong>Statuts</strong></td>
- </tr>
- <?php
- for ($x; $x < $max; $x++)
- {
- if ($contents[$x] != "/scriptfiles/LARP/Users/Aliases" and $contents[$x] != "/scriptfiles/LARP/Users/Bans")
- {
- $name = preg_replace('#/scriptfiles/LARP/Users/(.+).ini#isU', '$1', $contents[$x]);
- $dir_remote = '/scriptfiles/LARP/Users/'.$name.'.ini';
- $dir_local = 'data_users/'.$name.'.ini';
- $handle = fopen($dir_local, 'w');
- if (ftp_fget($conn_id, $handle, $dir_remote, FTP_ASCII, 0))
- {
- $ini_array = parse_ini_file($dir_local, true);
- $sex = $ini_array['Sex'];
- $lastlogged = $ini_array['LastLogged'];
- $statuts = $ini_array['Banned'];
- ?>
- <tr>
- <td style="text-align: center;"><?php echo $name; ?></td>
- <td style="text-align: center;"><?php echo $ini_array['Level']; ?></td>
- <td style="text-align: center;"><?php echo "<img src=\"images/". $ini_array['Sex'] .".gif\"/>". sex($sex) . ""; ?></td>
- <td style="text-align: center;"><?php echo $ini_array['Age']; ?> </td>
- <td style="text-align: center;"><?php echo $ini_array['PhoneNr']; ?></td>
- <td style="text-align: right;"><?php echo $ini_array['Bank']; ?> $$</td>
- <td style="text-align: center;"><?php echo $ini_array['Model']; ?></td>
- <td style="text-align: center;"><?php echo lastlogged($lastlogged); ?></td>
- <td style="text-align: center;"><?php echo statuts($statuts); ?></td>
- </tr>
- <?php
- }
- }
- }
- ?>
- </table>
- <div id="page" style="text-align: center;"> <<< [x] >>></div>
- </div>
- </div>
- <?php
- include('footer.php');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement