Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Simples sistema de Rank e Ordenação a Partir de Ini Files
- Criado por DraKiNs
- www.ips-team.blogspot.com
- Bom Uso
- */
- $iLoopCurrent= -1;
- $sPlayersData = array();
- $sPasta = opendir("Contas");
- while(($sFileAtual = readdir($sPasta)) !== false)
- {
- if(($sFileAtual !=".") && ($sFileAtual !="..") && ($sFileAtual != "index.htm") && ($sFileAtual !="info"))
- {
- $iLoopCurrent++;
- $sFileParse= parse_ini_file("Contas/". $sFileAtual);
- $sFileAtual = substr($sFileAtual , 0,strlen($sFileAtual)-4);
- $sPlayersData[$iLoopCurrent] = array($sFileParse["Kills"] ,$sFileAtual ); //Tag KILLS
- }
- }
- array_multisort ( $sPlayersData, $sPlayersData);
- foreach ($sPlayersData as $sCurrentData)
- {
- echo "<b>Player</b>: $sCurrentData[1] | <b>Kills</b>: $sCurrentData[0] <br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement