Closed Thread
Results 1 to 3 of 3

Thread: banned wankers

  1. #1
    Senior Member brand is on a distinguished road
    Join Date
    May 2009
    Posts
    288
    Thanks
    23
    Thanked 7 Times in 6 Posts
    Rep Power
    2

    Default banned wankers

    hi there good coders i am trying to do a banned wankers list this is what u used from owner tools can some one help in sorting it so members can see it please i have taken out
    Code:
    if(use_tools(getuid_sid($sid))){
    
    but then i get error on line 71 with is to do with }else{ which u will see in the code below in red

    Code:
    <?php
    define('WCS',true);
    include('../core/main.inc');
    header_type();
    cleardata();
    if(ipbanned(ip(),browser())){
    if(!shield(getuid_sid($sid))){
    echo head_tag("Ip Blocked!!!",0,0);
    echo ipbanned_msg();
    echo foot_tag();
    exit();
    }
    }
    if(!islogged($sid)){
    echo head_tag("Error!!!",0,0);
    echo session_expired();
    echo foot_tag();
    exit();
    }
    if(banned(getuid_sid($sid))){
    echo head_tag("Error!!!",1,getnick_sid($sid));
    echo banned_msg($sid);
    echo foot_tag();
    exit();
    }
    mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
    
    /////////////////////////BANNED LIST/////////////////////////
    
    addonline(getuid_sid($sid),"Banned List","");
    echo head_tag(getnick_sid($sid)."@Banned List",1,getnick_sid($sid));
    $num_items=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM banned WHERE penalty>='0'"));
    $title="<b>$num_items[0] Banned Users</b>";
    $main="<p align=".align().">\n";
    if($page==""||$page<=0)$page=1;
    $items_per_page=10;
    $num_pages=ceil($num_items[0]/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start=($page-1)*$items_per_page;
    $sql="SELECT uid, byid, penalty, reason, remaining 
    FROM banned WHERE penalty>='0' ORDER BY 
    remaining LIMIT $limit_start, $items_per_page";
    $items=mysql_query($sql);
    if(mysql_num_rows($items)>0){
    while($item=mysql_fetch_array($items)){
    $sex=mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE uid='".$item[0]."'"));
    if($sex[0]=="M"){$color="#0000FF";}else if($sex[0]=="F"){$color="#FF0066";}
    $sex2=mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE uid='".$item[1]."'"));
    if($sex2[0]=="M"){$color2="#0000FF";}else if($sex2[0]=="F"){$color2="#FF0066";}
    if($item[2]==0){$bt="Shoutbox-Banned";}
    else if($item[2]==1){$bt="Forum-Banned";}
    else if($item[2]==2){$bt="Chat-Banned";}
    else if($item[2]==3){$bt="Site-Banned";}
    else if($item[2]==4){$bt="Ip-Banned";}
    $main.="<a href=\"../profile.php?who=$item[1]&amp;sid=$sid\" style=\"color:$color2\">".getnick_uid($item[1])."</a>
    $bt 
    <a href=\"../profile.php?who=$item[0]&amp;sid=$sid\" style=\"color:$color\">".getnick_uid($item[0])."</a><br/>
    ".getbbcode($item[3],$sid,1)."<br/>
    <small>".time_msg($item[4]-time(),0)."</small><br/>\n";
    }
    }
    if($page>1){
    $main.="<br/><a href=\"./banned.php?page=".($page-1)."&amp;sid=$sid\">&lt;-Prev</a> ";
    }
    if($page<$num_pages){
    if($page==1)$main.="<br/>";
    $main.="<a href=\"./banned.php?page=".($page+1)."&amp;sid=$sid\">Next-&gt;</a>\n";
    }
    $main.="<br/>Page - $page/$num_pages</p>\n";
    if($num_pages>2){$main.=getjumper("banned","","",$sid);}
    }else{
    addonline(getuid_sid($sid),"In The Forbidden Zone!","");
    $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!\n</p>\n";
    }
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    ?>
    
    thanks to any one that can help me out with this
    cheap sites for rent sites come with 24hrs help and support

    HELP THEM WHO HELPS YOU

  2. #2
    Super Moderator crazybrumi crazybrumi's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham, England
    Posts
    1,190
    Thanks
    4
    Thanked 7 Times in 6 Posts
    Rep Power
    0

    Default

    its not that u simply havent removed one of the }


    Code:
    <?php
    define('WCS',true);
    include('../core/main.inc');
    header_type();
    cleardata();
    if(ipbanned(ip(),browser())){
    if(!shield(getuid_sid($sid))){
    echo head_tag("Ip Blocked!!!",0,0);
    echo ipbanned_msg();
    echo foot_tag();
    exit();
    }
    }
    if(!islogged($sid)){
    echo head_tag("Error!!!",0,0);
    echo session_expired();
    echo foot_tag();
    exit();
    }
    if(banned(getuid_sid($sid))){
    echo head_tag("Error!!!",1,getnick_sid($sid));
    echo banned_msg($sid);
    echo foot_tag();
    exit();
    }
    mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
    
    /////////////////////////BANNED LIST/////////////////////////
    
    addonline(getuid_sid($sid),"Banned List","");
    echo head_tag(getnick_sid($sid)."@Banned List",1,getnick_sid($sid));
    $num_items=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM banned WHERE penalty>='0'"));
    $title="<b>$num_items[0] Banned Users</b>";
    $main="<p align=".align().">\n";
    if($page==""||$page<=0)$page=1;
    $items_per_page=10;
    $num_pages=ceil($num_items[0]/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start=($page-1)*$items_per_page;
    $sql="SELECT uid, byid, penalty, reason, remaining 
    FROM banned WHERE penalty>='0' ORDER BY 
    remaining LIMIT $limit_start, $items_per_page";
    $items=mysql_query($sql);
    if(mysql_num_rows($items)>0){
    while($item=mysql_fetch_array($items)){
    $sex=mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE uid='".$item[0]."'"));
    if($sex[0]=="M"){$color="#0000FF";}else if($sex[0]=="F"){$color="#FF0066";}
    $sex2=mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE uid='".$item[1]."'"));
    if($sex2[0]=="M"){$color2="#0000FF";}else if($sex2[0]=="F"){$color2="#FF0066";}
    if($item[2]==0){$bt="Shoutbox-Banned";}
    else if($item[2]==1){$bt="Forum-Banned";}
    else if($item[2]==2){$bt="Chat-Banned";}
    else if($item[2]==3){$bt="Site-Banned";}
    else if($item[2]==4){$bt="Ip-Banned";}
    $main.="<a href=\"../profile.php?who=$item[1]&amp;sid=$sid\" style=\"color:$color2\">".getnick_uid($item[1])."</a>
    $bt 
    <a href=\"../profile.php?who=$item[0]&amp;sid=$sid\" style=\"color:$color\">".getnick_uid($item[0])."</a><br/>
    ".getbbcode($item[3],$sid,1)."<br/>
    <small>".time_msg($item[4]-time(),0)."</small><br/>\n";
    }
    
    if($page>1){
    $main.="<br/><a href=\"./banned.php?page=".($page-1)."&amp;sid=$sid\">&lt;-Prev</a> ";
    }
    if($page<$num_pages){
    if($page==1)$main.="<br/>";
    $main.="<a href=\"./banned.php?page=".($page+1)."&amp;sid=$sid\">Next-&gt;</a>\n";
    }
    $main.="<br/>Page - $page/$num_pages</p>\n";
    if($num_pages>2){$main.=getjumper("banned","","",$sid);}
    }else{
    addonline(getuid_sid($sid),"In The Forbidden Zone!","");
    $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!\n</p>\n";
    }
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    ?>
    
    Want something coded email me at for a prices.




  3. #3
    Super Moderator crazybrumi crazybrumi's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham, England
    Posts
    1,190
    Thanks
    4
    Thanked 7 Times in 6 Posts
    Rep Power
    0

    Default

    query resolved
    Want something coded email me at for a prices.




Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. banned.php
    By lee27 in forum REQUEST FORUM
    Replies: 1
    Last Post: 11-04-09, 03:31
  2. Lavalair Install Ip Banned Hellllllllllllllllp
    By matthew26 in forum Scripts Forum
    Replies: 5
    Last Post: 08-05-07, 15:48
  3. Redirect Banned Ip/browsers
    By stringfellowhawk in forum Coding Forum
    Replies: 8
    Last Post: 04-01-07, 14:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO