Location: PHPKode > projects > Free Blog Creator > freeblog/junction.php
<?php
$Log=@file(dirname(__FILE__)."/log/basic.cgi");
$line=explode(",",$Log[0]);
$httphost=$line[0];
?>
<?php
$updir = dirname(__FILE__)."/log/entry/";
$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/entry/$dirlist[$i]");
for($i2=0;$i2<sizeof($Log);$i2++){
$line=explode("<>",$Log[$i2]);
if($line[3]==2){

if( $haba < 10 ){

$sid=$line[0];
$name=$line[1];

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

$haba++;
}
}

if( $haba == 10 ){
break;
}
}
?>
<?=$type1?>
Return current item: Free Blog Creator