public function AddRow($ligne)
    {
        $ligne["USER"] = htmlspecialchars($ligne["USER"], ENT_QUOTES, 'utf-8');
        $ligne["EMPIRE2"] = addslashes(DataEngine::xml_fix51($ligne["EMPIRE"]));
        $ligne["EMPIRE"] = DataEngine::xml_fix51(htmlspecialchars($ligne["EMPIRE"], ENT_QUOTES, 'utf-8'));
        $ligne["INFOS"] = htmlspecialchars($ligne["INFOS"], ENT_QUOTES, 'utf-8');
        $ligne["NOTE"] = htmlspecialchars($ligne["NOTE"], ENT_QUOTES, 'utf-8');
        $Image = $this->lngtype[$ligne["TYPE"]];
        $posout = $ligne["TYPE"] == "1" ? "<br>" . $ligne["POSOUT"] . "-" . $ligne["COORDETOUT"] : "";
        $user = $ligne["USER"] == "" ? "-" : $ligne["USER"];
        $info = $ligne["INFOS"] == "" ? "-" : $ligne["INFOS"];
        $note = $ligne["NOTE"] == "" ? "-" : $ligne["NOTE"];
        $empire = '';
        if ($ligne["EMPIRE"] != "") {
            $empire .= "<br><a href='javascript:void(0);' {$this->bulle2} OnClick=\"Navigateur.InitSearch('";
            $empire .= $ligne["EMPIRE2"] . "',0); return false;\">{$ligne["EMPIRE"]}</a>";
        }
        $out = <<<EOF
\t\t<tr class="text_center spacing_header">
\t\t\t<td class="color_row0"><img width=48 height=48 src="{$Image}"></img></td>
\t\t\t<td class="color_row0">{$ligne["POSIN"]}-{$ligne["COORDET"]}{$posout}</td>
\t\t\t<td class="color_row0">
\t\t\t\t<a href='javascript:void(0);' {$this->bulle1} Onclick="Navigateur.InitSearch('{$ligne["USER"]}',1);">{$user}</a>
\t\t\t\t{$empire}
\t\t\t</td>
\t\t\t<td class="color_row0">{$info}</td>
\t\t\t<td class="color_row0 spacing_row">{$note}</td>
\t\t</tr>

EOF;
        $this->PushOutput($out);
    }
示例#2
0
function getxml_errors()
{
    global $_my_xml_error_handler;
    return '<phperror><![CDATA[' . DataEngine::xml_fix51($_my_xml_error_handler) . ']]></phperror>';
}
示例#3
0
			`EMPIRE` = \'' . sqlesc($empire_name) . '\'
			WHERE `USER` in (' . $listemembres . ')';
        DataEngine::sql($query);
        //        $carto->AddInfo($query);
        $carto->AddInfo('L\'empire ' . $empire_name . ' a été mis à jour');
        $xml['log'] = 'L\'empire ' . $empire_name . ' a été mis à jour';
        break;
    default:
        $xml['log'] = $lng['err_unknown'];
        $xml['logtype'] = 'raid';
}
$msg .= $carto->Infos();
$warn = $carto->Warns();
$err = $carto->Erreurs();
$msg = $msg != '' && $warn != '' ? $msg . '<br/>' . $warn : $warn != '' ? $warn : $msg;
$msg = $msg != '' && $err != '' ? $msg . '<br/>' . $err : $err != '' ? $err : $msg;
if ($msg) {
    $xml['content'] = '<![CDATA[' . DataEngine::xml_fix51($msg) . ']]>';
}
if ($xml['log']) {
    $xml['log'] = '<![CDATA[' . DataEngine::xml_fix51($xml['log']) . ']]>';
}
$out = "<eude>\n";
foreach ($xml as $key => $v) {
    if ($v != '') {
        $out .= '<' . $key . '>' . $v . '</' . $key . ">\n";
    }
}
$out .= getxml_errors();
$out .= '</eude>';
output::_DoOutput($out);