Activity Stream
48,167 MEMBERS
6971 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default WcDDL whitelist.php

    can any1 tell mew how 2 add 4 every1 to see not just admin
    Chris2k Reviewed by Chris2k on . WcDDL whitelist.php can any1 tell mew how 2 add 4 every1 to see not just admin Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    PHP Code: 
    <?php
        
    /*BEGIN_INFO
        Show if an Site are white/black Listed!<br>
        by jomasaco.
        END_INFO*/
        
    if(!defined("WCDDL_GUTS"))
           exit;
           
    $modEnabled true//Change to false if don't use
        
    if($modEnabled) {
        
    $outbw '<form action="'.$_SERVER['PHP_SELF'].'" method="post">
        <fieldset>
        <div class="legend">Check White/Black List:</div>
        <div class="form_row">
                <div class="form_value"><input type="text" size="32" class="text" value="http://" name="url" /></div>
                <input class="button" type="submit" name="submit" value="Submit" />
                </div></fieldset></form>'
    ;
                if(!empty(
    $_POST)) {
                
    $surl $_POST['url'];
                
    $surl parse_url(trim($surl)); //remove spaces split the url
              
    $surl $surl['host']; //get host
              
    $surl str_replace("www.","",$surl); //remove the www
                
    if (!preg_match('#^[A-Z0-9.-]+\.[A-Z]{2,4}$#i'$surl)) //validate url
                
    {
         
    $outbw .= '<br /><div class="error"> Please enter a valid Site Url. <b>'.$surl.'</div></b>'
         }
         else { 
    //blacklist
                
    $sql mysql_query("select * from wcddl_blacklist WHERE url = '".mysql_real_escape_string($surl)."'");
            if(
    mysql_num_rows($sql) > 0) {
            
    $outbw .= '<div class="error">'.$surl.' In <b>Blacklist</b><br />';
                while (
    $row mysql_fetch_array($sql)){
                    
    $outbw .= '<br/> Site Url: '.$row['url'].'</div>';
        }
        }
        else {     
    //whitelist
          
    $sql mysql_query("select * from wcddl_whitelist WHERE url = '".mysql_real_escape_string($surl)."'"); 
          if(
    mysql_num_rows($sql) > 0) {
            
    $outbw .= '<div class="success">'.$surl.' In <b>Whitelist</b>.<br />';
        while (
    $row mysql_fetch_array($sql)){
            
    $outbw .= '<br/> Site Url: '.$row['url'].'</div>';
            }
        }
        else{
        
    $outbw .= '<br /><div class="notice">'.$surl.' NOT In <b>Whitelist</b> or <b>Blacklist</b>.</div><br />';
        }
        }
        }
        }
        
    //show the lists
        //blacklist
        
    $outbw .= '<div class="clearer">&nbsp;</div>';
            
    $outbw .= '<div class="post">
                                <div class="post_title text_center"><div class="error"><h1>BLACKLISTED</h1></div></div>
                                <div class="post_body">'
    ;
              
    $color1 " class=\"even\"";
              
    $color2 '';
              
    $row_count 0;
              
    $getit = @mysql_query("SELECT * FROM wcddl_blacklist limit 0,20");
        
    $outbw .= '<br /><br /><table class="data_table"><tr><th>URL</th></tr>';                    
            while (
    $row mysql_fetch_array($getit)) {
                
    $row_color = ($row_count &#37; 2) ? $color1 : $color2;
            
    $outbw .='<tr'.$row_color.'>
            <td><strong>'
    .$row['url'].'</strong></td>
            </tr>'
    ;
            
    $row_count++;
            }
            
    $outbw .= '</table>';
            
    $outbw .= '</div></div>';
            
    //whitelist
            
    $outbw .= '<div class="post">
                                <div class="post_title text_center"><div class="success"><h1>WHITELISTED</h1></div></div>
                                <div class="post_body">'
    ;
            
    $outbw .= '<div class="clearer">&nbsp;</div>';
                            
    $getit = @mysql_query("SELECT * FROM wcddl_whitelist limit 0,20");
             
    $outbw .= '<br /><br /><table class="data_table"><tr><th>URL</th></tr>';               
            while (
    $row mysql_fetch_array($getit)) {
                
    $row_color = ($row_count 2) ? $color1 $color2;
            
    $outbw .= '<tr'.$row_color.'>
            <td><strong>'
    .$row['url'].'</strong></td>
            </tr>'
    ;
            
    $row_count++;
            }
            
    $outbw .= '</table>';
            
    $outbw .= '</div></div>'
                
    $core->setTemplateVar("searchbw",$outbw);
        }
        
    ?>


  4.     
    #3
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    thanks m8

  5.     
    #4
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    sorry to be an ass, but u can only check white.blacklists


  6.     
    #5
    Member
    code above edited, try again i left there the date and reason, shold be that the error


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Selling] WCDDL v2 Module - Instant Whitelist
    By gtaclub in forum Completed Transactions
    Replies: 0
    Last Post: 21st Aug 2011, 03:52 AM
  2. WCDDL Whitelist Request
    By jomasaco in forum Web Development Area
    Replies: 23
    Last Post: 20th Jun 2011, 11:03 PM
  3. How to whitelist
    By chemicalx in forum Webmaster Discussion
    Replies: 6
    Last Post: 25th May 2011, 12:15 PM
  4. 2x Custom modules, black/whitelist WcDDL
    By Chris2k in forum Webmaster Resources
    Replies: 0
    Last Post: 21st May 2011, 01:01 AM
  5. [WCDDL] Wcddl Black or whitelist not working
    By fletch in forum Web Application/Script Support
    Replies: 0
    Last Post: 5th Apr 2011, 04:30 PM

Tags for this Thread

BE SOCIAL