Help Need Block Site

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

    Help Need Block Site

    i change rw block site function with wapdesire

    Code:
    ///////////////////////////////////////////Is site blocked
    
    function isblocked($str,$sender)
    {
      if(ismod($sender))
      {
        return false;
      }
      $str = str_replace(" ","",$str);
      $str = strtolower($str);
        $res = mysql_query("SELECT site FROM ibwf_blockedsite");
    while ($row = mysql_fetch_array($res)) 
    {
       $sites[] = $row[0];
    }
      for($i=0;$i<count($sites);$i++)
      {
            $nosf = substr_count($str,$sites[$i]);
        if($nosf>0)
        {
          return true;
        }
      }
      return false;
    }
    in admincp i add

    Code:
    else if($action=="blocksites")
    {
        echo "<card id=\"main\" title=\"Head Admin Tools\">";
        echo "
    
    ";
        echo "<a href=\"headadmincp.php?action=addsite&amp;sid=$sid\">»Add Site</a>
    ";
        echo "<a href=\"headadmincp.php?action=viewsite&amp;sid=$sid\">»View Sites</a>
    ";
        //echo "<a href=\"headadmincp.php?action=delsite&amp;sid=$sid\">»Delete Site</a>
    ";
        echo "</p>";
        echo "<p align=\"center\">";
        echo "<a href=\"headadmincp.php?action=headadmincp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Head Admin Tools</a>
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
        echo "</card>";
    }
    else if($action=="addsite")
    {
        echo "<card id=\"main\" title=\"Head Admin Tools\">";
        echo "
    
    ";
        echo "Please Enter The Address Of the Site To Block
    ";
        echo "<input name=\"site\"/>";
        echo "
    <anchor>Add Site";
        echo "<go href=\"headadminproc.php?action=addsite&amp;sid=$sid\" method=\"post\">";
        echo "<postfield name=\"site\" value=\"$(site)\"/>";
        echo "</go>";
        echo "</anchor>";
        echo "</p>";
        echo "<p align=\"center\">";
        echo "<a href=\"headadmincp.php?action=headadmincp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Head Admin Tools</a>
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
        echo "</card>";
    }
    else if($action=="viewsite")
    {
        echo "<card id=\"main\" title=\"Head Admin Tools\">";
        echo "
    
    ";
        echo "Currently Blocked Sites Are Listed Below";
        echo "</p>
    
    ";
          $res = mysql_query("SELECT * FROM ibwf_blockedsite");
    while ($row = mysql_fetch_array($res)) 
    {
       echo $row[1];
       echo " <a href=\"headadminproc.php?action=delsite&amp;sid=$sid&amp;id=$row[0]\">[X]</a>";
       echo "
    ";
    }
        echo "</p>";
        echo "<p align=\"center\">";
        echo "<a href=\"headadmincp.php?action=headadmincp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Head Admin Tools</a>
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
        echo "</card>";
    }
    else if($action=="delsite")
    {
        echo "<card id=\"main\" title=\"Head Admin Tools\">";
        echo "
    
    ";
        echo "<a href=\"headadmincp.php?action=addsite&amp;sid=$sid\">»Add Site</a>
    ";
        echo "<a href=\"headadmincp.php?action=viewsite&amp;sid=$sid\">»View Sites</a>
    ";
        echo "<a href=\"headadmincp.php?action=delsite&amp;sid=$sid\">»Delete Site</a>
    ";
        echo "</p>";
        echo "<p align=\"center\">";
        echo "<a href=\"headadmincp.php?action=headadmincp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Head Admin Tools</a>
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
        echo "</card>";
    }
    in in adminproc i add

    Code:
    //////////////////////////add blocked site//////////////////////////
    
    else if($action=="addsite")
    {
      echo "<card id=\"main\" title=\"Head Admin Tools\">";
      echo "<p align=\"center\">";
      $site = $_POST["site"];
      echo $site;
      $res = mysql_query("INSERT INTO ibwf_blockedsite SET site=&#39;".$site."&#39;");
      if($res)
      {
      echo mysql_error();
      echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Site $site Added Successfully to Blocked List
    ";
      }else{
      echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error Adding Site
    ";
      }
      echo "
    ";
      echo "<a href=\"headadmincp.php?action=blocksites&amp;sid=$sid\">Blocked Sites List</a>
    ";
      echo "<a href=\"headadmincp.php?action=headadmincp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Head Admin Tools</a>
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p></card>";
      }
    //////////////////////////delete blocked site//////////////////////////
    
    else if($action=="delsite")
    {
      echo "<card id=\"main\" title=\"Head Admin Tools\">";
      echo "<p align=\"center\">";
      $id=$_GET["id"];
      $sitena = mysql_query("SELECT site FROM ibwf_blockedsite WHERE id=&#39;".$id."&#39;");
      $site = mysql_fetch_array($sitena);
      $site=$site[0];
      $res = mysql_query("DELETE FROM ibwf_blockedsite WHERE id=&#39;".$id."&#39;");
      if($res)
      {
      echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Site $site Removed Successfully from Blocked List
    ";
      }else{
      echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error Removing $site 
    ";
      }
      echo "
    ";
      echo "<a href=\"headadmincp.php?action=blocksites&amp;sid=$sid\">Blocked Sites List</a>
    ";
      echo "<a href=\"headadmincp.php?action=headadmincp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Head Admin Tools</a>
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p></card>";
    }

    but its not reporting wht i miss here?
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>


    #2
    i even drop tables in sql now wht do i mess that it will not put it in modlogs when someone spma?
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

    Comment


      #3
      spam a url as a mod or admin or owner you will not see this as mod/admin has rights to post links 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


        #4
        lol u r right sub bru it works bcoz i was admin i got no ban pmpsl hahahahaha
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment

        Working...
        X