18,38d17
< function server_remote_addr() {
< $rma = $_SERVER['REMOTE_ADDR'];
< $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
< // you can add different browsers with the same way ..
< if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua))
< $rma = '000000'.$rma;
< elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua))
< $rma = '00000'.$rma;
< elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua))
< $rma = '0000'.$rma;
< elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua))
< $rma = '000'.$rma;
< elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua))
< $rma = '00'.$rma;
< elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua))
< $rma = '0'.$rma;
< else
< $rma = '000000000'.$rma;
< return str_replace('.','_',str_replace(":", "_", $rma));
< }
<
45,49d23
< if (isset($_GET['curl'])) {
< exec("curl \"" . "http://" . $_SERVER['SERVER_NAME'] . "" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~")))) . "" . str_replace("find_images_via_size.php","",explode("#",explode("?",$_SERVER['REQUEST_URI'])[0])[0]) . "find_images_via_size.php?rand=" . rand(0,198767543) . "&commandline=" . urlencode(str_replace("+"," ",urldecode($_GET['curl']))) . "\"");
< echo "
Find Images Via Size - RJM Programming - October, 2019Find Images Via Size
RJM Programming - October, 2019
Width x Height File
" . str_replace(" "," ",str_replace("\n","
", file_get_contents("find_images_via_size" . server_remote_addr() . ".txt"))) . "
";
< exit;
< }
57,60d30
< for ($ii=0; $ii<$argc; $ii++) {
< $argv[$ii]=trim($argv[$ii]);
< }
< valit('','');
143d112
< sett(ov);
201d169
< //alert('" . $exif . "?image=' + encodeURIComponent(toh(thisurl)));
329,367d296
< function selsett(os) {
< for (var i=0; i $scriptis=str_replace(" $aline = str_replace("\n","",readline("\n\n\nImage Dimensions Search \nRJM Programming, October, 2019\n\nEnter relative path [" . $p . "] "));
501c430
< if (strtolower(substr(substr(($argv[$i] . " "),1),0,1)) != " ") { $lasthw=strtolower(substr(substr(($argv[$i] . " "),1),0,1)); }
---
> $lasthw=strtolower(substr(substr(($argv[$i] . " "),1),0,1));
528,531d456
< if ($argv[1 + $i] != "") { // && isset($_GET['commandline'])) {
< $fs=strtolower($argv[1 + $i]);
< if (strpos(substr($fs,0,1), "d") !== false || strpos($fs, "-r") !== false) { $reverse=true; } else { $reverse=false; }
< }
533d457
< file_put_contents("ws.1",$argv[1 + $i]);
535,540c459
< if ($argv[1 + $i] != "") { // && isset($_GET['commandline'])) {
< $ws=strtolower($argv[1 + $i]);
< file_put_contents("ws.2b",$ws);
< if (strpos(substr($ws,0,1), "d") !== false || strpos($ws, "-r") !== false) { $reverse=true; } else { $reverse=false; }
< }
< } else if (strtolower($argv[$i]) == "-hs") {
---
> } else if (strtolower($argv[$i]) == "-fs") {
542,548c461
< if ($argv[1 + $i] != "") { // && isset($_GET['commandline'])) {
< $hs=strtolower($argv[1 + $i]);
< if (strpos(substr($hs,0,1), "d") !== false || strpos($hs, "-r") !== false) { $reverse=true; } else { $reverse=false; }
< }
< }
< } else if (strtolower(substr(substr(($argv[$i] . " "),1),0,1)) == " ") {
< $wo=$wo;
---
> }
558d470
< if (!isset($_GET['commandline']) && !isset($_GET['curl'])) {
561,564d472
< } else {
< $fs=strtolower($argv[$i]);
< if (strpos(substr($fs,0,1), "d") !== false) { $reverse=true; } else { $reverse=false; }
< }
566,567d473
< //file_put_contents("ws.2a",$argv[$i]);
< if (!isset($_GET['commandline']) && !isset($_GET['curl'])) {
570,574d475
< } else {
< $ws=strtolower($argv[$i]);
< //file_put_contents("ws.2",$ws);
< if (strpos(substr($ws,0,1), "d") !== false) { $reverse=true; } else { $reverse=false; }
< }
576d476
< if (!isset($_GET['commandline']) && !isset($_GET['curl'])) {
579,582d478
< } else {
< $hs=strtolower($argv[$i]);
< if (strpos(substr($hs,0,1), "d") !== false) { $reverse=true; } else { $reverse=false; }
< }
605a502
>
648,649c545,546
< $datais=" | | | | | |
";
< $formis.="";
---
> $datais=" | | | | | |
";
> $formis.="";
676d572
< $littlehuhs="";
712,713c608,609
< file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".ttt", $littlehuh);
< $lines=file(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".ttt");
---
> file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size.ttt", $littlehuh);
> $lines=file(dirname(__FILE__) . $filedelim . "find_images_via_size.ttt");
723c619
< file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".txt", $huh);
---
> file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size.txt", $huh);
725c621
< file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".txt", $huh);
---
> file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size.txt", $huh);
729,730c625,626
< //$cf="find " . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \; | sed '/\ precision\ [0-9]*\, /s//`/g' | grep ' image data' | sed 's/\(JFIF [^\`]*\)`\([0-9]*\)x\([0-9]*\)/\\2 x \\3/g' | sed 's/\(." . "[^\ ]*" . "\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' " . $sortbit . $lastsed . " > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err";
< //exec('cd ' . dirname(__FILE__) . '; ' . $cf . ''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err");
---
> //$cf="find " . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \; | sed '/\ precision\ [0-9]*\, /s//`/g' | grep ' image data' | sed 's/\(JFIF [^\`]*\)`\([0-9]*\)x\([0-9]*\)/\\2 x \\3/g' | sed 's/\(." . "[^\ ]*" . "\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' " . $sortbit . $lastsed . " > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err";
> //exec('cd ' . dirname(__FILE__) . '; ' . $cf . ''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err");
734,735c630,631
< if (file_exists(dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt")) {
< unlink(dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt");
---
> if (file_exists(dirname(__FILE__) . "/" . "find_images_via_size.ttt")) {
> unlink(dirname(__FILE__) . "/" . "find_images_via_size.ttt");
738c634
< $cf3='cat ' . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".txt";
---
> $cf3='cat ' . dirname(__FILE__) . "/" . "find_images_via_size.ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size.txt";
741c637
< $cf="find " . (str_replace("+"," ",urldecode($_GET['path']))) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec echo {}: \; -exec /usr/bin/rdjpgcom -verbose {} \; | egrep -i 'JPEG image|.jp' | tr \"\\n\" \" \" | sed 's/w\ [*]\ / x /g' | sed 's/h[\,]/,/g' | sed 's/image\ is\ /image data, /g' | grep ' image data' | sed 's/\(.[^\ ]*\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",urldecode($_GET['wo'])) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' | tee " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err";
---
> $cf="find " . (str_replace("+"," ",urldecode($_GET['path']))) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec echo {}: \; -exec /usr/bin/rdjpgcom -verbose {} \; | egrep -i 'JPEG image|.jp' | tr \"\\n\" \" \" | sed 's/w\ [*]\ / x /g' | sed 's/h[\,]/,/g' | sed 's/image\ is\ /image data, /g' | grep ' image data' | sed 's/\(.[^\ ]*\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",urldecode($_GET['wo'])) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' | tee " . dirname(__FILE__) . "/" . "find_images_via_size.ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size.txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err";
743c639
< $cf3='cat ' . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".txt";
---
> $cf3='cat ' . dirname(__FILE__) . "/" . "find_images_via_size.ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size.txt";
746c642
< $cf="find " . (str_replace("+"," ",urldecode($_GET['path']))) . " -name '" . str_replace("+"," ",urldecode($_GET['filespec'])) . "' -exec echo {}: \; -exec /usr/local/bin/rdjpgcom -verbose {} \; | egrep -i 'JPEG image|.jp' | tr \"\\n\" \" \" | sed 's/w\ [*]\ / x /g' | sed 's/h[\,]/,/g' | sed 's/image\ is\ /image data, /g' | grep ' image data' | sed 's/\(.[^\ ]*\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",urldecode($_GET['wo'])) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",urldecode($_GET['ho'])) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' | tee " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err";
---
> $cf="find " . (str_replace("+"," ",urldecode($_GET['path']))) . " -name '" . str_replace("+"," ",urldecode($_GET['filespec'])) . "' -exec echo {}: \; -exec /usr/local/bin/rdjpgcom -verbose {} \; | egrep -i 'JPEG image|.jp' | tr \"\\n\" \" \" | sed 's/w\ [*]\ / x /g' | sed 's/h[\,]/,/g' | sed 's/image\ is\ /image data, /g' | grep ' image data' | sed 's/\(.[^\ ]*\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",urldecode($_GET['wo'])) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",urldecode($_GET['ho'])) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' | tee " . dirname(__FILE__) . "/" . "find_images_via_size.ttt " . $sortbit . $lastsed . " > " . dirname(__FILE__) . "/" . "find_images_via_size.txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err";
748c644
< $cf2="find " . (str_replace("+"," ",urldecode($_GET['path']))) . " -name '" . str_replace("+"," ",urldecode($_GET['filespec'])) . "' -exec file {} \; " . $grepv . " | sed '/\ precision\ [0-9]*\, /s//`/g' | grep ' image data' | sed 's/\(JFIF [^\`]*\)`\([0-9]*\)x\([0-9]*\)/\\2 x \\3/g' | sed 's/\(.[^\ ]*\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",urldecode($_GET['wo'])) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",urldecode($_GET['ho'])) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' | tee -a " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt " . $sortbit . $lastsed . " >" . $appbit . " " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".txt 2>" . $appbit . " " . dirname(__FILE__) . "/" . "find_images_via_size.err";
---
> $cf2="find " . (str_replace("+"," ",urldecode($_GET['path']))) . " -name '" . str_replace("+"," ",urldecode($_GET['filespec'])) . "' -exec file {} \; " . $grepv . " | sed '/\ precision\ [0-9]*\, /s//`/g' | grep ' image data' | sed 's/\(JFIF [^\`]*\)`\([0-9]*\)x\([0-9]*\)/\\2 x \\3/g' | sed 's/\(.[^\ ]*\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",urldecode($_GET['wo'])) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",urldecode($_GET['ho'])) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' | tee -a " . dirname(__FILE__) . "/" . "find_images_via_size.ttt " . $sortbit . $lastsed . " >" . $appbit . " " . dirname(__FILE__) . "/" . "find_images_via_size.txt 2>" . $appbit . " " . dirname(__FILE__) . "/" . "find_images_via_size.err";
753,754c649,650
< exec('cd ' . dirname(__FILE__) . '; ' . $cf .''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/JFIF standard 1.01, aspect ratio, //g' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err");
< if (!file_exists(dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".ttt")) {
---
> exec('cd ' . dirname(__FILE__) . '; ' . $cf .''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/JFIF standard 1.01, aspect ratio, //g' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . "/" . "find_images_via_size.txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err");
> if (!file_exists(dirname(__FILE__) . "/" . "find_images_via_size.ttt")) {
760c656
< //passthru("cat find_images_via_size" . server_remote_addr() . ".txt");
---
> //passthru("cat find_images_via_size.txt");
762c658
< exec('cd ' . dirname(__FILE__) . '; ' . $cf2 .''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/JFIF standard 1.01, aspect ratio, //g' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . "/" . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err");
---
> exec('cd ' . dirname(__FILE__) . '; ' . $cf2 .''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/JFIF standard 1.01, aspect ratio, //g' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . "/" . "find_images_via_size.txt 2> " . dirname(__FILE__) . "/" . "find_images_via_size.err");
769c665
< echo file_get_contents("find_images_via_size" . server_remote_addr() . ".txt");
---
> echo file_get_contents("find_images_via_size.txt");
771c667
< echo explode("", $htmlis)[0] . str_replace("\t"," ","| Width | | Height (px) | | Image |
|---|
| ",str_replace("\n"," |
| |
") . "" . explode("", $htmlis)[1];
---
> echo explode("", $htmlis)[0] . str_replace("\t"," ","| Width | | Height (px) | | Image |
|---|
| ",str_replace("\n"," |
| |
") . "" . explode("", $htmlis)[1];
773c669
< // //echo file_get_contents("find_images_via_size" . server_remote_addr() . ".txt");
---
> // //echo file_get_contents("find_images_via_size.txt");
778a675,676
> //echo "there";
> //exit;
782,784d679
< //echo valit('path','') . $filedelim . valit('filespec','') . ' ' . "\$yes=(" . $width . " " . $wo . " " . $wv . " && " . $height . " " . $ho . " " . $hv . ");";
< //echo valit('path','') . $filedelim . valit('filespec','') . ' ' . "\$yes=(" . $width . " " . valit('wo','') . " " . valit('wv','') . " && " . $height . " " . valit('ho','') . " " . valit('hv','') . ");";
< //exit;
798c693
< if (strpos(valit('fsort',''), "-r") !== false || strpos(strtolower(substr(valit('fsort',' '),0,1)), "d") !== false) { $reverse=true; }
---
> if (strpos(valit('fsort',''), "-r") !== false) { $reverse=true; }
800,801c695
< //$littlehuh.=$filename."~~" . $width . ' x ' . $height . " " . "
" . $filename . "\n";
< $littlehuh.=$filename."~~" . $width . ' x ' . $height . " " . $filename . "\n"; //"
" . $filename . "\n";
---
> $littlehuh.=$filename."~~" . $width . ' x ' . $height . " " . "
" . $filename . "\n";
803c697
< if (strpos(valit('hsort',''), "-r") !== false || strpos(strtolower(substr(valit('hsort',' '),0,1)), "d") !== false) { $reverse=true; }
---
> if (strpos(valit('hsort',''), "-r") !== false) { $reverse=true; }
807c701
< if (strpos(valit('wsort',''), "-r") !== false || strpos(strtolower(substr(valit('wsort',' '),0,1)), "d") !== false) { $reverse=true; }
---
> if (strpos(valit('wsort',''), "-r") !== false) { $reverse=true; }
824,832c718,719
< if (isset($argc)) {
< file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".ttt", $littlehuh);
< } else {
< file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".ttt", $littlehuh);
< }
< $lines=file(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".ttt");
< if (file_exists(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".ttt")) {
< unlink(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".ttt");
< }
---
> file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size.ttt", $littlehuh);
> $lines=file(dirname(__FILE__) . $filedelim . "find_images_via_size.ttt");
842c729
< file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".txt", $huh);
---
> file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size.txt", $huh);
844c731
< file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size" . server_remote_addr() . ".txt", $huh);
---
> file_put_contents(dirname(__FILE__) . $filedelim . "find_images_via_size.txt", $huh);
848,849c735,736
< //$cf="find " . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \; | sed '/\ precision\ [0-9]*\, /s//`/g' | grep ' image data' | sed 's/\(JFIF [^\`]*\)`\([0-9]*\)x\([0-9]*\)/\\2 x \\3/g' | sed 's/\(." . "[^\ ]*" . "\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' " . $sortbit . $lastsed . " > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err";
< //exec('cd ' . dirname(__FILE__) . '; ' . $cf . ''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size" . server_remote_addr() . ".txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err");
---
> //$cf="find " . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \; | sed '/\ precision\ [0-9]*\, /s//`/g' | grep ' image data' | sed 's/\(JFIF [^\`]*\)`\([0-9]*\)x\([0-9]*\)/\\2 x \\3/g' | sed 's/\(." . "[^\ ]*" . "\): .* \([0-9]* x [0-9]*\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . valit('wv',str_replace("+"," ",$_GET['wv'])) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . valit('hv',str_replace("+"," ",$_GET['hv'])) . " {print}' " . $sortbit . $lastsed . " > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err";
> //exec('cd ' . dirname(__FILE__) . '; ' . $cf . ''); //find ' . (str_replace("+"," ",$_GET['path'])) . " -name '" . str_replace("+"," ",$_GET['filespec']) . "' -exec file {} \\; | grep ' image data' | sed 's/\\(." . explode(".",str_replace("+"," ",$_GET['filespec']))[1] . "\\): .* \\([0-9]* x [0-9]*\\).*/\\2 \\1/' | awk 'int($1) " . str_replace("+"," ",$_GET['wo']) . " " . str_replace("+"," ",$_GET['wv']) . " && int($3) " . str_replace("+"," ",$_GET['ho']) . " " . str_replace("+"," ",$_GET['hv']) . " {print}' | sed 's/\\(\\ \\)\\(\\.[^\\<]*\\)/\\ \\\\2\\<\\/a\\>/g' > " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.txt 2> " . dirname(__FILE__) . substr("\\",0,1) . "find_images_via_size.err");
852c739
< echo "Find Images Via Size - RJM Programming - October, 2019Find Images Via Size
RJM Programming - October, 2019
Width x Height File
" . str_replace(" "," ",str_replace("\n","
", file_get_contents("find_images_via_size" . server_remote_addr() . ".txt"))) . "
";
---
> echo "Find Images Via Size
RJM Programming - October, 2019
Width x Height File
" . str_replace(" "," ",str_replace("\n","
", file_get_contents("find_images_via_size.txt"))) . "
";
854c741
< echo "Find Images Via Size\n\nRJM Programming - October, 2019\n\n\nWidth x Height File\n\n" . file_get_contents("find_images_via_size" . server_remote_addr() . ".txt");
---
> echo "Find Images Via Size\n\nRJM Programming - October, 2019\n\n\nWidth x Height File\n\n" . file_get_contents("find_images_via_size.txt");