'; foreach ($cats as $value) { $catname = str_replace('_', ' ', $value); echo ' ' . $catname . ''; if ($getcount) { $icons = array(); $getcount = opendir($catdir . '/' . $value); while (($icon = readdir($getcount)) !== false) { if (eregi(".jpg$|.jpeg$|.gif$|.png$|.bmp$", $icon)) { $icons[] = $value; } } $count = count($icons); if ($count == 1) { echo ' (' . $count . ' icon)'; } else { echo ' (' . $count . ' icons)'; } } echo ' '; } echo ' '; } // 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 ' Pages: ' . $backpage . ' '; $i = 1; while ($i <= $pagecount) { $pagespanstart = ((($i * $perpage) - $perpage) + 1); $pagespanend = ($i * $perpage); if ($i == $pagecount) { if ( $i == $page) { echo $i; } else { echo '' . $i . ''; } } else { if ($i == $page) { echo $i . ' ' . $divider . ' '; } else { echo '' . $i . ' ' . $divider . ' '; } } $i++; } echo ' ' . $nextpage . ' '; } // 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 '
Britney im Studio

Am Freitag war Britney wieder im Studio, wo sie sich drei Stunden lang aufhielt. Danach begab sie sich mit ihrem Bodyguard zum Essen ins Johnny Rockety in Encino.
22.9.10 20:38
 


bisher 0 Kommentar(e)     TrackBack-URL

Name:
Email:
Website:
E-Mail bei weiteren Kommentaren
Informationen speichern (Cookie)



 Smileys einfügen
Gratis bloggen bei
myblog.de