Shannon's Profile Goodies

...

"). Upload this file. That's it! CUSTOMIZATION AND SUPPORT ------------------------------------------------ There are a few built in CSS styles to help you style your page. The menu '; } // get icons and sort if (in_array($_GET['cat'], $cats)) { $icons = array(); $geticons = opendir($catdir.'/'.$_GET['cat']); while (($icon = readdir($geticons)) !== false) { if (eregi(".jpg$|.jpeg$|.gif$|.png$|.bmp$", $icon)) { $icons[] = array("name" => $icon, "modified" => filemtime($catdir . '/' . $_GET['cat'] . '/' . $icon)); } } $count = count($icons); if ($count > 0) { function modcmp($a, $b) { return strcmp($a['modified'], $b['modified']); } usort($icons, 'modcmp'); if ($sort == 'first') { $icons = array_reverse($icons); } // show category name and total icon count $catname = str_replace('_', ' ', $_GET['cat']); echo '

' . $catname . ': ' . $count; if ($count == 1) { echo ' icon'; } else { echo ' icons'; } echo '

'; // configure pagination if ((!$perpage) || ($perpage < 1) || (!is_numeric($perpage))) { $perpage = 20; } $pagecalc = ($count / $perpage); $pagecount = ceil($pagecalc); $page = $_GET['page']; if (($page > $pagecount) || ($page == '0')) { $start = 0; } elseif (!$page) { $start = 0; $page = 1; } elseif (!is_numeric($page)) { $start = 0; $page = 1; } else { $start = (($page * $perpage) - $perpage); } $pagearray = array_slice($icons, $start, $perpage); // if there is more than one page, show the page menu if ($pagecount > 1) { if (($page <= $pagecount) && ($page > 1)) { $backpagecalc = ($page - 1); $backpage = '« ' . $divider; } if ($page < $pagecount) { $nextpagecalc = ($page + 1); $nextpage = $divider . ' »'; } echo ''; } // show the icons echo '

'; foreach ($pagearray as $value) { $iconsize = getimagesize($catdir . '/' . $_GET['cat'] . '/' . $value['name']); echo ' '; } } else { echo '

There are no icons in this category.'; } echo '

« back

'; } ?>

Powered by Icon Sort

Belly Banner 1 Belly Banner 2

facebook flickr lastfm tumblr twitter viddler vimeo yelp youtube goodreads