‘;
}
}

function getFileCount()
{
global $x;

$fi = new FilesystemIterator(‘./slides/imgs’, FilesystemIterator::SKIP_DOTS);

$x = iterator_count($fi);

}

function getFileNames()
{
global $filelist;

$iterator = new FilesystemIterator(‘./slides/imgs’);
$filelist = array();
foreach($iterator as $entry) {

$filelist[] = $entry->getFilename();

}

sort($filelist);

}

function buildMain()
{
global $filelist, $x;

echo ‘

‘;

echo ‘

‘;

echo ‘

‘;

for($a=1;$a<$x+1;$a++) { $b = $a-1; //echo $filelist[$b]; $filename = pathinfo($filelist[$b], PATHINFO_FILENAME); //echo $filename; echo '

‘;
}

echo ‘

‘;

echo ‘

‘;

}

function showInit()
{
global $filelist, $x;
for($a=1;$a<$x+1;$a++) { $b = $a-1; //echo $filelist[$b]; $filename = pathinfo($filelist[$b], PATHINFO_FILENAME); //echo $filename; } echo '‘;

}

function buildButtons()
{
echo ‘

‘;
}

function buildTimer($p)
{
echo ‘

‘;
}

getFileCount();
getFileNames();

buildMain();
showInit();
buildButtons();
buildTimer(7500);

?>