Update of /cvsroot/openfirst/base/config/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv31207
Modified Files:
browserid.php
Log Message:
Code syntax changes to bring into compliance with accepted openFIRST standards.
Index: browserid.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/functions/browserid.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** browserid.php 1 Oct 2003 00:16:21 -0000 1.1
--- browserid.php 3 Oct 2003 23:40:49 -0000 1.2
***************
*** 1,8 ****
<?php
/*
- * openFIRST browserid.php
- * Last Modified:
- * David Di Biase, April 13, 2003
- *
* Copyright (C) 2003,
* openFIRST Project
--- 1,4 ----
***************
*** 29,36 ****
*/
! //Functions for browser/platform identification
! function identify_platform($useragent="")
! {
//(This prevents PHP from displaying an error if use of browscap.ini is not enabled)
//only report critical errors
--- 25,31 ----
*/
! //Functions for browser/platform identification
! function identify_platform($useragent="") {
//(This prevents PHP from displaying an error if use of browscap.ini is not enabled)
//only report critical errors
***************
*** 45,53 ****
$return=$browser->platform;
if ($return==""){
! //returns the original user-agent string
return $useragent;
}
! }
! else {
//browscap.ini disabled
//returns the original user-agent string
--- 40,47 ----
$return=$browser->platform;
if ($return==""){
! //returns the original user-agent string
return $useragent;
}
! } else {
//browscap.ini disabled
//returns the original user-agent string
***************
*** 56,63 ****
//return platform ID
return $return;
! }
! function identify_browser($useragent="")
! {
//(This prevents PHP from displaying an error if use of browscap.ini is not enabled)
//only report critical errors
--- 50,56 ----
//return platform ID
return $return;
! }
! function identify_browser($useragent="") {
//(This prevents PHP from displaying an error if use of browscap.ini is not enabled)
//only report critical errors
***************
*** 77,82 ****
//return the original user-agent string
return $useragent;
! }
! else {
if ($browsername=="IE"){
//Spell 'IE' as 'Internet Explorer'
--- 70,74 ----
//return the original user-agent string
return $useragent;
! } else {
if ($browsername=="IE"){
//Spell 'IE' as 'Internet Explorer'
***************
*** 106,111 ****
}
}
! }
! else {
//browscap.ini disabled
//returns the original user-agent string
--- 98,102 ----
}
}
! } else {
//browscap.ini disabled
//returns the original user-agent string
|