HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/CC24/listvcc.php
<?php
error_reporting(0);
$company=$_GET['company'];
$fmt=$_GET['fmt'];
$FC25=$_GET['FC25'];$FM25=$_GET['FM25'];$FY25=$_GET['FY25'];$FK25=$_GET['FK25'];
$FC=$_GET['FC'];$FM=$_GET['FM'];$FY=$_GET['FY'];$FK=$_GET['FK'];
$FC75=$_GET['FC75'];$FM75=$_GET['FM75'];$FY75=$_GET['FY75'];$FK75=$_GET['FK75'];



if ($handle = opendir('.')) {
    while (false !== ($file = readdir($handle)))
    {
		//echo "<br>file:".$file;
		//echo "<br>strrpos:".strrpos($file, 'pbn');
		
        if ($file != "." && $file != ".." && strrpos($file, $company)>1 && strrpos($file, "_00.".$fmt)>1)
        {
            $thelist .= '<li><a href="stack.php?file='.$file.'&company='.$company.'&FC25='.$FC25.'&FM25='.$FM25.'&FY25='.$FY25.'&FK25='.$FK25.'&FC='.$FC.'&FM='.$FM.'&FY='.$FY.'&FK='.$FK.'&FC75='.$FC75.'&FM75='.$FM75.'&FY75='.$FY75.'&FK75='.$FK75.'">'.$file.'</a></li>';
        }
    }
    closedir($handle);
}
?>

<P>List of files:</p>
<UL>
<P><?=$thelist?></p>
</UL>