Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
DarkSteel
|
Posted - 2005.03.19 19:26:00 -
[1]
Can someone tell me if its possible to detect if the user is coming from IGB or other browser and redirect to diferent pages acordingly ?
And if its not asking to mutch the sorce code (PHP) ? :)
|
DarkSteel
|
Posted - 2005.03.19 19:26:00 -
[2]
Can someone tell me if its possible to detect if the user is coming from IGB or other browser and redirect to diferent pages acordingly ?
And if its not asking to mutch the sorce code (PHP) ? :)
|
DEVILSENIGMA
|
Posted - 2005.03.20 08:03:00 -
[3]
Im not gonna give u the entire source but here is a hint
check out $HTTP_SERVER_VARS and the $_SERVER global variable. Using that you can find out what browser the user is coming from.
The eve browswer is Eve Minibrowser v3.0 ~
[My Blog] | [Roving Guns Kill List] |
DEVILSENIGMA
Caldari Roving Guns Inc. RAZOR Alliance
|
Posted - 2005.03.20 08:03:00 -
[4]
Im not gonna give u the entire source but here is a hint
check out $HTTP_SERVER_VARS and the $_SERVER global variable. Using that you can find out what browser the user is coming from.
The eve browswer is Eve Minibrowser v3.0 --- Eve Database | Coldfront Community Coldfront Come in and feel the chill |
Mining Maxx
|
Posted - 2005.03.21 22:44:00 -
[5]
Hi,
sounds like a big secret? ;)
well, visit eve-i and check out the technical forums. theres the eve php header class which will teach you all you need if you just check the includes.
the class itself is very convenient btw.
regards
|
Mining Maxx
Caldari
|
Posted - 2005.03.21 22:44:00 -
[6]
Hi,
sounds like a big secret? ;)
well, visit eve-i and check out the technical forums. theres the eve php header class which will teach you all you need if you just check the includes.
the class itself is very convenient btw.
regards
|
Strikeman
|
Posted - 2005.03.22 19:41:00 -
[7]
here's the direct link to that thread btw: thread on eve-i
class is written by nonsequitor, send him a mail if u use it ;-) it's great stuff btw
basically:
$myigb = new IGB(); if ($myigb->IsMiniBrowser()){ echo "minibrowsercode"; }else{ echo "normalbrowsercode"; } --
NAGAmazon webshop ISK is not your goal. |
Strikeman
Gallente Inter Corp Ops
|
Posted - 2005.03.22 19:41:00 -
[8]
here's the direct link to that thread btw: thread on eve-i
class is written by nonsequitor, send him a mail if u use it ;-) it's great stuff btw
basically:
$myigb = new IGB(); if ($myigb->IsMiniBrowser()){ echo "minibrowsercode"; }else{ echo "normalbrowsercode"; } --
ISK is not your goal. If it is, you are playing the wrong game.
|
Drake Kerzog
|
Posted - 2006.04.18 02:33:00 -
[9]
Originally by: Strikeman here's the direct link to that thread btw: thread on eve-i
The usage of this looks great... unfortunately it seems like eve-i.com is down :( Can someone please repost this class elsewhere?
Thanks
|
Kaladr
|
Posted - 2006.04.18 07:14:00 -
[10]
Edited by: Kaladr on 18/04/2006 07:14:52 Here is my top secret Python implementation. This should help you in your quest.
ua = req.headers_in['User-Agent']
if ua[0:3] == "EVE": if 'isigb' not in session: session['isigb'] = True
Edit: indent accordingly, forums don't indent right.
---- EVE-Central.com | Obsidian Technologies - 0.0 Manufacturing, Defense and Logistics. We're hiring! Mail me |
|
Max Kentarii
|
Posted - 2006.04.18 13:26:00 -
[11]
Edited by: Max Kentarii on 18/04/2006 13:26:39 Here's one way to do it in PHP: $is_eve_igb = intval(!(strpos($_SERVER['HTTP_USER_AGENT'], "EVE-minibrowser") === false));
----- I woke up on the wrong side of the galaxy today... |
Kaylana Syi
|
Posted - 2006.04.20 14:03:00 -
[12]
simple, simple solution
if (isset($_SERVER['HTTP_EVE_TRUSTED']) && $_SERVER['HTTP_EVE_TRUSTED'] == 'no') { header("eve.trustme:http://www.blahblabla.org/::This website Needs to access Pilot information to better serve you."); } elseif () {}//checks for your ingame site elseif () {}//checks for your ingame site
else () {}//failure to be trusted which also equates to out of game browsers
Originally by: "Oveur" I don't react to threats any better than you do
|
Kaylana Syi
|
Posted - 2006.04.20 14:15:00 -
[13]
Edited by: Kaylana Syi on 20/04/2006 14:16:05 Decided to put my usual index.php file up for all to see.
<?php
/* inGame Compatible Website ver 1.0 Kaylana Syi 4/20, 2006 [email protected] index.php */ require_once(""); //path to your include files such as database class require_once("");//path to pageLayout class ( add as many as you need like User Auth for passwords, generating random passwords, a config file for static data like a settings.php file )
//Check User Agent to see if the site can aquire pilot information if (isset($_SERVER['HTTP_EVE_TRUSTED']) && $_SERVER['HTTP_EVE_TRUSTED'] == 'no') { header("eve.trustme:http://www.yourURL.org/::This website Needs to access Pilot information to better serve you."); } elseif (isset($_SERVER['HTTP_EVE_CORPNAME']) && $_SERVER['HTTP_EVE_CORPNAME'] == $corp) { if (!isset($_GET['neocom'])) { print $badlink; die(); } else { $neocom = $_GET['neocom']; } $user = $_SERVER['HTTP_EVE_CHARNAME']; $content = $corp_splash; $corp = &new pageLayout('', $title, $user, $corp, $content); $corp->addContent(); $corp->getPage(); echo $corp->getPage(); }
elseif (isset($_SERVER['HTTP_EVE_CORPNAME']) && $_SERVER['HTTP_EVE_CORPNAME'] <> $corp) { if (!isset($_GET['neocom'])) { print $badlink; die(); } $user = $_SERVER['HTTP_EVE_CHARNAME']; $content = $about_ingame; $notcorp = &new pageLayout('', $title, $user, $corp, $content); $notcorp->addContent(); $notcorp->getPage(); echo $notcorp->getPage(); }
else { if (!isset($_GET['neocom'])) { print $badlink; die(); } $user = 'Visitor'; $content = $about_outgame; $noteve = &new pageLayout('', $title, $user, $corp, $content); $noteve->addContent(); $noteve->getPage(); echo $noteve->getPage(); } ?>
Originally by: "Oveur" I don't react to threats any better than you do
|
duckmonster
|
Posted - 2006.04.24 17:49:00 -
[14]
Seconding request for (working) link to php class.
Failing that, is there a link for (un?)official doccumentation on IGB specs and session vars etc.
|
nonsequitur
|
Posted - 2006.04.28 11:01:00 -
[15]
Originally by: duckmonster Seconding request for (working) link to php class.
Failing that, is there a link for (un?)official doccumentation on IGB specs and session vars etc.
My IGBClass files. igbclass-v2.1.2-php4.zip Live Demo
|
Raquel Smith
Caldari Provisions
|
Posted - 2006.08.30 07:55:00 -
[16]
Just for giggles here is it done with Rails, quite hackish I should say:
igb=false /EVE-minibrowser/ =~ request.env['HTTP_USER_AGENT'] if ($~.class.to_s.eql?('MatchData') igb=true
There really should be a sticky with all IGB resources covered.
|
Jesters Knight
Catalyst Reaction Xelas Alliance
|
Posted - 2006.08.31 00:56:00 -
[17]
do yourself a favor, go here http://oldforums.eveonline.com/?a=topic&threadID=273130
and download the IGB class script there
it has made the workload of designing an IGB page much simpler Ingame website to help management
(+)+(*^) = ^+ |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |