<commit_before>/* SITE */
Author:         <NAME>
Contact:        laukstein.com/contact
Last update:    2011/03/08
Doctype:        HTML5 with CSS3
Tools:          JSON, jQuery 1.5.1, PHP 5.3, MySQL 5, Apache 2
Ascii QR Code:  
                ▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄   ▄▄▄▄▄  ▄▄▄▄ ▄  ▄▄▄▄ ▄  ▄▄   ▄▄▄▄▄▄▄
                █ ▄▄▄ █ ▀  ▄█▄▄ ▀▀▀█▄▀▄ ▀▀▄█▄ ▀▄▄ ▀▄  ▀▄▄▄▀█  █ ▄▄▄ █
                █ ███ █ ▄█ ██▄ ▄█  ▄█   █▄█▄▄▀▄█▄▄█ ▄▄█▀  █ ▀ █ ███ █
                █▄▄▄▄▄█ █▀▄▀▄ ▄ ▄▀█▀█ ▄ █ ▄ █▀█ ▄▀█▀▄ █▀█ █ ▄ █▄▄▄▄▄█
                ▄▄▄  ▄▄ █ ▀▀▀█▄ ▄ ▀▄▄█▄▄█▄▄▄█▀▀ █▄▄▄█▀▀ ▄█▀▄ ▄▄▄▄  ▄▄
                 ▄ █ ▀▄▄█ █▄▀█▄ ▄▄▄█▀█ ▀▄██ ██  ▀▄ ▄▄█ ▄▄▄ ▀▄▄ ▄▄██ █
                ▄ ▀ █ ▄▄█▄ ▄▄▄▄▄ ▄▄▀▀▄█ ▄█ ▄▄ █▄█ ▄████ ▄▄▄▄▀  ▀▄  ▄ 
                ▄█▀▄ ▄▄▄  █▀▀ ▀▄ ██▄▄ ▀    ▄█▀▄  ▄  ▀▄ ██▄ ▄   ██▀▀ ▄
                ▀█▄▄▀█▄▀▄▀██  ▀▄██▄ ▄ ▀▀▄█  ▄▀█▄█▄▄▄██▀▄█▄▄▄▀▄▄▄█▀ ▀ 
                █▄▄  ▀▄ ▀▀█▄ ▄▄█▀▀▄ ▄▄▄▄▄ ▄▀█▄  ▀█ ▄▄▀  ▀█▄▀▄▄ ▄▄▀▄ █
                 █▀█▄ ▄▀▄ ▀▄▀▄▄▀▀██  ▄▄█▀▀ █▄  ▄███▄█▄▄▀▄▄▄▀▀  ▀▄▄  ▄
                  ▄▄█▄▄▄█▄▀█ ▄█ ▄ ▀  ▄██▀▄█▀█▀▄██▄ █▄█ ▄▀▄   ▄ ██▄  ▄
                ▄▀ ███▄█▄▀█▄██▄▀▄ ▀███▄█▄█▄██▀▀ ███▄██▄ ███▄▄▄▄▄█   ▄
                ▄▀█▄█ ▄ ██ ▄██▄ ▄▄▄█▀█▄ █ ▄ ██ █ █ ▄▄█ █ █ ▀█ ▄ █▄▄▀█
                ▄▄▀▄█▄▄▄█ ███▄▄▄  ▄█▀▄▄ █▄▄▄█ ▄██▄▄██▄▀ ▄▄▄ █▄▄▄█▀ ▀▄
                █▄▄▄█ ▄██▄███ ▀█▄▄▄ ▄ ▀▄ ▄█▄▄█▄ ▀▀▄▄▄▀▄▄▄▄ ▄  ▄▄▄▄▀▀▄
                ▀ ▄ ▀▀▄█▀▄▄█  ▀▄▄█▄ ▄ ▀▄▄▀██▄   █ ▄▄█ ▄ █ ▄██▄▄▄▄▄ ▄ 
                 ▄▀▀█▄▄ ███▄ ▄▄█▀▀▄ ▄▄▄██▀█▄ █ ▀▄▀ ▄▄█ ▀▄▀  █ ▄█▄▀ ▀█
                ▄ ▀▀ ▄▄▀▀▄  █▄▄▀▀ ▄  ▄▄▄▄█▄▀▄██▄█▄▄▄█ ▄▄█▄▄█▀█▄▄ █ █▄
                █ ▀ ▀▀▄█ ▀ ▄▀▄█▀▄ ▀ ▄▄█ █ █▄ ▄ ▀▄█▄█ ▀ ▄▄▄  ▄ █▄▄▄▄ ▄
                █  ▄▄▄▄▄█ █▀██▄ █ ▀▄▄█▄▀▀▄▄▄▄▀▀ █▀▄▄█   █▀▄█▀ █▄ ▄ ▄▄
                ▄█▀███▄▄  █▄▀█▄ ▄  █▀█▄█▀▄██▀█  ▄█ ▄▄▀  ▄█ ▀▀ ▄▄▄ █ ▄
                 ▀▀▄  ▄ ▀█ ▀ ██  ▀█▀▀▄▄▄█▄▄█▄▄▄██▄█▀█▀▄▄█▄▄██▄█▄█▀ ▄█
                ▄▄▄▄▄▄▄ ▀  ▄▀▀▀█▄▄█▄▄▀▀▄█ ▄ █  ▄▄▀▄▄██ ▄▄▄  █ ▄ █▄▄▄█
                █ ▄▄▄ █ ▀▄ █ ▄▀█▄█▄ ▄ ▀▄█▄▄▄██▀▀█ ▀▄██▄▀█ ▀▀█▄▄▄█▄ ▄▄
                █ ███ █ ▄▄▀▀   █▀█▄ ▄▄▄▄█   ▄▀ ██▀ ▄▀  ██▀  █ █▄██▄  
                █▄▄▄▄▄█ █ ▀▄▀▀▀▀▀▀█  ▄█▀█▄▄▄█▀▄▄█▄▄▀█▀▄▄█▄▄▀▀█ ▄▄█  ▄

/* THANKS */
Names & URL:    <NAME>, www.asual.com/jquery/address/ & jQuery Team, jquery.com<commit_msg>Highly improved cache and Last update date. Removed Ascii QR Code.<commit_after><?php
header('Content-Type:text/plain');
class datemod{
    public $cache;
    public $maxmod;
    function date($dir='.',$exclude=array('error_log.txt','.git','cgi-bin','.','..')){
        $exclude=array_flip($exclude);
        if(!is_dir($dir)){return;}
        $dh=opendir($dir);
        if(!$dh){return;}
        $stack=array($dh);
        $level=0;
        while(count($stack)){
            if(false!==($file=readdir($stack[0]))){
                if(!isset($exclude[$file])){
                    //print str_repeat('  ',$level);
                    if(is_dir("$dir/$file")){
                        $dh=opendir("$file/$dir");
                        if($dh){
                            $d=$file;
                            array_unshift($stack,$dh);
                            ++$level;
                        }
                    }else{
                        if(isset($d)&&$level>0){
                            $mod=date('Y/m/d H:i:s',filemtime("$d/$file"));
                        }else{
                            $mod=date('Y/m/d H:i:s',filemtime($file));
                        }
                        $array[]=$mod;
                    }
                }
            }else{
                closedir(array_shift($stack));
                --$level;
            }
        }
        //sort($array);print_r($array);
        $fmod=max($array);
        include('content/connect.php');
        $tablemod=mysql_query("SELECT DATE_FORMAT(MAX(pubdate),'%Y/%m/%d %H:%i:%s') AS pubdate FROM $dbtable");
        while($row=@mysql_fetch_array($tablemod,MYSQL_ASSOC)){
            $rowmod=$row['pubdate'];
            $this->maxmod=max($fmod,$rowmod)."\r\n";
            $this->cache=date('D, d M Y H:i:s T',strtotime($this->maxmod));
        }
    }
}
$datemod=new datemod();
$datemod->date();
$cache=$datemod->cache;
$maxmod=$datemod->maxmod;
# HTTP header caching
function cache($gmtime){
    if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])||isset($_SERVER['HTTP_IF_NONE_MATCH'])){
        if($_SERVER['HTTP_IF_MODIFIED_SINCE']==$gmtime){
            header('Status:304 Not Modified',true,304);
            exit();
        }
    }
    header("Last-Modified:$gmtime");
}
cache($cache);
?>
/* SITE */
Author:         <NAME>
Contact:        laukstein.com/contact
Last update:    <?php echo$maxmod;?>
Doctype:        HTML5 with CSS3
Tools:          JSON, jQuery 1.5.1, PHP 5.3, MySQL 5, Apache 2

/* THANKS */
Names & URL:    <NAME>, www.asual.com/jquery/address/ & jQuery Team, jquery.com
{'fraction_non_alphanumeric': 0.33409801876955164, 'fraction_numerical': 0.0072992700729927005, 'mean_word_length': 1.6207650273224044, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6554646', 'n_tokens_mistral': 2385, 'n_tokens_neox': 2902, 'n_words': 438}