Redirect script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Redirect script

    Hi, i need a good redirect script web/wap

    #2
    friend,
    i think u want to get USER's AGANT DETECTOR and Redirector tham on wap/web .

    I'm Right ?????
    Sandeep DiL (INDIAN)



    Comment


      #3
      If I'm right.

      Than please use this topic
      http://coding-talk.com/f29/how-block...-wapsite-5640/

      Now i think your problm is solved out....
      Sandeep DiL (INDIAN)



      Comment


        #4
        Originally posted by NickJR View Post
        Hi, i need a good redirect script web/wap


        PHP Code:


        <?php



        global $userBrowser;



        // Your wapsite



        $wmllink "wap/index.php";



        // Your website



        $htmllink "web/index.php";





        //Detect the browser

        $userBrowser $_SERVER['HTTP_USER_AGENT']; 





        //echo $userBrowser;



        if(strpos(strtoupper($HTTP_ACCEPT),"VND.WAP.XHTML+XML") > 0)

        {

          
        $ub="pc";

        }

        else if(
        strpos(strtoupper($HTTP_ACCEPT),"XHTML+XML") > 0)

        {

          
        $ub="pc";

        }

        //Check for Mozilla

        else if(stristr($userBrowser'Mozilla')) 

        {

          
        $ub="pc";

        }

        //Check for msie

        else if(stristr($userBrowser'msie')) 

        {

          
        $ub="pc";

        }

        //Check for IE

        else if(stristr($userBrowser'internet explorer')) 

        {

          
        $ub="pc";

        }

        //Check for opera

        else if(stristr($userBrowser'opera')) 

        {

          
        $ub="pc";

        }

        //Check for Opera

        else if(stristr($userBrowser'Opera')) 

        {

          
        $ub="pc";

        }

        else

        {

          
        $ub="pc";

          }

        if(
        $ub == "pc") {

            
        header("Location: ".$htmllink);

            exit;

            }

            else 

            {

            
        header("Location: ".$wmllink);

            exit;

            }    

        ?>
        PHP Code:
        /* I don't know everything hehe */ 
        Find me on facebook

        Comment

        Working...
        X