Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>

This commit is contained in:
Gregory PLANCHAT 2011-06-28 13:02:55 +02:00
commit 3fd8832b45
138 changed files with 2597 additions and 1253 deletions

View file

@ -222,7 +222,7 @@ if ($user['ally_id'] == 0) { // Sin alianza
if (mysql_num_rows($search) != 0) {
$template = gettemplate('alliance_searchresult_row');
while ($s = mysql_fetch_array($search)) {
while ($s = $search->fetch(PDO::FETCH_BOTH)) {
$entry = array();
$entry['ally_tag'] = "[<a href=\"alliance.php?mode=apply&allyid={$s['id']}\">{$s['ally_tag']}</a>]";
$entry['ally_name'] = $s['ally_name'];
@ -428,7 +428,7 @@ elseif ($user['ally_id'] != 0 && $user['ally_request'] == 0) { // Con alianza
// Como es costumbre. un row template
$template = gettemplate('alliance_memberslist_row');
$page_list = '';
while ($u = mysql_fetch_array($listuser)) {
while ($u = $listuser->fetch(PDO::FETCH_BOTH)) {
$UserPoints = doquery("SELECT * FROM {{table}} WHERE `stat_type` = '1' AND `stat_code` = '1' AND `id_owner` = '" . $u['id'] . "';", 'statpoints', true);
$i++;
@ -506,7 +506,7 @@ elseif ($user['ally_id'] != 0 && $user['ally_request'] == 0) { // Con alianza
}
// looooooop
$list = '';
while ($u = mysql_fetch_array($sq)) {
while ($u = $sq->fetch(PDO::FETCH_BOTH)) {
doquery("INSERT INTO {{table}} SET
`message_owner`='{$u['id']}',
`message_sender`='{$user['id']}' ,
@ -802,7 +802,7 @@ elseif ($user['ally_id'] != 0 && $user['ally_request'] == 0) { // Con alianza
} else {
$selection=doquery("SELECT * FROM {{table}} where ally_id='".$user['ally_id']."'",'users');
$select='';
while($data=mysql_fetch_array($selection)){
while ($data = $selection->fetch(PDO::FETCH_BOTH)){
$select.='<OPTION VALUE="'.$data['id'].'">'.$data['username'];
}
$page .= '<br><form method="post" action="alliance.php?mode=admin&edit=give"><table width="600" border="0" cellpadding="0" cellspacing="1" ALIGN="center">';
@ -879,7 +879,7 @@ while($data=mysql_fetch_array($selection)){
$page_list = '';
$lang['memberzahl'] = mysql_num_rows($listuser);
while ($u = mysql_fetch_array($listuser)) {
while ($u = $listuser->fetch(PDO::FETCH_BOTH)) {
$UserPoints = doquery("SELECT * FROM {{table}} WHERE `stat_type` = '1' AND `stat_code` = '1' AND `id_owner` = '" . $u['id'] . "';", 'statpoints', true);
$i++;
$u['i'] = $i;
@ -1017,7 +1017,7 @@ while($data=mysql_fetch_array($selection)){
$i = 0;
$parse = $lang;
$query = doquery("SELECT id,username,ally_request_text,ally_register_time FROM {{table}} WHERE ally_request='{$ally['id']}'", 'users');
while ($r = mysql_fetch_array($query)) {
while ($r = $query->fetch(PDO::FETCH_BOTH)) {
// recolectamos los datos del que se eligio.
if (isset($show) && $r['id'] == $show) {
$s['username'] = $r['username'];