Location: PHPKode > projects > Free Blog Creator > freeblog/junction4.php
<?php
$Log=@file(dirname(__FILE__)."/log/basic.cgi");
$line=explode(",",$Log[0]);
$httphost=$line[0];
?>
<?php
$updir = dirname(__FILE__)."/log/trackback/";
$dir_file = opendir( $updir );
while (false !== ($file_name = readdir($dir_file))) {
if(is_file("$updir/$file_name") && $file_name != "." && $file_name != ".."){
$dirlist[]=$file_name;
}        
}
closedir( $dir_file );

for($i=sizeof($dirlist)-1;$i>=0;$i--){
$Log=@file(dirname(__FILE__)."/log/trackback/$dirlist[$i]");
for($i2=0;$i2<sizeof($Log);$i2++){
$line=explode("<>",$Log[$i2]);

if( $haba3 < 5 ){

$sid=$line[1];
$title=$line[5];

$dump = strlen($title);
if( $dump > 12 ){
$title = substr($title, 0, 12);
$title = substr($title , 0, strrpos($title , " "));
$title .="...";
}
$type4 .= "<a href=\"".$httphost."?sid=$sid#trackback\">$title</a><br />\n";
}

$haba3++;
}

}
?>
<?=$type4?>
Return current item: Free Blog Creator