Zitat Zitat von Rotciv917 Beitrag anzeigen
scheinbar musste "//" wegmachen und deine URL ergänzen in der get_games..

oder du hast eine .htaccess, die .txt dateien aussperrt??

probier mal die get_games anzupassen und den ganzen dateien, die da verwendet werden, chmod 777 zu geben..

EDIT: ich kanns bei mir leider nicht testen, weil ich nur einen freehoster habe, der bestimmte funktionen, die die get_games benötigt nicht unterstützt..
Dasd ist die get_games.dh.inc, eigentlich müsste diese richtig angepasst sein?!

Code:
<?php

/*
0=>file
1=>spieltag
2=>spielid
3=>teamA
4=>teamB
5=>trainerA
6=>trainerB
7=>goalsA
8=>goalsB
9=>Liganame
*/

function ergpost_last_results($source,$count=0,$lmo='',$template='',$bericht='../berichte.php?'){
    $quelle = file($source.'allgames.txt');
    if ($lmo == ''){$lmo = $source.'../lmo/lmo.php?';}
    elseif (substr($lmo,0,7) != "http://"){
        $lmo = $source.$lmo;
    }
    if (strpos($lmo,'?')== FALSE) {
        $lmo .= '?';
    }
    
    if($template==''){
        $template = '<!--iconTeamA--> - <!--iconTeamB--> <a href="<!--Berichtlink-->" title="<!--Liganame-->-<!--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],
                                '<!--Liganame-->' => htmlentities($temp[9]),
                                '<!--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',
                                '<!--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://fifa-zone.de/liga_test',5);


?>
Und das die navbox.lastresults.php

Code:
<?php  
if(!defined('pkFRONTEND') || pkFRONTEND!='public') 
    die('Direct access to this location is not permitted.'); 
$boxlinks=array(); 
if (is_file('http://fifa-zone.de/liga_test/pkinc/public/ergpost/get_games.dh.inc'))
    {
    include ('http://fifa-zone.de/liga_test/pkinc/public/ergpost/get_games.dh.inc');  
    if (function_exists('ergpost_last_results'))
        {
        $ergPost_lastResult=ergpost_last_results
            ( 
            'http://fifa-zone.de/liga_test', 
            '5', 
            '../lmo/lmo.php?', 
            '<center> 
                <img src="'.$source.'/<!--Liganame-->.jpg" /> 
                <!--iconTeamA--> 
                <a href="<!--Berichtlink-->" target="_blank"><font style="color: ffff00;"> 
                    <sup> 
                    <!--goalsA-->:<!--goalsB--> 
                    </sup> 
                </a> 
                <!--iconTeamB--> 
                <style>  
                    body {overflow: hidden;} 
                </style> 
            </center> 
            <br>' 
            ); 
        $boxlinks[]=$ergPost_lastResult; 
        }
    }
return $boxlinks; 
echo ergpost_last_results('http://fifa-zone.de/liga_test',5); 
?>
Ist meiner Meinung nach richtig angepasst, aber in der Box wird noch immer nichts dargestellt ..

Danke für die Hilfe & Mühe ..