goddaniel
New Member
- Joined
- May 9, 2009
- Messages
- 86
- Reaction score
- 0
Hello all People. Thx for view my Problem :blink:
In the part of ONLINE PLAYERS need to fetch a table called Accounts $ flags.
I have tried many times with many codes and no success.
Do not let me go and get any table Accounts.
Here is my Players Online. I use MODERN ACC.
In the part of ONLINE PLAYERS need to fetch a table called Accounts $ flags.
I have tried many times with many codes and no success.
Do not let me go and get any table Accounts.
Here is my Players Online. I use MODERN ACC.
Code:
<?php
global $config;
echo'<div class="message"><div class="title">Players Online</div><div class="content"><center>
<table align="center" width="80% border="0" cellpadding="4" cellspacing="0" >
<tr align="center" >';
echo'</tr></table></center></div></div>';
require("system/application/config/create_character.php");
$GLOBALS['players'] = $players;
echo '<center><img src="http://otslist.eu/stats/21000"/></center><br>';
$ide = new IDE;
try { $ide->loadInjections("players_online"); } catch(Exception $e) { error($e->getMessage()); }
echo form_open("character/online", array('method'=>'POST'));
if(count($config['worlds']) > 1) {
echo "<b>World </b> <select name='world'>";
echo "<option value=''>All</optino>";
foreach($config['worlds'] as $key=>$value) {
echo "<option ".set_select('world', $key)." value='$key'>$value</option>";
}
echo "</select> ";
}
echo "<b>Ordenar por: </b> <select name='sort'>";
echo "<option value=''>None</option>";
echo "<option ".set_select('sort', 'level')." value='level'>Level</option>";
echo "<option ".set_select('sort', 'Vocation')." value='Vocation'>Profession</option>";
echo "<option ".set_select('sort', 'name')." value='name'>Name</option>";
echo "</select>";
echo " <input type='submit' value='Ordenar'>";
echo "</form>";
echo "</form>";
if(count($players) > 0) {
echo "<table width='100%'>";
echo "<tr><td><center><b>Name</b></center></td><td><center><b>Level</b></center></td><td><center><b>Vocation</b></center></td><td><center><b>World</b></center></td></tr>";
foreach($players as $row) {
if(in_array(strtolower($row['name']), $config['restricted_names'])) continue;
echo "<tr><td><center><a href=\"http://sdrakos.com/index.php/character/view/".$row['name']."\">".$row['name']."</a></center></td><td><center>".$row['level']."</center></td><td><center>".getVocationName($row['vocation'], $row['promotion'])."</center></td><td><center>".$config['worlds'][$row['world_id']]."</center></td></tr>";
}
echo "</table>";
}
else
alert("There is no players online.");