"; print $form; if(isset($_GET['what']) && !empty($_GET['what'])) { // show linked nr of differences print ""; foreach($data[$_GET['what']] as $time => $changes) { print ""; } print ""; $i=0; foreach($data[$_GET['what']] as $time => $changes) { if($i==0) print ""; else { if(preg_match("/facebook/",$urls[$_GET['what']])) { preg_match("/(.+)\//",$urls[$_GET['what']],$match); $stuff = "ls /www/files/wget/results/$oldtime/".escapeshellarg($match[0])."/*.orig"; exec($stuff,$out); $one = str_replace("?","%3F",str_replace(",","%2C",str_replace("#","%23",str_replace("/www/files/wget/","",$out[1])))); $stuff = "ls /www/files/wget/results/$time/".escapeshellarg($match[0])."/*.orig"; exec($stuff,$out); $two = str_replace("?","%3F",str_replace(",","%2C",str_replace("#","%23",str_replace("/www/files/wget/","",$out[1])))); } else { $stuffone = str_replace("?","%3F",str_replace(",","%2C",str_replace("#","%23",$urls[$_GET['what']]))); $stufftwo = str_replace("?","%3F",str_replace(",","%2C",str_replace("#","%23",$urls[$_GET['what']]))); $one = "results/$oldtime/".$stuffone; $two = "results/$time/".$stufftwo; } print ""; } $oldtime = $time; $i++; } print "
".preg_replace("/^(\d{2})/","\\1:",preg_replace("/.*_/","",$time))."
$changes$changes
\n"; // show barcode print "
\n"; print "
"; print "
"; print ""; print ""; // click and show both files } function parseST($time) { // parse stupid time preg_match("/(\d{2})(\d{2})(\d{2})_(\d{2})(\d{2})/",$time,$match); $utime = mktime($match[4],$match[5],0,$match[2],$match[3],$match[1]); return strftime("%d %b %y %H:%M",$utime); } // file:///Users/erik/Sites/wget/results/100818_1652/www.facebook.com/group.php%3Fgid=408153525623&v=wall&post_form_id=2fe4456ff25b4b619c05e4e413a023cc&init=quick&sid=search_preload.orig // http://localhost/~erik/wget/results/100818_1652/www.facebook.com/group.php%3Fgid=408153525623&v=wall&post_form_id=deaf63cda5fe28291db989ef2f017900&init=quick&sid=search_preload.orig ?>