0

Tops |
Erhalten: 7 Vergeben: 0 |
das is die datei die die letzte ergebnisse box anzeigt<style type="text/css">
<!--
.Stil1 {color: #FFFFFF}
-->
</style>
<?php
include 'pkinc/public/ergpost/get_games.dh.inc';
print ergpost_last_results('.',6,'/lmo/lmo.php?','<center><table border="0" width="100%"><tr><td><!--iconLiga--></td><td><!--iconTeamA--></td><td> <b><span class="Stil1"><!--goalsA-->:<!--goalsB--></span></td><td></b><!--iconTeamB--> <td><a href="<!--Berichtlink-->" target=_blank><img src="http://fifakings.de/lmo/img/liga/small/Bericht.png" border="0"></td> </a></center></td></tr></table>');
?>
das ist die get_games datei fals du doch diese meintest<?php
/*
0=>file
1=>spieltag
2=>spielid
3=>teamA
4=>teamB
5=>trainerA
6=>trainerB
7=>goalsA
8=>goalsB
9=>iconLiga
10=>iconBericht
*/
function ergpost_last_results($source,$count=0,$lmo='',$tem plate='',$bericht='/berichte.php?'){
$quelle = file($source.'/pkinc/public/ergpost/allgames.txt');
if ($lmo == ''){$lmo = $source.'/lmo/lmo.php?';}
elseif (substr($lmo,0,7) != "http://fifakings.de"){
$lmo = $source.$lmo;
}
if (strpos($lmo,'?')== FALSE) {
$lmo .= '?';
}
if($template==''){
$template ='<!--iconLiga--> - <!--iconTeamA--> - <!--iconTeamB--> <!--iconBericht--> <a href="<!--Berichtlink-->" title="<!--iconLiga-->-<!--Spieltag-->-<!--SpielID-->"><!--goalsA-->:<!--goalsB--></a><br>';
}
$erg = "";
$i=0;
while($el = array_pop($quelle) AND ($i<$count OR $count == 0)){
$temp = explode(';',trim($el));
//Filter folgt noch
$i++;
$replace_arr = array( '<!--Datei-->' => $temp[0],
'<!--Spieltag-->' => $temp[1],
'<!--SpielID-->' => $temp[2],
'<!--teamA-->' => htmlentities($temp[3]),
'<!--teamB-->' => htmlentities($temp[4]),
'<!--trainerA-->' => htmlentities($temp[5]),
'<!--trainerB-->' => htmlentities($temp[6]),
'<!--goalsA-->' => $temp[7],
'<!--goalsB-->' => $temp[8],
'<!--Berichtlink-->' => $source.$bericht.'&liga='.rawurlencode($temp[0]).'&st='.$temp[1].'&id='.$temp[2],
'<!--Spieltaglink-->' => $lmo.'file='.$temp[0].'&action=results&st='.$temp[1],
'<!--Tabelle nach Spieltag-->' => $lmo.'file='.$temp[0].'&action=table&st='.$temp[1],
'<!--Tabelle-->' => $lmo.'file='.$temp[0].'&action=table',
'<!--iconLiga-->' => '<img src="'.$source.'/lmo/img/liga/small/'.rawurlencode($temp[9]).'.png" title="'.htmlentities($temp[9]).' ('.htmlentities($temp[9]).')">',
'<!--iconBericht-->' => '<img src="'.$source.'/lmo/img/liga/small/'.rawurlencode($temp[10]).'Bericht.png" title="'.htmlentities($temp[10]).' ('.htmlentities($temp[10]).')">',
'<!--iconTeamA-->' => '<img src="'.$source.'/lmo/img/teams/small/'.rawurlencode($temp[3]).'.gif" title="'.htmlentities($temp[3]).' ('.htmlentities($temp[5]).')">',
'<!--iconTeamB-->' => '<img src="'.$source.'/lmo/img/teams/small/'.rawurlencode($temp[4]).'.gif" title="'.htmlentities($temp[4]).' ('.htmlentities($temp[6]).')">'
);
$erg .= str_replace(array_keys($replace_arr),array_values( $replace_arr),$template);
}
return $erg;
}
//echo ergpost_last_results('http://fifakings.de',5);
?>
EDIT: Habs jetzt selber geschafft das er die gleichen berichte ausgegeben werden.
Nächste frage
immer wenn ich ergebnis eintragen will öfnne ich ergpost dann kommt liga auswählen dort drück ich drauf (ich war eingeloggt) loggt er sich aus und es steht ich muss mich einloggen wenn ich dann einlogge dann gehts erst das nervt ein bisschen
Geändert von LucaToni9 (13.01.2010 um 20:23 Uhr)
FCB!!!
Lesezeichen