<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Danja Vasiliev + k0a1a.net = Critical Engineering [
<?php
/* i don't want the counter anylonger
$filename = "hitcounter.txt";
$file = file($filename);
$file = array_unique($file);
$hits = count($file);
echo $hits;
$fd = fopen ($filename , "r");
$fstring = fread ($fd , filesize ($filename));
fclose($fd);
$fd = fopen ($filename , "w");
$fcounted = $fstring."\n".getenv("REMOTE_ADDR");
$fout= fwrite ($fd , $fcounted );
fclose($fd);
print " | ";
$last_modified = filemtime("index.php");
date_default_timezone_set("Europe/Berlin");
print date("dmY@His", $last_modified);
*/
?>
] </title>
<meta name="keywords" content="danja vasiliev critical engineering weise7 newstweek 120 days of buntu dataj netless meme">
<meta name="description" content="reflect and dissect">
<meta name="author" content="Danja Vasiliev">
<style type="text/css">
body {margin:0px; padding:0px; background-color:#111111; color:white;} img {width:100%; border:0px; display:block; vertical-align:bottom; position:relative;} iframe.meta {width:100%; height:100%; border:0px; position:absolute; top:0px;} .block {width:25%; float:left;} .box {position:relative; margin: 1% 0px 0px 1%;} div.meta {position:absolute; top:25%;width:95%; z-index:100; text-align:center;} input.meta {width:60%;font-size:125%;cursor:pointer} textarea.meta {width:60%;font-size:80%;cursor:pointer;} a {color:white; border:0px;} #src {font-family:fixed;font-size:50%;color:#444444;}</style><!-- jquery is hidding! --><script type="text/javascript" src="./jquery-1.4.2.min.js"></script><script type="text/javascript" src="./jquery.hoverIntent.minified.js"></script><script type="text/javascript">$(document).ready(function() { $(".dock").hoverIntent({over:add,interval:500,sensitivity:1,timeout:3000,out:del}); function add() { var path = $(this).attr("name"); var info = $(this).attr("title").split(" - "); $(this).append("<iframe src='" + path + "' frameborder='0' class='meta'><\/iframe><div class='meta'><input type='button' value='" + info[0] + "' onclick=location.href='" + path + "' class='meta'><textarea type='text' class='meta' spellcheck='false' onclick=location.href='" + path + "'>" + info[1] + "<\/textarea><\/div>");} function del() {$(this).find(".meta").remove();}});</script>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<?php
/*
- list all wanted directories in $list
- make array(array(dirname,title,date,info),array(dirname,title,date,info)) for all in $list
- sort by date, new first
*/
## we could be getting $dirlist by scanning all directories for 'meta' file
## but it would present us with a serious server lag
$dirlist = array('newstweek', 'dataj', '120buntu', 'mig', 'rebuntu', 'the-end-of-the-internet', 'netless', 'meme20', 'googlash', 'masterslave', 'recursor', 'DRMe', 'poweronoff', 'electrocute', 'redbox', 'mg2', 'supremedizm', 'koala.ru', 'danja');
$columns = 4;
## for each member of $dirlist read 'meta' file
## and parce it into $things = array(dir => array(title,date,info), ... )
## (add more data to 'meta' if wanted!)
## NOTE: added 'url' for koala.ru
foreach($dirlist as $dir) {
$meta = file("./$dir/meta");
foreach($meta as $m) {
$parts = explode(':',$m);
$thing['dir'] = $dir;
$thing[$parts[0]] = rtrim($parts[1]);
}
$things[] = $thing;
unset($thing);
}
?>
<div class='center'>
<?php
# '-1' is to compensate 0 in id's
foreach((range(0,$columns-1)) as $i) {
print "<div class='block'>";
foreach((range($i,count($things)-1,$columns)) as $item) {
$thing = $things[$item];
if (isset($thing['url'])) {
$addr = 'http://'.$thing['url'];
} else {
$addr = $thing['dir'];
}
?><div class='box'><div class='dock' name='<?php print $addr; ?>' title='<?php print $thing['title'].' - '.$thing['info'].' | '.$thing['date']; ?>'><a href='<?php print $addr; ?>'><img src='./<?php print $thing['dir']; ?>/meta.img' title='<?php print $thing['title'].' - '.$thing['info'].' | '.$thing['date']; ?>'></a>
</div></div><?php
}
print "</div>\n";
}
?>
</div>
<div id='src' alt='print source here'>
<?php
echo(htmlspecialchars(file_get_contents(basename($_SERVER['PHP_SELF']), FILE_USE_INCLUDE_PATH)));
?>
</div>
<a href='old' style='color:#777777;font-size:8px'>window in to the past</a>
</body>
</html>
window in to the past