[isf-wifidog] bug in links ?
max.horvath at freenet.de
max.horvath at freenet.de
Dim 17 Juil 12:36:19 EDT 2005
Une pièce jointe HTML a été enlevée...
URL: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20050717/613a9a0c/attachment.htm
-------------- section suivante --------------
Hi all,
actually I been fixing that a few days ago and it's running stable ...
Here's what you gotta do:
Open "/includes/common.php".
----------
Find:
/* This section deals with sessions */
define('SESS_USERNAME_VAR', 'SESS_USERNAME');
define('SESS_USER_ID_VAR', 'SESS_USER_ID');
define('SESS_PASSWORD_HASH_VAR', 'SESS_PASSWORD_HASH');
define('SESS_ORIGINAL_URL_VAR', 'SESS_ORIGINAL_URL');
define('SESS_LANGUAGE_VAR', 'SESS_LANGUAGE');
define('SESS_GW_ADDRESS_VAR', 'SESS_GW_ADDRESS');
define('SESS_GW_PORT_VAR', 'SESS_GW_PORT');
define('SESS_GW_ID_VAR', 'SESS_GW_ID');
/* End */
----------
Replace all code till this line ...
//echo "<pre>";print_r($_SERVER);echo "</pre>";
----------
with this code:
/* This section deals with PATHs */
if ($_SERVER['SERVER_PORT']!=80 && $_SERVER['SERVER_PORT']!=443) {
define('BASE_NON_SSL_PATH', 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . SYSTEM_PATH);
} else {
define('BASE_NON_SSL_PATH', 'http://' . $_SERVER['SERVER_NAME'] . SYSTEM_PATH);
}
----------
That's it.
Cheers, Max!
> Hello Chandi,
> No, it's actually a bug, the thing is that it's the kind of bug we do not
> tend to notice by ourselves since our servers point to the root on 80. We
> have a define constant that contains the complete link, so it's easy to
> fix it... I'm gonna check what I can do with this during the weekend...
>
> Bye
> > I've found a way to fix it in apache but I don't think it's normal that
> > wifidog-auth makes links differently :-)
> >
> >
> >
> > I did put that in my Vhost.
> >
> >
> >
> > ServerName auth.chandi.mine.nu:8080
> >
> > ServerAlias auth2.estriesansfil.org:8080
> >
> > ServerAlias auth.chandi.mine.nu
> >
> > ServerAlias auth2.estriesansfil.org
> >
> >
> >
> > Which works fine!
> >
> >
> >
> > Thanks a lot guys,
> >
> >
> >
> > Chandi
> >
> >
> >
> > _____
> >
> > > From: wifidog-bounces at listes.ilesansfil.org
> > > [mailto:wifidog-bounces at listes.ilesansfil.org] On Behalf Of Chandi Bernier
> > > Sent: 15 juillet, 2005 13:42
> > > To: 'WiFiDog Captive Portal'
> > > Subject: [isf-wifidog] bug in links ?
> > >
> > >
> > >
> > > Hey everybody,
> > >
> > >
> > >
> > > I'm actually running my web server on port 8080.
> > >
> > >
> > >
> > > It's temporarily http://auth.chandi.mine.nu:8080
> > > <http://auth.chandi.mine.nu:8080/> but when I go to the main auth page
> > > where there are links to :
> > >
> > > * Deployed HotSpots map <http://auth.chandi.mine.nu/hotspots_map.php>
> > >
> > > * Deployed <http://auth.chandi.mine.nu:8080/hotspot_status.php>
> > > HotSpots status with coordinates
> > > * Full node technical <http://auth.chandi.mine.nu:8080/node_list.php>
> > > status (includes non-deployed nodes)
> > > * Administration <http://auth.chandi.mine.nu/admin/index.php>
> > >
> > >
> > >
> > > Some links to : chandi.mine.nu :8080/somepage.php and some do point to
> > > chandi.mine.nu/somepage.php which is non-existent.
> > >
> > >
> > >
> > > Is that a bug or a misconfiguration of apache ? if it's a
> > > misconfiguration
> > > of apache it still shows that the way you build links is not the same
> > > everywhere in your code.
> > >
> > >
> > >
> > > How can it be fixed ?
> > >
> > >
> > >
> > > Thanks a lot guys :-)
> > >
> > >
> > >
> > > Chandi
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > WiFiDog mailing list
> > > WiFiDog at listes.ilesansfil.org
> > > http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
------------------------------------------------------
Jetzt neu: freenetMail Power
+ mehr Speicher geht nicht + eigene Mail-Domain
http://www.freenet.de/tipp/freenetmail/power/?pid=6674
More information about the WiFiDog
mailing list