Commit cae56c86b88c7a567765fa7936a83f260980fb43
1 parent
8c8615f5
Remove browser-based configuration in preparation for browser-agnostic
UI. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3519 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
0 additions
and
111 deletions
config/browsers.inc deleted
| 1 | -<?php | ||
| 2 | -/** | ||
| 3 | - * $Id$ | ||
| 4 | - * | ||
| 5 | - * Sets up browser specific positioning co-ordinates. | ||
| 6 | - * | ||
| 7 | - * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com | ||
| 8 | - * | ||
| 9 | - * This program is free software; you can redistribute it and/or modify | ||
| 10 | - * it under the terms of the GNU General Public License as published by | ||
| 11 | - * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | - * (at your option) any later version. | ||
| 13 | - * | ||
| 14 | - * This program is distributed in the hope that it will be useful, | ||
| 15 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | - * GNU General Public License for more details. | ||
| 18 | - * | ||
| 19 | - * You should have received a copy of the GNU General Public License | ||
| 20 | - * along with this program; if not, write to the Free Software | ||
| 21 | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 22 | - */ | ||
| 23 | - | ||
| 24 | -// instantiate phpsniffer | ||
| 25 | -$default->phpSniff = new phpSniff($_SERVER["HTTP_USER_AGENT"]); | ||
| 26 | -$default->browser = $default->phpSniff->property("browser"); | ||
| 27 | -$default->version = $default->phpSniff->property("version"); | ||
| 28 | -$default->bNN4 = ($default->browser == "ns") && ($default->phpSniff->property("maj_ver") == "4"); | ||
| 29 | - | ||
| 30 | -if ($default->browser == "ie") { | ||
| 31 | - // internet explorer | ||
| 32 | - $default->upArrowLeft = $default->downArrowLeft = "745"; | ||
| 33 | - $default->upArrowTop = "122"; | ||
| 34 | - $default->downArrowTop = "544"; | ||
| 35 | - | ||
| 36 | - $default->textBoxLeft = "134"; | ||
| 37 | - $default->textBoxTop = "118"; | ||
| 38 | - $default->textBoxWidth = "608"; | ||
| 39 | - $default->textBoxHeight = "430"; | ||
| 40 | - | ||
| 41 | - $default->pageHeight = "535"; | ||
| 42 | - $default->contactAdminPosition = "500"; | ||
| 43 | -} elseif ( ($default->browser == "mz")) { | ||
| 44 | - // mozilla | ||
| 45 | - $default->upArrowLeft = $default->downArrowLeft = "742"; | ||
| 46 | - $default->upArrowTop = "107"; | ||
| 47 | - $default->downArrowTop = "530"; | ||
| 48 | - | ||
| 49 | - $default->textBoxLeft = "135"; | ||
| 50 | - $default->textBoxTop = "105"; | ||
| 51 | - $default->textBoxWidth = "603"; | ||
| 52 | - $default->textBoxHeight = "432"; | ||
| 53 | - | ||
| 54 | - $default->pageHeight = "540"; | ||
| 55 | - $default->contactAdminPosition = "490"; | ||
| 56 | -} elseif ( ($default->browser == "ns") && ($default->version == "6.2.3") ) { | ||
| 57 | - // netscape 6.2.3 | ||
| 58 | - $default->upArrowLeft = $default->downArrowLeft = "745"; | ||
| 59 | - $default->upArrowTop = "110"; | ||
| 60 | - $default->downArrowTop = "560"; | ||
| 61 | - | ||
| 62 | - $default->textBoxLeft = "132"; | ||
| 63 | - $default->textBoxTop = "104"; | ||
| 64 | - $default->textBoxWidth = "610"; | ||
| 65 | - $default->textBoxHeight = "460"; | ||
| 66 | - | ||
| 67 | - $default->pageHeight = "460"; | ||
| 68 | - $default->contactAdminPosition = "510"; | ||
| 69 | -} elseif ( ($default->browser == "ns") && ($default->version == "7.0") ) { | ||
| 70 | - // netscape 7.0 | ||
| 71 | - $default->upArrowLeft = $default->downArrowLeft = "745"; | ||
| 72 | - $default->upArrowTop = "107"; | ||
| 73 | - $default->downArrowTop = "538"; | ||
| 74 | - | ||
| 75 | - $default->textBoxLeft = "132"; | ||
| 76 | - $default->textBoxTop = "103"; | ||
| 77 | - $default->textBoxWidth = "608"; | ||
| 78 | - $default->textBoxHeight = "438"; | ||
| 79 | - | ||
| 80 | - $default->pageHeight = "540"; | ||
| 81 | - $default->contactAdminPosition = "490"; | ||
| 82 | -} elseif ($default->browser == "fb") { | ||
| 83 | - // mozilla firebird | ||
| 84 | - $default->upArrowLeft = $default->downArrowLeft = "745"; | ||
| 85 | - $default->upArrowTop = "107"; | ||
| 86 | - $default->downArrowTop = "538"; | ||
| 87 | - | ||
| 88 | - $default->textBoxLeft = "132"; | ||
| 89 | - $default->textBoxTop = "103"; | ||
| 90 | - $default->textBoxWidth = "608"; | ||
| 91 | - $default->textBoxHeight = "448"; | ||
| 92 | - | ||
| 93 | - $default->pageHeight = "550"; | ||
| 94 | - $default->contactAdminPosition = "480"; | ||
| 95 | -} elseif ($default->bNN4) { | ||
| 96 | - $default->pageHeight = "500"; | ||
| 97 | -} else { | ||
| 98 | - // default | ||
| 99 | - $default->upArrowLeft = $default->downArrowLeft = "745"; | ||
| 100 | - $default->upArrowTop = "107"; | ||
| 101 | - $default->downArrowTop = "518"; | ||
| 102 | - | ||
| 103 | - $default->textBoxLeft = "132"; | ||
| 104 | - $default->textBoxTop = "103"; | ||
| 105 | - $default->textBoxWidth = "608"; | ||
| 106 | - $default->textBoxHeight = "427"; | ||
| 107 | - | ||
| 108 | - $default->pageHeight = $default->textBoxTop + $default->textBoxHeight + 10; | ||
| 109 | - $default->contactAdminPosition = $default->pageHeight; | ||
| 110 | -} | ||
| 111 | -?> | ||
| 112 | \ No newline at end of file | 0 | \ No newline at end of file |