From 6429a6080db982bcb37421d9735e25cfec25acec Mon Sep 17 00:00:00 2001 From: jimmacfx Date: Fri, 25 Nov 2005 22:44:18 +0000 Subject: git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@7 4fa712ea-3c06-0410-9261-c11b4c06c003 --- www/inc/funkce.inc.php | 96 -------------------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 www/inc/funkce.inc.php (limited to 'www/inc/funkce.inc.php') diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php deleted file mode 100644 index 2a1e8cc..0000000 --- a/www/inc/funkce.inc.php +++ /dev/null @@ -1,96 +0,0 @@ -\n"; - echo "
\n"; - if ($snapshot > 1) { //previous - echo ""; - echo "< previous\n"; - } - echo " "; - if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) { //next - echo ""; - echo "next >\n"; - } - echo "
\n\n"; - } elseif ($image=="prev") { //previous thumbnail - if ($snapshot > 1) { //previous - echo "
"; - echo ""; - if (file_exists("$gallery_dir/$gallery/thumbs/img-$prev.png")) { - $Pthumb = "$gallery_dir/$gallery/thumbs/img-$prev.png"; - } else { - $Pthumb = "$gallery_dir/$gallery/thumbs/img-$prev.jpg"; - } - $v = getimagesize("$root/$Pthumb"); - echo "\"Previous\""; - echo "
Previous"; - echo "
\n"; - } - } else { //next thumbnail - if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) { - echo "
"; - echo ""; - if (file_exists("$gallery_dir/$gallery/thumbs/img-$next.png")) { - $Nthumb = "$gallery_dir/$gallery/thumbs/img-$next.png"; - } else { - $Nthumb = "$gallery_dir/$gallery/thumbs/img-$next.jpg"; - } - $v = getimagesize("$root/$Nthumb"); - echo "\"Next\""; - echo "
Next"; - echo "
\n"; - } - } - -} - -function check($file) { - global $gallery_dir, $page; - -# if (eregi("[^0-9a-z\_\-\ ]",$file) || !file_exists("$gallery_dir/$file")) { -# if (eregi("CVS",$file) || !file_exists("$gallery_dir/$file")) { - if (!file_exists("$gallery_dir/$file")) { - echo "funkce.inc.php/check(): Bad input"; - $page->footer(); - exit; - } -} - -function browserCheck() { - global $HTTP_USER_AGENT; - - if (eregi("(MSIE.[456789]).*Mac.*",$HTTP_USER_AGENT)) { - return("macie4+"); - } elseif (eregi("(MSIE.[678])",$HTTP_USER_AGENT)) { - return("ie6+"); - } elseif (eregi("(MSIE.[45])",$HTTP_USER_AGENT)) { - return("ie4+"); - } elseif (eregi("Opera",$HTTP_USER_AGENT)) { - return("opera"); - } elseif (eregi("(Mozilla.4)",$HTTP_USER_AGENT)) { - return("netscape4"); - } elseif (eregi("(Mozilla.[5-9])",$HTTP_USER_AGENT)) { - return("mozilla"); - } elseif (eregi("KMeleon",$HTTP_USER_AGENT)) { - return("mozilla"); - } else { - return("Netscape3"); - } -} - -?> -- cgit v1.2.3