Wildcard Dns

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

    #16
    here is an example lol

    http://rukiya.bdfun.co.cc

    Comment


      #17
      lol mate wow ?


      but i can cut out my grim-reaper/users/?grim-reaper and only use grim-reaper.grim-reaper lol
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #18
        halo some help please guys

        Click here!!!

        Comment


          #19
          thats because co.cc domain will generate 4 exploded part in case of submdomain like username.domain.co.cc
          so the code will be
          Code:
          <?php
          $domain = $_SERVER[&#39;HTTP_HOST&#39;]; 
          $domain_parts = explode(&#39;.&#39;,$domain); 
          include("config.php");
          if (count($domain_parts) == 4 && $domain_parts[0]!= "www") { // make sure a subdomain is called 
          $users=mysql_fetch_array(mysql_query("SELECT name FROM users WHERE name=&#39;".$domain_parts."&#39;"));
          $loc = "http://4wap.co.cc/sites/index.php?name=$users[0]"; 
          if($users[0]!= "")
          {
          @header("Location:$loc"); 
          }
          else
          {
          @header("location: http://spiderwap.co.za");
          }
          }
          ?>
          [/b]

          think it should be
          Code:
          WHERE name=&#39;".$domain_parts[0]."&#39;

          Comment


            #20
            Code:
            <?php
            $domain = $_SERVER[&#39;HTTP_HOST&#39;]; 
            $domain_parts = explode(&#39;.&#39;,$domain); 
            include("4wap/config.php");
            if (count($domain_parts) == 4 && $domain_parts[0]!= "www") { // make sure a subdomain is called 
            $users=mysql_fetch_array(mysql_query("SELECT name FROM users WHERE name=&#39;".$domain_parts[0]."&#39;"));
            }
            if ($users[0]=="")
            { 
            header("location: http://spiderwap.co.za/home.php");
            }else{
            $loc = "http://4wap.co.cc/sites/index.php?name=$users[0]"; 
            header("Location:$loc"); 
            }
            ?>
            It works perfect, but funny, i realised that i must use it with my survers primary domain.... and i have a few domains related to my surver, i did a mod on this peace of coding (after having a good nap) and then looked at it again, and realised that it wouldn&#39;t have worked with the 4wap domain cause $_SERVER[&#39;HTTP_HOST&#39;]; goes according to your primary domain name.

            Click here!!!

            Comment


              #21
              nevermind, all of a sudden everything works fine on all the freeken domains.

              Click here!!!

              Comment

              Working...
              X