';
}
else if (!$state && $dir_ex) {
echo '"> ';
}
else {
echo $css.'" style="color:#'.($css?'fff':'999').'"> ';
}
echo $fname2.'';
}
function getDirlist($dirpath,$nStep)
{
global $pwd;
$arrPath = explode('/', $pwd );
if( $dir_handle = opendir($dirpath) )
{
while( false !== ($files = readdir($dir_handle)) )
{
$subDir = $dirpath.$files.'/';
if(is_dir($subDir) && !strstr('[.][..][images][data]',$files))
{
getPrintdir( $nStep, $subDir, $files, !strstr($pwd,$subDir) , getDirexists($subDir) );
if( $arrPath[$nStep+1] == $files ) {
getDirlist( $subDir, $nStep+1);
}
}
}
}
closedir( $dir_handle );
}
function getWidgetPreviewImg($path)
{
if (is_file($path.'.jpg')) return $path.'.jpg';
if (is_file($path.'.gif')) return $path.'.gif';
if (is_file($path.'.png')) return $path.'.png';
return false;
}
?>