|
From: <and...@us...> - 2007-08-30 11:44:52
|
Revision: 23
http://thevr.svn.sourceforge.net/thevr/?rev=23&view=rev
Author: andrewbelcher
Date: 2007-08-30 04:44:49 -0700 (Thu, 30 Aug 2007)
Log Message:
-----------
I've removed the temporary addition that redirects non thevr.co.uk URLs to thevr.co.uk so that we don't have to worry about cross domain cookies. It is what we use on the live site at the moment, but it will stop the PMS mod working on any other server.
Also removed my name from the URL processing addition.
Modified Paths:
--------------
mods/pms/trunk/common.php
Modified: mods/pms/trunk/common.php
===================================================================
--- mods/pms/trunk/common.php 2007-08-30 02:24:13 UTC (rev 22)
+++ mods/pms/trunk/common.php 2007-08-30 11:44:49 UTC (rev 23)
@@ -192,7 +192,7 @@
$config = $cache->obtain_config();
/***** START
-ADDED by andrewbelcher for thevr.co.uk
+ADDED for thevr.co.uk
This processes the URL so the correct site settings can be used.
*****/
@@ -263,20 +263,4 @@
}
/***** END *****/
-// Temporary addition until cookies are sorted:
- if (strpos($domain, 'thevr.co.uk') == false AND $domain != 'thevr.co.uk')
- {
- $sql = 'SELECT su.domain
- FROM ' . SITE_URL_TABLE . " AS su
- WHERE su.site_id = '" . $config['site_id'] . "'
- AND su.domain LIKE '%thevr.co.uk'
- LIMIT 1";
- $result = $db->sql_query($sql);
- $row = $db->sql_fetchrow($result);
-
- header('Location: http://' . $row['domain'] . $_SERVER['REQUEST_URI']);
- }
-
-
-
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|