Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirection page
#4
In index.php

integration with this code:
Code:
// get page id (url slug) that is being passed via .htaccess mod_rewrite
    if (isset($_GET['id'])) {
        $id = strtolower($_GET['id']);
    } else {
        $id = "index";
    }

Integration:
Code:
$browser = @get_browser(null, true);
    
    // check browser
    if ($browser)
    {
        $browser = trim($browser['browser_name_pattern']);
    }
    else
    {
        $browser = trim($_SERVER['HTTP_USER_AGENT']);
    }

    // are they ie 6?
    if (strpos($browser,'MSIE 6.0') !== FALSE)
    {
         $id = "ie6";
    }
    else
    {
        // get page id (url slug) that is being passed via .htaccess mod_rewrite
        if (isset($_GET['id']))
        {
            $id = strtolower($_GET['id']);
        }
        else
        {
            $id = "index";
        }
    }
http://nijikokun.com
random stuff. idk.
Reply


Messages In This Thread
Redirection page - by __fabrice - 2010-01-08, 00:16:25
Redirection page - by ccagle8 - 2010-01-08, 01:20:01
Redirection page - by __fabrice - 2010-01-08, 03:19:00
Redirection page - by Nijikokun - 2010-01-08, 03:51:17
Redirection page - by __fabrice - 2010-01-08, 04:55:23
Redirection page - by Nijikokun - 2010-01-08, 06:06:12
Redirection page - by __fabrice - 2010-01-09, 09:06:45



Users browsing this thread: 1 Guest(s)