<?php
// images_found.php
// RJM Programming
// February, 2026

  $passeddata="";
  $stylebit="";
  $scriptbit="";
  $jduris="0";
  $ht='';
  $ftitle='';
  
  if (isset($_GET['csv'])) {
    $passeddata=str_replace('+',' ',urldecode($_GET['csv']));
  }
  
  if (isset($_POST['csv'])) {
    $passeddata=str_replace('+',' ',urldecode($_POST['csv']));
  }

  if (isset($_GET['ftitle'])) {
      $ftitle=str_replace('   ','++ ',str_replace('+',' ',urldecode($_GET['ftitle'])));
  }
  if (isset($_POST['ftitle'])) {
      $ftitle=str_replace('   ','++ ',str_replace('+',' ',urldecode($_POST['ftitle'])));
  }


  if (isset($_GET['duration'])) {
      $jduris=str_replace('+',' ',urldecode($_GET['duration']));
  }
  if (isset($_POST['duration'])) {
      $jduris=str_replace('+',' ',urldecode($_POST['duration']));
  }
  
  function expanded($incsv) {
    global $stylebit, $scriptbit, $ht;
    
    $outcsv=$incsv;
    if ($incsv == '') { return $outcsv; } 
    $altanima=explode(',', $incsv);
    $jal='' . sizeof($altanima);
    if (isset($_GET['duration'])) {
      $duris=str_replace('+',' ',urldecode($_GET['duration']));
    }
    if (isset($_POST['duration'])) {
      $duris=str_replace('+',' ',urldecode($_POST['duration']));
    }
    if ($duris == '' || $duris == '0') { $duris=(8 * $jal); }
    
    $htbit='<img id=icursl style=object-fit:contain; src=' . $altanima[0] . '></img><div class="meter"><span style="width:95%;"><span class="progress"></span></span></div>';
    $htbit='<span id=tmeter></span><div class="meter" title="' . explode(' 0',explode(' 1',explode(' 2',explode(' 3',explode(' 4',explode(' 5',explode(' 6',explode(' 7',explode(' 8',explode(' 9',explode(' //',$ftitle)[0])[0])[0])[0])[0])[0])[0])[0])[0])[0])[0] . ' thread images ... click for blog, double click for web application"><span style="width:95%;"><span class="progress"></span></span></div>';
    $ht=$htbit;
    $stbit=" html, body {  height: 100%;  margin: 0; }  .meter { margin-top:0.95%; " . "
" . "    height: 5px; " . "
" . "    position: relative; " . "
" . "    background: #f3efe6; " . "
" . "    overflow: hidden; " . "
" . " } " . "
" . " " . "
" . " .meter span { " . "
" . "    display: block; " . "
" . "    height: 100%; " . "
" . " } " . "
" . " " . "
" . " .progress { " . "
" . "    background-color: #e4c465; " . "
" . "    animation: progressBar " . $duris . "s ease-in-out infinite; " . "
" . "    animation-fill-mode:both;  " . "
" . " } " . "
" . " " . "
" . " @keyframes progressBar { " . "
" . "  0% { width: 0; } " . "
" . "  100% { width: 100%; } " . "
" . "} ";

    $stylebit='<style> ' . $stbit . '  #xbody { background:URL(' . $altanima[0] . '); background-repeat:no-repeat; background-position:center;  background-size:contain; } </style>';

    $jsis=" var ial=1; " . "
" . " var alcont='" . $incsv . "'; " . "
" . " var alconta=alcont.split(','); " . "
" . " var jal=pbarit(" . $jal . '); ' . "
";
    $jsis.="
" . " function animateit() { if (moretowait > 0) { setTimeout(animateit, Math.round(eval(1000 * moretowait)));  moretowait=0; return ''; } if (ial < jal) {  if (document.getElementById('icursl')) { document.getElementById('icursl').src=alconta[ial]; }  document.getElementById('xbody').style.background=sqit('url(' . alconta[ial] . ')');  document.getElementById('xbody').style.backgroundRepeat='no-repeat';  document.getElementById('xbody').style.backgroundPosition='center';  document.getElementById('xbody').style.backgroundSize='contain';   } else { ial=0;  window.location.reload(); firstsqit(); if (document.getElementById('icursl')) { document.getElementById('icursl').src=alconta[ial]; } document.getElementById('xbody').style.background=sqit('url(' . alconta[ial] . ')');  document.getElementById('xbody').style.backgroundRepeat='no-repeat';  document.getElementById('xbody').style.backgroundPosition='center';  document.getElementById('xbody').style.backgroundSize='contain';   }  ial++;    setTimeout(animateit,8000); } ";
    $scriptbit=$jsis;

    return $stylebit;
  }
  
  echo "<html>
<head><meta charset=\"UTF-8\"/><title>" . $ftitle . "</title>" . expanded($passeddata) . "
<scri" . "pt text/javascript>
  var jaltanima=[], jjal=0, jduris=" . $jduris . ", ftitle='" . $ftitle . "', moretowait=0, pbar='';
  var redsq=String.fromCodePoint(0x1F7E5);
  var whitesq=String.fromCodePoint(0x2B1C);
  var lastclk='', lastdclk='';
  
  " . $scriptbit  . " 
  
  function pbarit(hwm) {
    for (var iuy=0; iuy<hwm; iuy++) {
      if (iuy == 0) {
        pbar=redsq;
      } else {
        pbar+=whitesq;
      }
    }
    jjal=hwm;
    return hwm;
  }
  
  function analyzetitle() {
    if (document.getElementById('xbody').title != '') { // click
      var words=document.getElementById('xbody').title.split(' ');
      if (eval('' + words.length) >= 2 && lastclk != words[eval(-2 + words.length)]) {
        lastclk=words[eval(-2 + words.length)];
        window.open(words[eval(-2 + words.length)] + '#content', '_blank', 'top=15,left=15,height=500,width=500');
      }
    }
  }
  
  function titleanalyze() { 
    if (document.getElementById('xbody').title != '') { // right click
      var words=document.getElementById('xbody').title.split(' ');
      if (eval('' + words.length) >= 2 && lastdclk != words[eval(-1 + words.length)]) {
        lastdclk=words[eval(-1 + words.length)];
        window.open(words[eval(-1 + words.length)], '_blank', 'top=15,left=15,height=500,width=500');
      }
    }
  }

  function firstsqit() {
    if (ftitle != '') {
      var words=ftitle.split(' ');
      if (eval('' + words.length) >= 3) {
        var alldur=eval('' + words[eval(-3 + words.length)]);
        if (alldur > 8) { moretowait=eval(-8 + alldur);  }
      }
      pbarit(jjal);
      document.body.title='' + ftitle;
      document.title= document.body.title.split(' //')[0].split(' 0')[0].split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0] + ' ' + pbar; 
      document.getElementById('tmeter').innerHTML='<font size=1>' + document.title + '</font><br>';
      //ftitle='';
    }
  }
  
  function sqit(inu) {
    if (window.parent) {
       if (typeof parent.titleit == 'function') { 
         document.body.title='' + parent.titleit(inu.split('(')[1].split(')')[0], ial, jal);  
      var words=document.getElementById('xbody').title.split(' ');
      if (eval('' + words.length) >= 3) {
        var alldur=eval('' + words[eval(-3 + words.length)]);
        if (alldur > 8) { moretowait=eval(-8 + alldur);  }
      }
         document.title= document.body.title.split(' //')[0].split(' 0')[0].split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0] + ' ' + pbar; 
         document.getElementById('tmeter').innerHTML='<font size=1>' + document.title + '</font><br>';
       } 
    }
    if (window.opener) {
       if (typeof window.opener.titleit == 'function') { 
         document.body.title='' + window.opener.titleit(inu.split('(')[1].split(')')[0], ial, jal); 
      var words=document.getElementById('xbody').title.split(' ');
      if (eval('' + words.length) >= 3) {
        var alldur=eval('' + words[eval(-3 + words.length)]);
        if (alldur > 8) { moretowait=eval(-8 + alldur);  }
      }
         document.title= document.body.title.split(' //')[0].split(' 0')[0].split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0] + ' ' + pbar; 
         document.getElementById('tmeter').innerHTML='<font size=1>' + document.title + '</font><br>';
       } 
    }
    pbar=pbar.replace(whitesq, redsq);
    return \"url('\" + inu.split('(')[1].split(')')[0] + \"')\"; // no-repeat contain
  }
  
  function jexpand(incsv) {
    var outcsv=incsv;

    if (incsv == '') { return outcsv; } 
    
    jaltanima=incsv.split(',');
    jjal=pbarit(jaltanima.length);
    if (('' + jduris) == '0' || ('' + jduris) == '') { jduris=eval(8 * jjal); }
    
    var htbit='<img id=icursl style=object-fit:contain; src=' + jaltanima[0] + '></img><div class=\"meter\"><span style=\"width:95%;\"><span class=\"progress\"></span></span></div>';
    htbit='<span id=tmeter></span><div class=\"meter\" title=\"' + ftitle.split(' //')[0].split(' 0')[0].split(' 1')[0].split(' 2')[0].split(' 3')[0].split(' 4')[0].split(' 5')[0].split(' 6')[0].split(' 7')[0].split(' 8')[0].split(' 9')[0] + ' thread images ... click for blog, double click for web application\"><span style=\"width:95%;\"><span class=\"progress\"></span></span></div>';

    var stbit=\"<style> html, body {  height: 100%;  margin: 0; } .meter { margin-top:0.95%; \" + String.fromCharCode(10) + \"    height: 5px; \" + String.fromCharCode(10) + \"    position: relative; \" + String.fromCharCode(10) + \"    background: #f3efe6; \" + String.fromCharCode(10) + \"    overflow: hidden; \" + String.fromCharCode(10) + \" } \" + String.fromCharCode(10) + \" \" + String.fromCharCode(10) + \" .meter span { \" + String.fromCharCode(10) + \"    display: block; \" + String.fromCharCode(10) + \"    height: 100%; \" + String.fromCharCode(10) + \" } \" + String.fromCharCode(10) + \" \" + String.fromCharCode(10) + \" .progress { \" + String.fromCharCode(10) + \"    background-color: #e4c465; \" + String.fromCharCode(10) + \"    animation: progressBar \" + jduris + \"s ease-in-out infinite; \" + String.fromCharCode(10) + \"    animation-fill-mode:both;  \" + String.fromCharCode(10) + \" } \" + String.fromCharCode(10) + \" \" + String.fromCharCode(10) + \" @keyframes progressBar { \" + String.fromCharCode(10) + \"  0% { width: 0; } \" + String.fromCharCode(10) + \"  100% { width: 100%; } \" + String.fromCharCode(10) + \"}  #xbody { background:URL('\" + jaltanima[0] + \"'); background-repeat:no-repeat; background-position:center; background-size:contain; } </style>\";

    var jsis=\" var ial=1; \" + String.fromCharCode(10) + \" var alcont='\" + incsv + \"'; \" + String.fromCharCode(10) + \" var alconta=alcont.split(','); \" + String.fromCharCode(10) + \" var jal=\" + jjal + '; ' + String.fromCharCode(10);
    jsis+=String.fromCharCode(10) + \" function animateit() { if (moretowait > 0) { setTimeout(animateit, Math.round(eval(1000 * moretowait)));  moretowait=0; return ''; }  if (ial < jal) {  if (document.getElementById('icursl')) { document.getElementById('icursl').src=alconta[ial]; }  document.getElementById('xbody').style.background=sqit('url(' + alconta[ial] + ')');  document.getElementById('xbody').style.backgroundRepeat='no-repeat';  document.getElementById('xbody').style.backgroundPosition='center';  document.getElementById('xbody').style.backgroundSize='contain';  } else { ial=0;  window.location.reload(); firstsqit(); if (document.getElementById('icursl')) { document.getElementById('icursl').src=alconta[ial]; } document.getElementById('xbody').style.background=sqit('url(' + alconta[ial] + ')');  document.getElementById('xbody').style.backgroundRepeat='no-repeat';  document.getElementById('xbody').style.backgroundPosition='center';  document.getElementById('xbody').style.backgroundSize='contain';  }  ial++;    setTimeout(animateit,8000); } \";


    return stbit + '<scri' + 'pt text/javascript> '  + jsis + '  setTimeout(animateit,8000);  ' + '</scri' + 'pt>' + String.fromCharCode(10) + htbit;
  }
  
  function hashit() {
    if (('' + location.hash).replace(/^undefined/g,'').replace(/^null/g,'').replace(/^#/g,'') != '') {
      document.getElementById('xbody').style.width='' + screen.width + 'px';
      document.getElementById('xbody').style.height='' + screen.height + 'px';
      document.write(jexpand(decodeURIComponent(('' + location.hash).replace(/^undefined/g,'').replace(/^null/g,'').replace(/^#/g,''))));
    }
  }
  
  document.oncontextmenu=titleanalyze;
  document.onclick=analyzetitle;
  document.ondblclick=titleanalyze;
  
</scr" . "ipt>
</head>
<body id=xbody title='' onclick=analyzetitle(); oncontextmenu=titleanalyze(); ondblclick=titleanalyze(); onload=\" firstsqit(); if (typeof animateit == 'function') { setTimeout(animateit,8000); }  \" data-style=\"width:100%;height:100%;\">
<scri" . "pt text/javascript>
  hashit();
</scr" . "ipt>" . $ht . "
</body>
</html>";
?>