Location: PHPKode > projects > Free Blog Creator > freeblog/junction2.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){

$entryym=$line[8];
$y = substr($entryym, 0, 4);
$m = substr($entryym, -2, 2);
$filename[$entryym]=$y."/".$m."";

}
}
}
if($filename) {
arsort($filename);
foreach($filename as $key => $value){
$type2 .= "<a href=\"".$httphost."?id=$key\">$value</a><br />\n";
}
}
?>
<?=$type2?>
Return current item: Free Blog Creator