sir i think my problem from mods
i have two mods don't support utf-8 or when they get info from myphpadmin they just put it and dont know if this utf-8 or not
like this mod name " attacklist.php " <--- this mod don't show username in utf-8 or text to understand it
<?php
require_once (dirname (__file__) .'/globals.php');
$users = $db->query ("SELECT u.`userid`, u.`username`, u.`level`, u.`location`, u.`hp`, u.`gang`, g.`gangname`, g.`gangPREF` FROM `users` u LEFT JOIN `gangs` g ON `gangID` = u.`gang` ");
echo '
<div class="generalinfo_txt">
<div><img src="images/info_left.jpg"alt=""/></div>
<div class="info_mid"><h2 style="padding-top:10px;">Attack List</h2></div>
<div><img src="images/info_right.jpg"alt=""/></div> </div>
<div class="generalinfo_simple"><br> <br><br>
<table width="100%" class="table">
<tr>
<th>Player</th><th>Status</th><th>Level</th><th>Gang</th><th>Options</th>
</tr>
';
while ($u = $db->fetch_row ($users) ) {
echo '
<tr>
<td>
';
echo ( $u['gang'] != 0 ) ? "[".$u['gangPREF']."] ".stripslashes(htmlentities($u['username'], ENT_QUOTES)) : "".stripslashes(htmlentities($u['username'], ENT_QUOTES));
echo '</td>
<td>
';
echo ( $u['hp'] <= 1 ) ? "<span style='font-color: red;'>Not Alive</span>" : "<span style='font-color: green;'>Alive</span>";
echo '</td>
<td>'.number_format($u['level']).'</td>
<td>
';
echo ( $u['gang'] != 0 ) ? "<a href='gangs.php?action=gang_view&gang_id=".$u['gang']."'>".stripslashes(htmlentities($u['gangname'], ENT_QUOTES))."</a>" : "<span>No Gang</span>";
echo '</td>
<td>
';
echo ( $u['hp'] <= 1 ) ? "<span style='font-color: #999; text-decoration: line-through;'>Attack</span>" : "<a href='attack.php?ID=".$u['userid']."'><span style='font-color: red;'>Attack</span></a>";
echo '</td>
</tr>
';
}
echo '
</table> </div><div><img src="images/generalinfo_btm.jpg"alt=""/></div><br></div></div></div></div></div>
';
$h->endpage();
?>
and this mod name " yourgang.php " <-- this mod don't send utf-8 mass mailer or text to understand it
<?php
include "globals.php";
if (!function_exists('array_diff_key')) {
function array_diff_key() {
$arrs = func_get_args();
$result = array_shift($arrs);
foreach ($arrs as $array) {
foreach ($result as $key => $v) {
if (array_key_exists($key, $array)) {
unset($result[$key]);
}
}
}
return $result;
}
}
if (!function_exists(array_fill_keys)) {
function array_fill_keys($keys, $value) {
return array_combine($keys,array_fill(0,count($keys),$value));
}
}
######################
# END OF HEADER CODE #
######################
/* --------------------------------------\
Make sure to retain this query: */
$gq=mysql_query("SELECT g.* FROM gangs g WHERE g.gangID={$ir['gang']}");
$gangdata=mysql_fetch_array($gq);
/* Make sure to retain the above query \
----------------------------------------*/
//error_reporting(E_ALL);
define('GANG_MODULE', true, true);
// gangID, gangNAME, gangDESC, gangPREF, gangSUFF, gangMONEY, gangCRYSTALS, gangRESPECT, gangPRESIDENT, gangVICEPRES, gangCAPACITY, gangCRIME, gangCHOURS, gangAMENT
include('./gangs/config.php');
$gvars = new GangVars();
$gvars->setPage('private');
include('./gangs/content.php');
$h->endpage();
my question how can make this mods show user name for player in text to understand it or like mod " cityusers.php " <-- this mode show player name great in my language
hope someone know about my problem