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

  $passeddata="";
  $stylebit="";
  $scriptbit="";
  $jduris="0";
  $ht='';
  $ftitle='';
  $defdur=30;
  $iwow=0;
  
  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=trim(str_replace('   ','++ ',str_replace('+',' ',urldecode($_GET['ftitle']))));
  }
  if (isset($_POST['ftitle'])) {
      $ftitle=trim(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']));
  }

  if (isset($_GET['iwow'])) {
      $iwow=str_replace('+',' ',urldecode($_GET['iwow']));
  }
  if (isset($_POST['iwow'])) {
      $iwow=str_replace('+',' ',urldecode($_POST['iwow']));
  }
  
  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=($defdur * $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 " . ($iwow + $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,12000); } ";
    $scriptbit=$jsis;

    return $stylebit;
  }
  
  echo "<html>
<head><meta charset=\"UTF-8\"/><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] . "</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='';
  var defdur=" . $defdur . ";
  var defdurt=eval(1000 * defdur);
  var bus=''; // 'x'
  var types = ['audio/x-m4r','audio/wav','audio/x-wav','audio/x-pn-realaudio','audio/x-mpegurl','audio/x-aiff','audio/mpeg','audio/mid',
      'audio/basic','audio/ogg','video/x-sgi-movie','video/x-msvideo','video/quicktime','audio/mp3','video/mp4','video/mpeg',
      'video/x-la-asf','video/ogg','video/webm','audio/mp4', 'image/jpeg', 'image/jpeg', 'image/png', 'image/gif', 'image/bmp', 'image/tif',
      'text/html', 'text/html', 'text/html', 'text/javascript', 'text/css', 'text/plain', 'text/xml', 'text/csv',
      'application/vnd.ms-word', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/x-php', 'application/pdf', 'IMAGE/pdf',
      'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.ms-powerpoint',
      'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'];
  var exts = ['.m4r','.wav','.wav','.ram','.m3u','.aiff','.mp3','.rmi',
      '.snd','.ogg','.movie','.avi','.mov','.mp3','.m4v','.mpeg',
      '.lsx','.ogv','.webm','.m4a', '.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tif',
      '.htm', '.html', '.htmls', '.js', '.css', '.txt', '.xml', '.csv',
      '.doc', '.docx', '.php', '.pdf', '.pdf',
      '.pptx', '.ppt',
      '.xls', '.xlsx'];
  
  " . $scriptbit  . " 
   
  function outwo(inchk) {
    if (document.getElementById('thewords').value.indexOf(',') != -1) { return ''; }
    for (var iut=0; iut<xexts.length; iut++) {
      if (inchk.toLowerCase().indexOf(xexts[iut]) != -1) {
        if (xtypes[iut].indexOf('pdf') != -1) {
          document.getElementById('nonimagemedia').innerHTML='<object data=\"' + xtypes[iut] + '\" type=\"application/pdf\"></object>';
          return 'application/';
        } else if (xtypes[iut].indexOf('image/') != -1) {
          document.getElementById('nonimagemedia').innerHTML='';
          return '';
        } else if (xtypes[iut].indexOf('video/') != -1) {
          document.getElementById('nonimagemedia').innerHTML='<video controls><source type=\"' + xtypes[iut] + '\" src=\"' + + '\"></source></video>';
          return 'video/';
        } else if (xtypes[iut].indexOf('audio/') != -1) {
          document.getElementById('nonimagemedia').innerHTML='<audio controls><source type=\"' + xtypes[iut] + '\" src=\"' + + '\"></source></audio>';
          return 'audio/';
        }
      }
    } 
    document.getElementById('nonimagemedia').innerHTML='';
    return '';
  }
 
  function pbarit(hwm) {
    for (var iuy=0; iuy<hwm; iuy++) {
      if (iuy == 0) {
        pbar=redsq;
      } else {
        pbar+=whitesq;
      }
    }
    jjal=hwm;
    return hwm;
  }
  
  function analyzetitle() {
    var upref='';
    if (document.getElementById('xbody').title != '') { // click
      var words=document.getElementById('xbody').title.split(' ');
      if (eval('' + words.length) >= 2 && lastclk != words[eval(-2 + words.length)] && words[eval(-2 + words.length)].trim() != '') {
        lastclk=words[eval(-2 + words.length)];
        if (lastclk.replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {  upref='//www.rjmprogramming.com.au/ITblog/?p='; }
        window.open(upref + words[eval(-2 + words.length)].replace('http:','').replace('https:','') + '#content', '_blank', 'top=15,left=15,height=500,width=500');
      }
    }
  }
  
  function titleanalyze() { 
    var upref='';
    var usuf='';
    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)] && words[eval(-1 + words.length)].trim() != '') {
        lastdclk=words[eval(-1 + words.length)];
        if (lastdclk.replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') == '') {  upref='//www.rjmprogramming.com.au/ITblog/?p='; usuf='#content'; }
        window.open(upref + words[eval(-1 + words.length)].replace('http:','').replace('https:','') + usuf, '_blank', 'top=15,left=15,height=500,width=500');
      }
    }
  }

  function firstsqit() {
    var idea=-4;
    if (ftitle != '') {
      var words=ftitle.trim().split(' ');
      if (eval('' + words.length) >= 4) {
      //alert(words[eval(-4 + words.length)] + ' in ' + ftitle);
        if (words[eval(idea + words.length)] == 'Tutorial') { idea++; }
        var alldur=eval('' + words[eval(idea + words.length)]);
        if (alldur > defdur) { moretowait=eval(-defdur + 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>' + bus + '<br>';
      //ftitle='';
    }
  }
  
  function sqit(inu) {
    var idea=-4;
    outwo(inu.replace('url(','').replace(')',''));
    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.trim().split(' ');
      if (eval('' + words.length) >= 4) {
        if (words[eval(idea + words.length)] == 'Tutorial') { idea++; }
        var alldur=eval('' + words[eval(idea + words.length)]);
        if (alldur > defdur) { moretowait=eval(-defdur + 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>' + bus + '<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.trim().split(' ');
      if (eval('' + words.length) >= 4) {
        if (words[eval(idea + words.length)] == 'Tutorial') { idea++; }
        var alldur=eval('' + words[eval(idea + words.length)]);
        if (alldur > defdur) { moretowait=eval(-defdur + 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>' + bus + '<br>';
       } 
    }
    //bus+='x';
    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(" . $defdur . " * 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 \" + eval(" . $iwow . " + 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,defdurt); } \";


    return stbit + '<scri' + 'pt text/javascript> '  + jsis + '  setTimeout(animateit,defdurt);  ' + '</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,defdurt); }  \" data-style=\"width:100%;height:100%;\">
<scri" . "pt text/javascript>
  hashit();
</scr" . "ipt>" . $ht . "
<div id=nonimagemedia></div>
</body>
</html>";
?>