Ce serait alors peut-être une correction a apporter dans le fichier : admin/modules/users/
users.php ?
Voila la partie concerné du code dans le fichier "users.php", sauf erreur :
Code :
if($mybb->input['action'] == "ipaddresses")
{
$page->add_breadcrumb_item($lang->ip_addresses);
$page->output_header($lang->ip_addresses);
$sub_tabs['ipaddresses'] = array(
'title' => $lang->show_ip_addresses,
'link' => "index.php?module=user-users&action=ipaddresses&uid={$mybb->input['uid']}",
'description' => $lang->show_ip_addresses_desc
);
$plugins->run_hooks("admin_user_users_ipaddresses");
$page->output_nav_tabs($sub_tabs, 'ipaddresses');
$query = $db->simple_select("users", "uid, regip, username, lastip", "uid='{$mybb->input['uid']}'", array('limit' => 1));
$user = $db->fetch_array($query);
// Log admin action
log_admin_action($user['uid'], $user['username']);
$table = new Table;
$table->construct_header($lang->ip_address);
$table->construct_header($lang->controls, array('width' => 200, 'class' => "align_center"));
if(empty($user['lastip']))
{
$user['lastip'] = $lang->unknown;
$controls = '';
}
else
{
$user['lastip'] = my_inet_ntop($db->unescape_binary($user['lastip']));
$popup = new PopupMenu("user_last", $lang->options);
$popup->add_item($lang->show_users_regged_with_ip,
"index.php?module=user-users&action=search&results=1&conditions=".urlencode(my_serialize(array("regip" => $user['lastip']))));
$popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("postip" => $user['lastip']))));
$popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$user['lastip']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$user['lastip']}', null, true); return false;");
$popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$user['lastip']}");
$controls = $popup->fetch();
}
$table->construct_cell("<strong>{$lang->last_known_ip}:</strong> ".$user['lastip']);
$table->construct_cell($controls, array('class' => "align_center"));
$table->construct_row();
if(empty($user['regip']))
{
$user['regip'] = $lang->unknown;
$controls = '';
}
else
{
$user['regip'] = my_inet_ntop($db->unescape_binary($user['regip']));
$popup = new PopupMenu("user_reg", $lang->options);
$popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("regip" => $user['regip']))));
$popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("postip" => $user['regip']))));
$popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$user['regip']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$user['regip']}', null, true); return false;");
$popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$user['regip']}");
$controls = $popup->fetch();
}
$table->construct_cell("<strong>{$lang->registration_ip}:</strong> ".$user['regip']);
$table->construct_cell($controls, array('class' => "align_center"));
$table->construct_row();
$counter = 0;
$query = $db->simple_select("posts", "DISTINCT ipaddress", "uid='{$mybb->input['uid']}'");
while($ip = $db->fetch_array($query))
{
++$counter;
$ip['ipaddress'] = my_inet_ntop($db->unescape_binary($ip['ipaddress']));
$popup = new PopupMenu("id_{$counter}", $lang->options);
$popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("regip" => $ip['ipaddress']))));
$popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("postip" => $ip['ipaddress']))));
$popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$ip['ipaddress']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$ip['ipaddress']}', null, true); return false;");
$popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$ip['ipaddress']}");
$controls = $popup->fetch();
$table->construct_cell($ip['ipaddress']);
$table->construct_cell($controls, array('class' => "align_center"));
$table->construct_row();
}
$table->output($lang->ip_address_for." {$user['username']}");
$page->output_footer();
}
Sur la ligne des URL, je constate bien qu'il y a des
& au lieu des
& ...
Ce que j'ai du mal à comprendre, c'est pourquoi lors de la migration, le code de ce fichier n'ai pas été remplacé ...
Quelle sont les lignes qui selon toi devraient être corrigés ?
L'action de recherche d'IP depuis le Forum lui fonctionne bien, dans les messages des sujets "Adresse IP : Notée" (modération), c'est seulement depuis le PCA que ça ne marche pas !
Je me suis trompé de fichier module ?
users.php (Taille : 144.21 Ko / Téléchargements : 0)