$typeFile = 'rel="no"'; $ext = "ext-" . substr($this_file, strrpos($this_file, ".") + 1); if ($ext == 'ext-gif' || $ext == 'ext-jpg' || $ext == 'ext-jpeg' || $ext == 'ext-png') { $typeFile = 'rel="image"'; $link = str_replace("[link]", "{$directory}/" . urlencode($this_file), $return_link); $FolderSystemUL .= "<li class=\"pft-file " . strtolower($ext) . "\" " . $typeFile . " title=\"" . str_replace('../../', '', $directory) . "/" . $this_file . "\" rev=\"" . $F->kb('kb', false) . "\"><a href=\"javascript:void(0)\" ><span>" . htmlspecialchars($this_file) . "" . $F->kb('kb') . "</span></a></li>"; } else { $typeFile = 'rel="download"'; $link = str_replace("[link]", "{$directory}/" . urlencode($this_file), $return_link); $FolderSystemUL .= "<li class=\"pft-file " . strtolower($ext) . "\" " . $typeFile . " title=\"" . str_replace('../../', '', $directory) . "/" . $this_file . "\" rev=\"" . $F->kb('kb', false) . "\"><a href=\"javascript:void(0)\" ><span>" . htmlspecialchars($this_file) . "" . $F->kb('kb') . "</span></a></li>"; } } } } $FolderSystemUL .= "</ul>"; } return $FolderSystemUL; } // For PHP4 compatibility function php4_scandir($dir) { $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); return $files; } $allowed = $SKT['allowedExtentions']; echo FolderSystemUL('../../../_FileSystems/', "", $allowed);
echo $content->CustomProperty; ?> " class="text ui-corner-all" /> </label> <div class="CustomPropertyFolder" style="display:none;"> <?php $allowed = array(''); //echo $FileSystemsDirName; echo FolderSystemUL("../../_FileSystems/", "javascript:CustomPropertyFolder('[link]');", $allowed); ?> </div> <div class="CustomPropertyFiles" style="display:none;"> <?php $allowed2 = array('jpg', 'gif', 'png'); //echo $FileSystemsDirName; echo FolderSystemUL("../../_FileSystems/", "javascript:CustomPropertyFile('[link]');", $allowed2); ?> </div> </div> </div> </form> </div> <div class="clear"></div> <?php echo \SKT_ADMIN_AdminWraperClose; ?> <script type="text/javascript"> $(document).ready(function () { $(".FolderSystemUL").find("UL").hide(); $("#ZoneNewContent").append($('#ListZoneColector').html());