| Pages: [1] :: one page |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Rhombus
|
Posted - 2005.02.16 15:57:00 -
[1]
Edited by: Rhombus on 17/02/2005 10:39:32
Hi,
I have started another try to squeeze our quite complex corp website at www.eve-bos.de into the IGB. I have stopped crying for not being able to use most of the database driven features, but I would at least like to give access to some of our info systems like our corp's mission or operation boards.
I directly get stuck on the first point, the browser detection. Though the User Agent is detected correctly (and IE and Netscape have no problems in redirecting), the IGB seems to have problems with this simple code:
Quote: <?php if($HTTP_USER_AGENT == "EVE-minibrowser/3.0"){ header("location:ingame/page1_in.php?pg=1&lang=en"); } else{ header("location:offgame/page1.php?pg=1&lang=en"); } ?> <html> <head><title>The Brotherhood of Steel - Browser Detection</title></head> <body>User Agent:á<?php echo($HTTP_USER_AGENT); ?>á</body> </html>
The IGB gets stuck on the page only showing the title in the headline and an empty window. What's up... any ideas?
Regards, Rhombus
|

Rhombus
|
Posted - 2005.02.17 11:49:00 -
[2]
I just found out that the IGB could have problems with the HTTP Status codes.
The location-header above sends a Redirection status code 302 (Found) to the UserAgent, so maybe the IGB does not understand all HTTP Status codes correctly.
Check the spec. of the Status Codes at: http://www.w3.org/Protocols/...
Complete Spec.: http://www.w3.org/Protocols/rfc2616/rfc2616.html
Regards, Rhombus
|

Cinnander
|
Posted - 2005.02.20 00:18:00 -
[3]
Try sticking an \n on the end of the header() calls. Example header("Location: mypage.php\n"); note that you must use " not ' as this will 'translate' \n into ASCII-13 instead of the literal string \n.
I have found that the header calls normally work fine, tho.
I notice you have what looks like a bracket in your Request URI, that could be calling problems. URLencode the link if you arent sure what will work;
Quote: $data = "213 323 $53 02 A C _\" ú I"; echo 'Location: mypage.php?data=' . urlencode($data) . '\n';
which is effectively the same (and more human freindly) than
Quote: header("Location: mypage.php?data=213+323+%2453+02+A+C+_%22+%A3+I\n");
|

MinorFreak
|
Posted - 2005.02.22 02:43:00 -
[4]
ahhhhhhhh...think yer reading too much into the user string. K.I.S.S.
http://forums.relicnews.com/showthread.php?t=56763 ______________________ Best darned links ingame and out (backup) |

Rhombus
|
Posted - 2005.03.04 17:57:00 -
[5]
Edited by: Rhombus on 04/03/2005 18:30:11
... sorry to say that, but your ideas didn't work.
I think the PHP-code is performed by the IGB. If the IGB would get stuck, the title of the page might be "The Brotherhood of Steel - Browser Detection", but it's "The Brotherhood of Steel".
If I call the ingame-page in the IGB directly, with the full URL and all parameters (as shown above), the IGB displays the page without any problems.
Despite that I hesitate to use JavaScript for the forwarding-function as this produces an entry in the browsers journal - with this nagging effect that non-IGB users don't get back by using the browser's back-button. 
... and somehow I think that such a standard code should be working in anything that's called a browser.
Regards, Rhombus
|

LNX Flocki
|
Posted - 2005.03.05 14:00:00 -
[6]
Originally by: Rhombus Edited by: Rhombus on 04/03/2005 18:30:11 I think the PHP-code is performed by the IGB.
Not sure if I understand you correctly but PHP code is never ever executed by the client (browser). It always runs server side and just outputs the html to the browser.
Originally by: Rhombus Despite that I hesitate to use JavaScript for the forwarding-function
JavaScript doesn't work at all in the IGB.
Originally by: Rhombus I directly get stuck on the first point, the browser detection
This works just fine for me:
Quote:
if ($_SERVER['HTTP_USER_AGENT']=="EVE-minibrowser/3.0") { header ("Location: igb-site.php"); } else { header ("Location: normal-site.php"); }
|

Shellion
|
Posted - 2005.03.14 12:40:00 -
[7]
Try checking this thread http://oldforums.eveonline.com/?a=topic&threadID=17025 _______________________________________________ (\_/) (O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination.
|

Strikeman
|
Posted - 2005.03.22 19:47:00 -
[8]
not in any way affiliated to nonsequitor, here's another solution: try his igb class, which has this nice function to detect the IGB.
$myigb = new IGB();
if ($myigb->IsMiniBrowser()){ echo "minibrowsercode"; }else{ echo "nonminibrowsercode"; }
works like a charm for me, so do all the other functions this (nice) class has  --
NAGAmazon webshop ISK is not your goal. |
| |
|
| Pages: [1] :: one page |
| First page | Previous page | Next page | Last page |